This question is locked. New answers and comments are not allowed.
Hi All,
I've seen some similar posts to this but nothing that has helped me much to figure out where I'm going wrong. So I'm sorry if this covers old ground but I'm struggling to sort this...
I have a set of tabs that load grids via Load
Index.aspx (Main View)
If I do the Html.Action and load a partial my grid works but if I use the Load Content From method it doesn't.
What I get is the grid showing correctly but the Paging/filters etc fail. I tried mannually loading the javascript files in the Scriptregistrar
as shown here : http://bit.ly/dgf26l
Which helped but when I Do this the paging works (fires a POST request and returns JSON) but the dat ais not bound to the grid and the grid refreshes with blank lines.
I can see by viewing source in the browser that the difference is when using ajax I'm missing the Jquey("Gid") binding details that are in the CDATA stuff.. When I do this with a standard partial this is populated for me. Any Help in getting this working would be appreciated. I don't want to use partial as some of the sales can be 1000's of lines long so I don't want to have to pre-populate these as It makes the page really slow to load.
I've seen some similar posts to this but nothing that has helped me much to figure out where I'm going wrong. So I'm sorry if this covers old ground but I'm struggling to sort this...
I have a set of tabs that load grids via Load
Index.aspx (Main View)
Html.Telerik().TabStrip() .Name("SectionTabs") .SelectedIndex(0) .Effects(fx =>fx.Opacity().CloseDuration(500).OpenDuration(500)) .Items(tabs => { tabs.Add() .Text("Contacts") .LoadContentFrom("ViewContacts", "Customer", new { customerKey = ViewData["CustomerKey"] }); tabs.Add() .Text("Sales") .Content(() => { %> <%: Html.Action("PartialSalesGrid", "Customer", new { customerKey = ViewData["CustomerKey"] })%> <%}); }).Render();What I get is the grid showing correctly but the Paging/filters etc fail. I tried mannually loading the javascript files in the Scriptregistrar
as shown here : http://bit.ly/dgf26l
Which helped but when I Do this the paging works (fires a POST request and returns JSON) but the dat ais not bound to the grid and the grid refreshes with blank lines.
I can see by viewing source in the browser that the difference is when using ajax I'm missing the Jquey("Gid") binding details that are in the CDATA stuff.. When I do this with a standard partial this is populated for me. Any Help in getting this working would be appreciated. I don't want to use partial as some of the sales can be 1000's of lines long so I don't want to have to pre-populate these as It makes the page really slow to load.