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
↧
New Post: Awesome search
on this page http://demo.aspnetawesome.com/GridDemo
the grid has this
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
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
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:
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
maybe something like this:
.Where(x =>x.lic_plate == null || x.lic_plate.ToLower().Contains(lic_plate));
↧
New Post: Awesome search
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?
Any other ideas?
↧
↧
New Post: Search operator does not exist: text = integer
I have got search:
and I get error from db:
operator does not exist: text = integer
What have I done wrong?
var queryOver = session.Query<Transport>()
.Where(x => x.lic_plate.ToLower().Contains(lic_plate)
&& x.Uzsakovas.name.ToLower().Contains(UzsakovasName)
UzsakovasName is stringand I get error from db:
operator does not exist: text = integer
What have I done wrong?
↧
New Post: Sorting null value
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
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
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
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
from the awesome demo
Site.master:
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.
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
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.
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
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.
When I set the height and width of the popupform, the values are not taken into account.
<button type="button" class="awe-btn" onclick="@(Url.Awe().PopupFormAction().Url(Url.Action("create")).Success("createQuestionset").Height(800).Width(800))">@Mui.Create qs</button>
No matter what values i set, the size of the popup remains the same.
Is there anything more to do?
<button type="button" class="awe-btn" onclick="@(Url.Awe().PopupFormAction().Url(Url.Action("create")).Success("createQuestionset").Height(800).Width(800))">@Mui.Create qs</button>
No matter what values i set, the size of the popup remains the same.
Is there anything more to do?
↧
New Post: Height and width of the popupform are not taken into account.
are you using the jQueryUI popup or bootstrap, inline ?
↧
↧
New Post: Height and width of the popupform are not taken into account.
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
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.
the latest demo app and prodinner are on mvc 5.1
https://prodinner.codeplex.com/releases/view/121695
the width and height may be ignored if you're using .Fullscreen(true)
or if the screen size is smaller than the specified one
https://prodinner.codeplex.com/releases/view/121695
the width and height may be ignored if you're using .Fullscreen(true)
or if the screen size is smaller than the specified one
↧
New Post: Height and width of the popupform are not taken into account.
I tried with fullscreen also, it did not take effect.
↧
New Post: Height and width of the popupform are not taken into account.
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...
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?
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...
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)
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...
Yes, you are right. Problem was inside my partial view.
Thanks for your reply.
Thanks for your reply.
↧