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

Created Release: 4.0 (May 03, 2014)

$
0
0
version 4.0
==========================
- added InitPopup, InitPopupForm helpers, open initialized popups using awe.open(name, params)

- added Tag or Tags for all helpers, usable in mod code

- added popup aweclose, aweresize events

- popups have api accessible via .data('api'), with methods open, close and destroy

- all popups have .awe-popup class

- popups can be grouped using .Group(string), only 1 popup in the same group can exist at the same time

- added awebeginload event for grid, ajaxdropdown, ajaxradiolist and ajaxcheckboxlist

- datepicker won't focus it's textbox when clicking it's open button

- modding for ajaxradiolist, ajaxcheckboxlist

- css improvements, easier integration with bootstrap

- added prefix awe1_ to all persistence keys, can be changed by changing awe.ppk

- added ParameterFunc to grid, ajaxlist

- parent binding improvements

- popupform execute success function first and close after, success function has the popup as a parameter and can use the api to close it earlier

- strongly typed parentId generation same as for id

- bootstrap popup mod

- inline popup mod

- context object first parameter of awe.err

- fixed datepicker client validation

version 3.5.3
==========================
- support for mvc5

version 3.5.2
==========================
- fix for setting single value to multivalue controls

- datepicker min max date offset fix

- html encoding for keys fix

- enable Column.ClientFormatFunc to be a function call that will return a function

version 3.5.1
==========================

- fixed html attributes rendering

- fixed loading animation rendering

- css improvements

version 3.5
==========================

- autosize for all popups ( can be turned off by calling in js awe.autoSize = false )

- added Parent, Paremeter extensions to Popup and PopupForm helpers

- trigger aweload event on load of Grid, AjaxDropdown, AjaxRadioList, AjaxCheckboxList, Lookup, MultiLookup

- Client Side API for the AjaxDropdown, CheckboxList, AjaxRadioList

- oparams for all apis (one time params, params are persisted for subsequent calls)

- Grid selection: Multiselect, Singleselect, Multicheck

- Grid RTL support

- Grid row model can be obtained by calling $('row selector').data('model')

- new grid api calls: get last request, last result

- Grid columns definition can be changed by setting the GridModel.Columns or GridParams.Columns before passing gridParmas to the GridModelbuilder

- SendColumns grid extension will set the columns definition in the GridParams

- added Order property to the column

- Numeric extension for the autocomplete

- added HtmlAttributes(IDictionary<string,object>) extension to all helpers with HtmlAttributes(object) extension

- underscores from html attributes names specified using the HtmlAttributes(object) are converted to dash

- new datepicker extensions: MinDate, MaxDate, default date, isRtl

version 3.0
==========================
- added Grid helper

- added textbox helper

- added Client Side API for AjaxList

- removed .SearchButton from AjaxList

- AjaxForm and Confirm helpers have been merged into the Form helper

- optimized html output for AjaxDropdown, AjaxList, Autocomplete

- added XML Documentation


going from 2.0 to 3.0

to change from AjaxForm to Form you just have to replace Html.Awe().AjaxForm to Hmtl.Awe().Form

==================

Html.Confirm can be replaced with Html.Form

so instead of:

Html.Awe().Confirm().ConfirmClass("myconfirm")

<form ...>
...
<input type="submit" value="submit" class="myconfirm"/>
</form>


you do:

Html.Awe().Form().FormClass("myconfirm").Confirm(true)

