Quantcast
Channel: ASP.net MVC Awesome - jQuery Ajax helpers
Viewing all 345 articles
Browse latest View live

New Post: Show Date picker upto current date


New Post: License

$
0
0
This helper trial version or full version?

New Post: License

$
0
0
depends which version your using,
if your using the free/open-source one that you get from the "source code" tab and 1.9 release then full version
the 3.0 is trial

New Post: License

$
0
0
I'm using prodinner version. I found free/open-source 1.9 but _gridparams not use this version.What can I do?

New Post: License

New Post: License

$
0
0
1.9 version is very simple. I want use 3.0 full version but no I haven't any money. :((

New Post: License

$
0
0
feel free to use the trial as much as you want if it's not for work/ commercial project

New Post: License

$
0
0
You right.. Thanks for response.

New Post: Width of Awe (). Lookup

$
0
0
How to change the length (width) of Awe (). Lookup

New Post: Width of Awe (). Lookup

New Post: Width of Awe (). Lookup

$
0
0
I'm doing the following.

@Html.Awe().MultiLookupFor(o => o.Programacoes).HtmlAttributes(new {@style = "width: 390px"})

For AjaxDropdownFor worked for Lookup could not put me through an example.

New Post: Width of Awe (). Lookup

$
0
0
add this css on your page
 .awe-lookup-field .awe-display {
       width: 390px;
 }

New Post: parent in multlookup

$
0
0
Could you help me to use the parent in multlookup below has class and html.

        [HttpPost]
        public ActionResult Search (string search, int [] selected, int page, int? parent)
        {
            var r = repo.Where (o => o.Descricao.Contains (search) && o.Extensao == 1);
            if (selected! = null) r = r.Where (o =>! selected.Contains (o.Id) && o.Evento.Id == parent). AsQueryable ();
            r = r.OrderBy (o => O.Data);

            return Json (new {Items = AjaxListResult r.ToArray (.) Select (o => new KeyContent (o.Id, o.Descricao))});
        }

        public ActionResult GetItems (int [] v, int? parent)
        {
            return Json (repo.GetAll ()
                . Where (o => v.Contains (o.Id) && o.Evento.Id == parent)
                . ToArray ()
                . Select (o => new KeyContent (o.Id, o.Descricao)));
        }

                <div class="field">
                    <label style="width:120px;"> Participant *: </ label>
                    @ Html.Awe (). LookupFor (o => o.ParticipanteId.) Title ("List of speakers.") Parent (o => o.EventoId)
                    @ Html.ValidationMessageFor (o => o.ParticipanteId)
                </ Div>

    public class InscricaoInput: Input
    {
        [Required (ErrorMessageResourceName = "required", ErrorMessageResourceType = typeof (Mui))]
        [UIHint ("AjaxDropdown")]
        [Display (Name = "Event")]
        public int EventoId {get; sets;}

        [Display (Name = "Participant")]
        [UIHint ("Lookup")]
        public int ParticipanteId {get; sets;}

        [UIHint ("TextArea")]
        [Display (Name = "Note")]
        public string Note {get; sets;}

        [UIHint ("multilookup")]
        [AdditionalMetadata ("DragAndDrop", true)]
        / / [AdditionalMetadata ("PopupClass", "PalestrantesLookup")]
        [Multilookup (Fullscreen = true)]
        / / [Display (ResourceType = typeof (Mui), Name = "Speakers")]
        public IEnumerable <int> Schedules {get; sets;}

New Post: parent in multlookup

$
0
0
you should explain in the detail what are you trying to do from the users point view

New Post: MultiLookup Unable to create a constant null value of type 'System.Int32 []

$
0
0
I'm using multilookup just that when I'm editing the record the following error appears:
  "Unable to create a constant null value of type 'System.Int32 []'. Only entity types, enumeration types or primitive types are supported in this context."
the method:
public ActionResult GetItems (int [] v, int parent)
         {
             return Json (repo.GetAll ()
                 . Where (o => v.Contains (o.Id))
                 . ToArray ()
                 . Select (o => new KeyContent (o.Id, o.Nome)));
         }
My relationship is on the table 0: n, ie, can not have or how I should precede registration.

New Post: MultiLookup Unable to create a constant null value of type 'System.Int32 []

$
0
0
I would be good to see the stacktrace as well but I presume that it's the int[] v that is null, I don't see you using it in the code provided, but if you are probably you're getting an error because of that

New Post: PopupForm help

$
0
0
In the examples you have for additional buttons, they all spawn other forms.

How do I take one of the buttons and emulate the 'close' or 'OK' action to dismiss the form.

I've tried this several ways including submitting in the form. I've also tried in jQuery to

$('.awe-popup').remove();
$('.ui-widget-overlay').remove();


and while that works to dismiss the popupform, it doesnt unbind the mouse events.

What is the jQuery/awe/javascript command to just dismiss the dialog?

I've been stuck on this for hours...

New Post: PopupForm help

$
0
0
this is shown the popup demo: http://demo.aspnetawesome.com/PopupDemo

look at the "Popup With Buttons"
<%:Html.Awe().PopupActionLink().Name("p3")
     .LinkText("Open")
     .Button("Say Hi", "sayHi")
     .Button("Close", "closePopup")
     .Content("Popup with buttons, each button has a js function for the click event")
 %>
 <script type="text/javascript">
 function closePopup() {
    $(this).dialog('close');
}

 function sayHi() {
    alert('hi');
 }
</script>
note popupform has the same features as the popup plus the form post handling

New Post: PopupForm help

$
0
0
I tried that first...

In chrome once i hit the button i get 'Uncaught TypeError': Object [object Object] has no method 'dialog'


what my code is doing, it renders a webgrid and a link to the popupform:

grid.Column("Edit", format: item => @Html.Awe().PopupFormActionLink().Button("Remove User","removeUser").HtmlAttributes("id =\"editpopup\"").LinkText("edit").CssClass("icon-small pencil has-tip, tip-left").Url(Url.Action("editUser", "Company", new { id = item.CONT_ID})).Height(575).Width(575).Title("edit user").Success("updateGrid").Modal(true)),

in that code is where I have the function as mentioned above (if i move it to the subform, it gets 'removeUser' is not defined and the popup never shows.

then it loads the form, which renders properly in the popup...

the buttons appear correctly, but clicking the remove user button results in the error above.

New Post: PopupForm help

$
0
0
if you get has no method 'dialog' this could mean
1) you don't have jQueryUI referenced // not your case cuz I suppose you see the popup
2) you're calling this on the wrong object, or you didn't wrapped it in $()

try doing a very simple example just like in the demo, and gradually move it to your case
Viewing all 345 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>