or
<WebMethod()> Public Shared Function Pcpacking() As IEnumerable(Of Packing) Dim db As New STOREEntities Return db.PC_PACKING_HISTORIES. _ Where(Function(q) q.PACK_DATE > "1388/11/07"). _ Select(Function(q) New Packing _ With {.Packdate = q.PACK_DATE, .Packserialnumber = q.PACK_SERIAL_NUMBER, .Netweight = q.NET_WEIGHT, .Packusername = q.PACK_USER_NAME}).ToList() End Function$(function () { $("#grid").kendoGrid({ height: 200, columns: [ { field: "Packserialnumber", width: "150px" }, { field: "Netweight", width: "50px" }, { field: "Packusername", width: "150px" }, { field: "Packdate", width: "100px" } ], editable: false, dataSource: { schema: { data: "d", model: { id: "Packserialnumber", fields: { Packserialnumber: { editable: false, nullable: true }, Netweight: { type: "number", validation: { required: true, min: 1} }, Packusername: { validation: { required: true} }, Packdate: { validation: { required: true} } } } }, batch: false, transport: { read: { url: "Default.aspx/Pcpacking", contentType: "application/json; charset=utf-8", type: "POST" } } } }); });[{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"E7B","Name":"Abraham, Bethany(426) ","Notifications":0,"Picture":null,"Resno":426,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"S26A","Name":"Banks, Rebecca M(301) ","Notifications":0,"Picture":null,"Resno":301,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"","Name":"Carr, William J(405) ","Notifications":0,"Picture":null,"Resno":405,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"W15A","Name":"Dickerson, Ann A(434) ","Notifications":0,"Picture":null,"Resno":434,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"E9A","Name":"Dorsey, Linda M(332) ","Notifications":0,"Picture":null,"Resno":332,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"E5B","Name":"Downey, Darlene J(407) ","Notifications":0,"Picture":null,"Resno":407,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"E11B","Name":"Easterling, Denise(443) ","Notifications":0,"Picture":null,"Resno":443,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"E9B","Name":"Eatherly, Harriet(445) ","Notifications":0,"Picture":null,"Resno":445,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"E10A","Name":"Edgar, Gloria J(430) ","Notifications":0,"Picture":null,"Resno":430,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4},{"Alerts":0,"Cono":"03","CurrentPageIndex":0,"Locations":"W20A","Name":"Evans, Kelly(461) ","Notifications":0,"Picture":null,"Resno":461,"Search":null,"Sort":null,"Status":0,"pageSize":0,"rcount":4}]
What i was wanting to happen is for my aspx page to load a number of user controls and then for the tabstrip control turn each loaded user control into a tabstrip item. I have written some code that will take the contents of a div and set it as the title then another div as the content. The idea was to have more control over the tab titles and for the tabs to be created dynamically. The amount of user controls and the content isnt known till the page is loaded
Basically the exact same code as below works with 2011 Q3 but not with the new update.
Javascript
$(document).ready(function () { // var ParentID; $("#tabstrip").kendoTabStrip({ }); var tabstrip = $("#tabstrip").kendoTabStrip().data("kendoTabStrip"); //for each DIV within tab content, move it to a new tab within the tad strip $('#tabcontent').children().each(function (index) { //Get HTML from DIV var title = $(this).find('.tab_title').html(); $(this).find('.tab_title').css('display', 'none'); var innerHTML = $(this).html(); //Append to the TABStrip tabstrip.append( [{ text: title, content: innerHTML }] ); //Remove original DIV $(this).remove(); }); $('#tabstrip .k-tabstrip-items').children().each(function (index) { var th = $.trim($(this).text()); $(this).html(th); });});
aspx page
<div id="tabstrip"> </div> <div id="tabcontent"> <asp:PlaceHolder ID="PHContent" runat="server"></asp:PlaceHolder> </div>N.B. Placeholder is where the user controls is loaded into
User Control
<div class="editDefaultInfo" title="Tab Title"> <div class="tab_title"> <span class="glyph listicon"></span> <p>Tab Title</p> </div> <h1>Tab Title</h1> <div class="form_content"> Tab Content </div><!--form_content--></div><!--Defaultinfo-->
Has something changed with the tabstrip control that would mean it no longer works?