(by default the form will be submited via ajax, if you don't need that add .UseAjax(false))

<form ... class="myconfirm">
...
<input type="submit" value="submit"/>
</form>

===================

AjaxList's 2.0 .SearchButton(string) was setting the id of a button that will trigger the AjaxList to search,
with 3.0 you can trigger the search with the client side api by doing $('#ajaxListId').data('api').load();

or you may not need a search button at all, because changing a parent element will trigger search on the ajaxlist, you can disable the automatic triggering of search when changing the value of a parent element by calling .LoadOnParentChange(false)

Released: 4.0 (May 03, 2014)

$
0
0
version 4.0
==========================
- added InitPopup, InitPopupForm helpers, open initialized popups using awe.open(name, params)

- added Tag or Tags for all helpers, usable in mod code

- added popup aweclose, aweresize events

- popups have api accessible via .data('api'), with methods open, close and destroy

- all popups have .awe-popup class

- popups can be grouped using .Group(string), only 1 popup in the same group can exist at the same time

- added awebeginload event for grid, ajaxdropdown, ajaxradiolist and ajaxcheckboxlist

- datepicker won't focus it's textbox when clicking it's open button

- modding for ajaxradiolist, ajaxcheckboxlist

- css improvements, easier integration with bootstrap

- added prefix awe1_ to all persistence keys, can be changed by changing awe.ppk

- added ParameterFunc to grid, ajaxlist

- parent binding improvements

- popupform execute success function first and close after, success function has the popup as a parameter and can use the api to close it earlier

- strongly typed parentId generation same as for id

- bootstrap popup mod

- inline popup mod

- context object first parameter of awe.err

- fixed datepicker client validation

version 3.5.3
==========================
- support for mvc5

version 3.5.2
==========================
- fix for setting single value to multivalue controls

- datepicker min max date offset fix

- html encoding for keys fix

- enable Column.ClientFormatFunc to be a function call that will return a function

version 3.5.1
==========================

- fixed html attributes rendering

- fixed loading animation rendering

- css improvements

version 3.5
==========================

- autosize for all popups ( can be turned off by calling in js awe.autoSize = false )

- added Parent, Paremeter extensions to Popup and PopupForm helpers

- trigger aweload event on load of Grid, AjaxDropdown, AjaxRadioList, AjaxCheckboxList, Lookup, MultiLookup

- Client Side API for the AjaxDropdown, CheckboxList, AjaxRadioList

- oparams for all apis (one time params, params are persisted for subsequent calls)

- Grid selection: Multiselect, Singleselect, Multicheck

- Grid RTL support

- Grid row model can be obtained by calling $('row selector').data('model')

- new grid api calls: get last request, last result

- Grid columns definition can be changed by setting the GridModel.Columns or GridParams.Columns before passing gridParmas to the GridModelbuilder

- SendColumns grid extension will set the columns definition in the GridParams

- added Order property to the column

- Numeric extension for the autocomplete

- added HtmlAttributes(IDictionary<string,object>) extension to all helpers with HtmlAttributes(object) extension

- underscores from html attributes names specified using the HtmlAttributes(object) are converted to dash

- new datepicker extensions: MinDate, MaxDate, default date, isRtl

version 3.0
==========================
- added Grid helper

- added textbox helper

- added Client Side API for AjaxList

- removed .SearchButton from AjaxList

- AjaxForm and Confirm helpers have been merged into the Form helper

- optimized html output for AjaxDropdown, AjaxList, Autocomplete

- added XML Documentation


going from 2.0 to 3.0

to change from AjaxForm to Form you just have to replace Html.Awe().AjaxForm to Hmtl.Awe().Form

==================

Html.Confirm can be replaced with Html.Form

so instead of:

Html.Awe().Confirm().ConfirmClass("myconfirm")

<form ...>
...
<input type="submit" value="submit" class="myconfirm"/>
</form>


you do:

Html.Awe().Form().FormClass("myconfirm").Confirm(true)

(by default the form will be submited via ajax, if you don't need that add .UseAjax(false))

<form ... class="myconfirm">
...
<input type="submit" value="submit"/>
</form>

===================

AjaxList's 2.0 .SearchButton(string) was setting the id of a button that will trigger the AjaxList to search,
with 3.0 you can trigger the search with the client side api by doing $('#ajaxListId').data('api').load();

or you may not need a search button at all, because changing a parent element will trigger search on the ajaxlist, you can disable the automatic triggering of search when changing the value of a parent element by calling .LoadOnParentChange(false)

Updated Release: 4.0 (May 03, 2014)

$
0
0
version 4.0
==========================
- added InitPopup, InitPopupForm helpers, open initialized popups using awe.open(name, params)

- added Tag or Tags for all helpers, usable in mod code

- added popup aweclose, aweresize events

- popups have api accessible via .data('api'), with methods open, close and destroy

- all popups have .awe-popup class

- popups can be grouped using .Group(string), only 1 popup in the same group can exist at the same time

- added awebeginload event for grid, ajaxdropdown, ajaxradiolist and ajaxcheckboxlist

- datepicker won't focus it's textbox when clicking it's open button

- modding for ajaxradiolist, ajaxcheckboxlist

- css improvements, easier integration with bootstrap

- added prefix awe1_ to all persistence keys, can be changed by changing awe.ppk

- added ParameterFunc to grid, ajaxlist

- parent binding improvements

- popupform execute success function first and close after, success function has the popup as a parameter and can use the api to close it earlier

- strongly typed parentId generation same as for id

- bootstrap popup mod

- inline popup mod

- context object first parameter of awe.err

- fixed datepicker client validation

version 3.5.3
==========================
- support for mvc5

version 3.5.2
==========================
- fix for setting single value to multivalue controls

- datepicker min max date offset fix

- html encoding for keys fix

- enable Column.ClientFormatFunc to be a function call that will return a function

version 3.5.1
==========================

- fixed html attributes rendering

- fixed loading animation rendering

- css improvements

version 3.5
==========================

- autosize for all popups ( can be turned off by calling in js awe.autoSize = false )

- added Parent, Paremeter extensions to Popup and PopupForm helpers

- trigger aweload event on load of Grid, AjaxDropdown, AjaxRadioList, AjaxCheckboxList, Lookup, MultiLookup

- Client Side API for the AjaxDropdown, CheckboxList, AjaxRadioList

- oparams for all apis (one time params, params are persisted for subsequent calls)

- Grid selection: Multiselect, Singleselect, Multicheck

- Grid RTL support

- Grid row model can be obtained by calling $('row selector').data('model')

- new grid api calls: get last request, last result

- Grid columns definition can be changed by setting the GridModel.Columns or GridParams.Columns before passing gridParmas to the GridModelbuilder

- SendColumns grid extension will set the columns definition in the GridParams

- added Order property to the column

- Numeric extension for the autocomplete

- added HtmlAttributes(IDictionary<string,object>) extension to all helpers with HtmlAttributes(object) extension

- underscores from html attributes names specified using the HtmlAttributes(object) are converted to dash

- new datepicker extensions: MinDate, MaxDate, default date, isRtl

version 3.0
==========================
- added Grid helper

- added textbox helper

- added Client Side API for AjaxList

- removed .SearchButton from AjaxList

- AjaxForm and Confirm helpers have been merged into the Form helper

- optimized html output for AjaxDropdown, AjaxList, Autocomplete

- added XML Documentation


going from 2.0 to 3.0

to change from AjaxForm to Form you just have to replace Html.Awe().AjaxForm to Hmtl.Awe().Form

==================

Html.Confirm can be replaced with Html.Form

so instead of:

Html.Awe().Confirm().ConfirmClass("myconfirm")

<form ...>
...
<input type="submit" value="submit" class="myconfirm"/>
</form>


you do:

Html.Awe().Form().FormClass("myconfirm").Confirm(true)

(by default the form will be submited via ajax, if you don't need that add .UseAjax(false))

<form ... class="myconfirm">
...
<input type="submit" value="submit"/>
</form>

===================

AjaxList's 2.0 .SearchButton(string) was setting the id of a button that will trigger the AjaxList to search,
with 3.0 you can trigger the search with the client side api by doing $('#ajaxListId').data('api').load();

or you may not need a search button at all, because changing a parent element will trigger search on the ajaxlist, you can disable the automatic triggering of search when changing the value of a parent element by calling .LoadOnParentChange(false)

Released: 4.0 (May 03, 2014)

$
0
0
version 4.0
==========================
- added InitPopup, InitPopupForm helpers, open initialized popups using awe.open(name, params)

- added Tag or Tags for all helpers, usable in mod code

- added popup aweclose, aweresize events

- popups have api accessible via .data('api'), with methods open, close and destroy

- all popups have .awe-popup class

- popups can be grouped using .Group(string), only 1 popup in the same group can exist at the same time

- added awebeginload event for grid, ajaxdropdown, ajaxradiolist and ajaxcheckboxlist

- datepicker won't focus it's textbox when clicking it's open button

- modding for ajaxradiolist, ajaxcheckboxlist

- css improvements, easier integration with bootstrap

- added prefix awe1_ to all persistence keys, can be changed by changing awe.ppk

- added ParameterFunc to grid, ajaxlist

- parent binding improvements

- popupform execute success function first and close after, success function has the popup as a parameter and can use the api to close it earlier

- strongly typed parentId generation same as for id

- bootstrap popup mod

- inline popup mod

- context object first parameter of awe.err

- fixed datepicker client validation

version 3.5.3
==========================
- support for mvc5

version 3.5.2
==========================
- fix for setting single value to multivalue controls

- datepicker min max date offset fix

- html encoding for keys fix

- enable Column.ClientFormatFunc to be a function call that will return a function

version 3.5.1
==========================

- fixed html attributes rendering

- fixed loading animation rendering

- css improvements

version 3.5
==========================

- autosize for all popups ( can be turned off by calling in js awe.autoSize = false )

- added Parent, Paremeter extensions to Popup and PopupForm helpers

- trigger aweload event on load of Grid, AjaxDropdown, AjaxRadioList, AjaxCheckboxList, Lookup, MultiLookup

- Client Side API for the AjaxDropdown, CheckboxList, AjaxRadioList

- oparams for all apis (one time params, params are persisted for subsequent calls)

- Grid selection: Multiselect, Singleselect, Multicheck

- Grid RTL support

- Grid row model can be obtained by calling $('row selector').data('model')

- new grid api calls: get last request, last result

- Grid columns definition can be changed by setting the GridModel.Columns or GridParams.Columns before passing gridParmas to the GridModelbuilder

- SendColumns grid extension will set the columns definition in the GridParams

- added Order property to the column

- Numeric extension for the autocomplete

- added HtmlAttributes(IDictionary<string,object>) extension to all helpers with HtmlAttributes(object) extension

- underscores from html attributes names specified using the HtmlAttributes(object) are converted to dash

- new datepicker extensions: MinDate, MaxDate, default date, isRtl

version 3.0
==========================
- added Grid helper

- added textbox helper

- added Client Side API for AjaxList

- removed .SearchButton from AjaxList

- AjaxForm and Confirm helpers have been merged into the Form helper

- optimized html output for AjaxDropdown, AjaxList, Autocomplete

- added XML Documentation


going from 2.0 to 3.0

to change from AjaxForm to Form you just have to replace Html.Awe().AjaxForm to Hmtl.Awe().Form

==================

Html.Confirm can be replaced with Html.Form

so instead of:

Html.Awe().Confirm().ConfirmClass("myconfirm")

<form ...>
...
<input type="submit" value="submit" class="myconfirm"/>
</form>


you do:

Html.Awe().Form().FormClass("myconfirm").Confirm(true)

(by default the form will be submited via ajax, if you don't need that add .UseAjax(false))

<form ... class="myconfirm">
...
<input type="submit" value="submit"/>
</form>

===================

AjaxList's 2.0 .SearchButton(string) was setting the id of a button that will trigger the AjaxList to search,
with 3.0 you can trigger the search with the client side api by doing $('#ajaxListId').data('api').load();

or you may not need a search button at all, because changing a parent element will trigger search on the ajaxlist, you can disable the automatic triggering of search when changing the value of a parent element by calling .LoadOnParentChange(false)

Updated Release: 4.0 (May 03, 2014)

$
0
0
version 4.0
==========================
- added InitPopup, InitPopupForm helpers, open initialized popups using awe.open(name, params)

- added Tag or Tags for all helpers, usable in mod code

- added popup aweclose, aweresize events

- popups have api accessible via .data('api'), with methods open, close and destroy

- all popups have .awe-popup class

- popups can be grouped using .Group(string), only 1 popup in the same group can exist at the same time

- added awebeginload event for grid, ajaxdropdown, ajaxradiolist and ajaxcheckboxlist

- datepicker won't focus it's textbox when clicking it's open button

- modding for ajaxradiolist, ajaxcheckboxlist

- css improvements, easier integration with bootstrap

- added prefix awe1_ to all persistence keys, can be changed by changing awe.ppk

- added ParameterFunc to grid, ajaxlist

- parent binding improvements

- popupform execute success function first and close after, success function has the popup as a parameter and can use the api to close it earlier

- strongly typed parentId generation same as for id

- bootstrap popup mod

- inline popup mod

- context object first parameter of awe.err

- fixed datepicker client validation

version 3.5.3
==========================
- support for mvc5

version 3.5.2
==========================
- fix for setting single value to multivalue controls

- datepicker min max date offset fix

- html encoding for keys fix

- enable Column.ClientFormatFunc to be a function call that will return a function

version 3.5.1
==========================

- fixed html attributes rendering

- fixed loading animation rendering

- css improvements

version 3.5
==========================

- autosize for all popups ( can be turned off by calling in js awe.autoSize = false )

- added Parent, Paremeter extensions to Popup and PopupForm helpers

- trigger aweload event on load of Grid, AjaxDropdown, AjaxRadioList, AjaxCheckboxList, Lookup, MultiLookup

- Client Side API for the AjaxDropdown, CheckboxList, AjaxRadioList

- oparams for all apis (one time params, params are persisted for subsequent calls)

- Grid selection: Multiselect, Singleselect, Multicheck

- Grid RTL support

- Grid row model can be obtained by calling $('row selector').data('model')

- new grid api calls: get last request, last result

- Grid columns definition can be changed by setting the GridModel.Columns or GridParams.Columns before passing gridParmas to the GridModelbuilder

- SendColumns grid extension will set the columns definition in the GridParams

- added Order property to the column

- Numeric extension for the autocomplete

- added HtmlAttributes(IDictionary<string,object>) extension to all helpers with HtmlAttributes(object) extension

- underscores from html attributes names specified using the HtmlAttributes(object) are converted to dash

- new datepicker extensions: MinDate, MaxDate, default date, isRtl

version 3.0
==========================
- added Grid helper

- added textbox helper

- added Client Side API for AjaxList

- removed .SearchButton from AjaxList

- AjaxForm and Confirm helpers have been merged into the Form helper

- optimized html output for AjaxDropdown, AjaxList, Autocomplete

- added XML Documentation


going from 2.0 to 3.0

to change from AjaxForm to Form you just have to replace Html.Awe().AjaxForm to Hmtl.Awe().Form

==================

Html.Confirm can be replaced with Html.Form

so instead of:

Html.Awe().Confirm().ConfirmClass("myconfirm")

<form ...>
...
<input type="submit" value="submit" class="myconfirm"/>
</form>


you do:

Html.Awe().Form().FormClass("myconfirm").Confirm(true)

(by default the form will be submited via ajax, if you don't need that add .UseAjax(false))

<form ... class="myconfirm">
...
<input type="submit" value="submit"/>
</form>

===================

AjaxList's 2.0 .SearchButton(string) was setting the id of a button that will trigger the AjaxList to search,
with 3.0 you can trigger the search with the client side api by doing $('#ajaxListId').data('api').load();

or you may not need a search button at all, because changing a parent element will trigger search on the ajaxlist, you can disable the automatic triggering of search when changing the value of a parent element by calling .LoadOnParentChange(false)

Updated Wiki: Home

$
0
0
Project Description
It contains a rich set of helpers (controls) that you can use to build highly responsive and interactive Ajax-enabled Web applications. These helpers include Autocomplete, AjaxDropdown, Lookup, MultiLookup, AjaxForm, AjaxRadioList, AjaxCheckBoxList, DatePicker, Confirm Dialog, Popup Form and Pager

Project website: http://aspnetawesome.com

Demo App Live Link: http://demo.aspnetawesome.com

download demo app

ProDinner: http://prodinner.aspnetawesome.com

download prodinnerhttp://prodinner.codeplex.com

Learn http://aspnetawesome.com/learn

Main Video Tutorial: http://youtu.be/qDyhszMa1yA?hd=1

subjects covered: installation, AjaxDropdown, binding to Parents (cascade) , using Predefined Parameters, AjaxRadiolist, debugging in firebug

Lookup, MultiLookup and AjaxList Tutorial: http://youtu.be/gxb3z2VYJqg?hd=1

Popup, PopupForm and AjaxForm Tutorial: http://youtu.be/KcXUES-fN5s?hd=1

ASP.net MVC Tutorial: http://www.youtube.com/watch?v=fsfOFL4bXXA

Quick Demo:



Documentation for ASP.net MVC Awesome (version 1.9) Free version

Downloads


Recommendation: use firebug, and keep the console tab active
Video Tutorials
Lookup download watch: http://www.youtube.com/watch?v=OqkwM4P9zYo
AjaxDropdown download watch: http://www.youtube.com/watch?v=qW94rtkXPOQ
Lookup with Multiselect download watch: http://www.youtube.com/watch?v=NskjWx32lsk

New Post: Grid Tag object

$
0
0
Hi, I'm setting the tag object of the GridModel on the server side, can I access it using the clientside API?
I see it in the response of the GetItem, so I'm guessing it is saved somewhere.
Thanks,
Shachar

New Post: Grid Tag object

$
0
0
you can see the gridmodel tag being used here: http://demo.aspnetawesome.com/GridChooseColumnsDemo
it's used to populate the checkboxlist

on the server it's being set and
on the client it's used like this:
        $('#GridChooseColumns').on('aweload', function (e, res) {
            $('#chkColumns').data('api').load({ params: res.Tag });
        });

New Post: Grid Tag object

$
0
0
Thank you for your prompt reply,
I found a way to access the Tag:

$('#Grid').data('api').getResult().Tag;

Shachar

New Post: Hi, Is it possible to disable the Lookup control in Javascript? Thanks!

$
0
0
Hi, Is it possible to disable the Lookup control in Javascript? Thanks!

New Post: Hi, Is it possible to disable the Lookup control in Javascript? Thanks!

$
0
0
there's no feature for it but there's stuff that you could do manually, like removing the click event, or hiding the button, or rendering a label/textbox instead of lookup

New Post: Which Version is compatible for ASP.NET MVC 3

$
0
0
Is this compatible for ASP.NET MVC 3 ?
If Yes, please let me know that.

Thanks in advance.

New Post: Which Version is compatible for ASP.NET MVC 3

$
0
0
the latest version 4.0 is compatible with mvc3, if you download the trial you'll see that the bin folder has 3 subfolders mvc3 mvc4 mvc5 and each folder has AwesomeMvc.dll

New Post: Sorting null value

$
0
0
I have Classes
public class Transport
    {
        public virtual int Id { get; set; } 
        public virtual string lic_plate { get; set; } /
        public virtual Class.CarModel Modelis { get; set; }
}
And
    public class CarModel
    {
        public virtual int Id { get; set; }
        public virtual string model_name { get; set; }
    }
And when i try to sort Modelis.model_name i get error Npgsql.NpgsqlException: ERROR: 2201X: OFFSET must not be negative

New Post: Sorting null value


New Post: Selecting rows to delete

$
0
0
Is there any possible way to select several rows(like with checkboxes) and delete them with one button press?

New Post: Selecting rows to delete

$
0
0
yes, try this demo: http://demo.aspnetawesome.com/MailboxDemo

with actual checkboxes you can do it like this:
<%=Html.Awe().Grid("Grid")
            .Columns(
                new Column{Width = 55,
                    ClientFormat = "<input type='checkbox' name='id' value='.Id'/>", 
                    Header = "<input type='checkbox' name='chkAll' />"},
                new Column{Name = "Person"},
                new Column{Name = "Food"},
                new Column{Name = "Location"}
            )
            .Url(Url.Action("GetItems", "LunchGrid"))
%>
<br/>
<button class="awe-btn" id='btnGetSelection'>get selection</button>
<div id="log"></div>
<script>
    $(function () {
        $(document).on('click', '.awe-grid [name=chkAll]', function () {
            if($(this).is(':checked'))
                $(this).closest('.awe-grid').find('[name=id]').attr('checked', 'checked');
            else
                $(this).closest('.awe-grid').find('[name=id]').removeAttr('checked');
        });

        $('#btnGetSelection').click(function () {
            var arr = $('#Grid [name=id]:checked').map(function() {
                return $(this).val();
            }).get();

            $('#log').html(JSON.stringify(arr));
        });
    });
</script>

New Post: Sorting null value

$
0
0
It's not sql error(since it works with grid.mvc)

Here is some additional error (I get it because of this row:return Json(new GridModelBuilder<Transport>(list, g) ):
[ select transport0_.Id as Id150_, transport0_.lic_plate as lic2_150_, transport0_.model as model150_, transport0_.odometer as odometer150_, transport0_.moto_val as moto5_150_, transport0_.body_nr as body6_150_, transport0_.color as color150_, transport0_.made_date as made8_150_, transport0_.autoage as autoage150_, transport0_.buy_date as buy10_150_, transport0_.sell_date as sell11_150_, transport0_.travel_page as travel12_150_, transport0_.rajonas as rajonas150_, transport0_.region as region150_, transport0_.status as status150_, transport0_.category_tp as category16_150_, transport0_.trailer as trailer150_, transport0_.driver as driver150_, transport0_.owner as owner150_, transport0_.client as client150_, transport0_.fuel_type as fuel21_150_, transport0_.start_type as start22_150_, transport0_.fuel_capacity as fuel23_150_, transport0_.fuel_left as fuel24_150_, transport0_.fuel_rate as fuel25_150_, transport0_.moto_fuel_rate as moto26_150_, transport0_.spec_moto_fuel_rate as spec27_150_, transport0_.classs as classs150_, transport0_.type as type150_, transport0_.body_type as body30_150_, transport0_.spec_type as spec31_150_, transport0_.clasification as clasifi32_150_, transport0_.weight as weight150_, transport0_.engine_volume as engine34_150_, transport0_.sbtype as sbtype150_, transport0_.catalizator as cataliz36_150_, transport0_.sertificate as sertifi37_150_, transport0_.expiration_date as expiration38_150_ from transport transport0_ limit :p0 offset :p1 ]
  Name:p1 - Value:-10  Name:p2 - Value:10
P.s in my classes there are more values than I wrote before(thats why query is so long)

Seems that Offset is negative, and I can't figure out why is that?

New Post: Sorting null value

$
0
0
try to separate it:
  var gridModel = new GridModelBuilder<Transport>(list, g).Build({...});

  // also try to invoke the serializer manually
  serializer.Serialize(gridModel)

  Json(gridModel); 

make use of Map http://aspnetawesome.com/learn/mvc/Grid#Map , with EF and SQL Server sometimes there's errors on serialization because of lazy loading, when query gets executed circular references occur, using map you specify the fields that you need

New Post: Sorting null value

$
0
0
I use mapping, but should I specify all fields?
Talking about serializer (what kind of serializer should I use, since I get error)
The name 'serializer' does not exist in the current context
And separating gridmodel from return json does not fix error.

Thank you.
Viewing all 345 articles
Browse latest View live


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