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

New Post: Awesome search

$
0
0
Maybe someone could explain me how does Awesome search works (like in Grid Demo?) I find javascript and some form, but can't manage to make it work for me(nothing happens). Maybe I am missing something?

New Post: Awesome search

$
0
0
on this page http://demo.aspnetawesome.com/GridDemo

the grid has this
<%=Html.Awe().Grid("Grid")
            ...
            .Parent("txtperson","person") /* binds to person */ 
            .Parent("txtfood","food") /* binds to food */
this way the grid is bound to parents and when the value of the parent changes the grid reloads (unless you have .LoadOnParentChange(false))
note txtperson is the id of the html element, and person is the name of the action parameter

client side api can also be used to search, as shown here http://demo.aspnetawesome.com/GridDemo/ClientSideApi ( "where food contains sushi" button)

http://aspnetawesome.com/learn/mvc/general#Binding-to-Parents

New Post: Awesome search

$
0
0
Thank you.

I managed to work it, now I have one problem...
In my grid I have null values and when I try to search(or even without search) I don't see null values

My code:
lic_plate = (lic_plate ?? "").ToLower();
queryOver = session.Query<Transport>()
.Where(x => x.lic_plate.ToLower().Contains(lic_plate));
How can i search through null values?

New Post: Awesome search

$
0
0
maybe something like this:
      .Where(x =>x.lic_plate == null ||  x.lic_plate.ToLower().Contains(lic_plate));

New Post: Awesome search

$
0
0
that works, but when I have more than one search parameters and I enter only 1 parameter I get values where x.Lic_plate is null to...

Any other ideas?

New Post: Search operator does not exist: text = integer

$
0
0
I have got search:

               var queryOver = session.Query<Transport>()
                .Where(x => x.lic_plate.ToLower().Contains(lic_plate)
                    && x.Uzsakovas.name.ToLower().Contains(UzsakovasName)
UzsakovasName is string
and I get error from db:
operator does not exist: text = integer

What have I done wrong?

New Post: Sorting null value

$
0
0
specify the fields that you need to use in the column definition,
example:
for
Map = o => new { o.Person, o.Food, Date = o.Date.ToString("dd MMMM yyyy"), o.Location },

you can do
            new Column { ClientFormat = ".Person was at .Location"},
            new Column { ClientFormat = ".Food" },
            new Column { Name = "Date"} // same as ClientFormat = ".Date" except here you also bind the column to grid model's Date property (not to the mapped model)

New Post: Date format in the text box when edit is incorrect

$
0
0
Hello, I am developing the same project. I have a question that the date format in the text box while editing is not same as adding new record.

I mean when i enter new record the date format in the text box is like 15/07/2014, and when i edit record the date the the text box is like 26-Aug-14 12:00:00 AM. I don't understand where to modify my code in order to get the same date. Please help

New Post: Date format in the text box when edit is incorrect

$
0
0
from the awesome demo
Site.master:
  var dateFormat = '<%:AweUtil.ConvertTojQueryDateFormat(Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern)%>';
Site.js
   setjQueryValidateDateFormat(dateFormat);

New Post: MultiLookup doesn't post to controller second time.

$
0
0
Hi,

I have an issue with MultiLookup post.
First time I click the button to open MultiLookUp I get to the controller and all the the console is filled with data.
If I do not make any changes in console and just click the cancel button, than one more time click MultiLookUp button to open the console, I do not get to the controller. Could you please give me any tip on how to resolve this problem? I need an event every time I click on the button.

Thanks,
Shak

New Post: MultiLookup doesn't post to controller second time.

$
0
0
if the user clicks the button to select an item and after clicks cancel and opens it again he should get the same popup so there's no point in loading it again

when you click cancel the popup is hidden, but if the value of the field is changed or the value of a parent is changed the popup will be reinitialized,
so calling $('#multilookupid').change(); will make it reinitialize the popup

New Post: Height and width of the popupform are not taken into account.

New Post: Height and width of the popupform are not taken into account.

$
0
0
are you using the jQueryUI popup or bootstrap, inline ?

New Post: Height and width of the popupform are not taken into account.

$
0
0
I use jQueryUI popup.
I downloaded a sample app: prodinner which is in MVC4.
When i try to change it to MVC5, the popup breaks, though I don't get any error

New Post: Height and width of the popupform are not taken into account.


New Post: Height and width of the popupform are not taken into account.

$
0
0
I tried with fullscreen also, it did not take effect.

New Post: Height and width of the popupform are not taken into account.

$
0
0
it shouldn't, the width and height are ignored if you're using .Fullscreen(true) and window size is used instead

New Post: Html.Awe().AjaxCheckboxListFor not working when used in RenderPartial...

$
0
0
Hello,

I have a view with "IEnumerable" collection as a model to view. In this view i call "Html.RenderPartial" for every obect. In the partial view "Html.Awe().AjaxCheckboxListFor" is used.

However "Html.Awe().AjaxCheckboxListFor" is showing only one checkbox list.

Any idea?

New Post: Html.Awe().AjaxCheckboxListFor not working when used in RenderPartial...

$
0
0
well, since it's showing something, it means it's working, you should debug the GetItems method and see what it returns,
you can also see the GetItems request (and result) in the browser console (F12 or Ctrl+Shift+I in chrome)

New Post: Html.Awe().AjaxCheckboxListFor not working when used in RenderPartial...

$
0
0
Yes, you are right. Problem was inside my partial view.

Thanks for your reply.
Viewing all 345 articles
Browse latest View live