| <asp:LinkButton ID="lkbUpdate" ValidationGroup="LocDetail" |
| Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' |
| runat="server" OnClientClick="Insert_Click();" |
| CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'> |
| </asp:LinkButton> |
| <asp:LinkButton ID="lkbCancel" Text="Cancel" runat="server" CausesValidation="False" |
| CommandName="Cancel"> |
| </asp:LinkButton> |
Hi,
i have a radgrid with nestedview, the radgrid datasource it's a webservice method that return a class that contain a list
i set the databoundcolumn datafield with object in class and the field in the nestedview with the object in the list,
column receive value nested not
Sorry for my english
post the code:
WEBSERVICE
| PricesList head = new PricesList(); |
| head.ValidityDate = item.lisdata; |
| head.Company = item.lissoc; |
| head.ProductID = item.listart; |
| head.ProductDescription = GetProductDescription(item.listart); |
| head.ProductDraw = GetProductDraw(item.listart); |
| head.CustomerID = item.listcli; |
| head.ListType = item.listip; |
| head.Details = new List<PricesListDetail>(); |
| IQueryable<LISTINO_DET> details = from det in context.LISTINO_DET |
| where det.lisdata == item.lisdata && det.lissoc == item.lissoc && det.listart == item.listart && det.listcli == item.listcli && det.listip == item.listip |
| orderby det.listriga |
| select det; |
| foreach (LISTINO_DET item_det in details) |
| { |
| PricesListDetail detail = new PricesListDetail(); |
| detail.Row = item_det.listriga; |
| detail.Price = item_det.lispre; |
| detail.ChangedPrice = item_det.lisfed; |
| detail.Discount1 = item_det.liscon1; |
| detail.Discount2 = item_det.liscon2; |
| detail.Discount3 = item_det.liscon3; |
| head.Details.Add(detail); |
| } |
| retValue.Add(head); |
ASPX
| <telerik:RadGrid ID="rgPriceList" runat="server" AutoGenerateColumns="False" |
| AllowSorting="True" GridLines="None" ShowGroupPanel="True" |
| AllowPaging="true" PageSize="10" |
| ondatabound="rgPriceList_DataBound" Skin="Hay" |
| onpageindexchanged="rgPriceList_PageIndexChanged" |
| onpagesizechanged="rgPriceList_PageSizeChanged"> |
| <MasterTableView AllowMultiColumnSorting="True" |
| GroupLoadMode="Server"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="ProductID" HeaderText="Codice" UniqueName="colCodice"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ProductDescription" HeaderText="Articolo" UniqueName="colArticolo" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ProductDraw" HeaderText="Disegno" UniqueName="colDisegno"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <NestedViewSettings> |
| <ParentTableRelation> |
| <telerik:GridRelationFields /> |
| </ParentTableRelation> |
| </NestedViewSettings> |
| <NestedViewTemplate> |
| <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap" > |
| <div class="contactWrap"> |
| <fieldset style="padding: 10px;"> |
| <legend style="padding: 5px;"><b>Dettagli listino: <%#Eval("Details.priceField")%></b></legend> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| Prezzo: |
| </td> |
| <td> |
| <asp:Label ID="lblPrice" Text='<%#Eval("Price")%>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Prezzo rivisto: |
| </td> |
| <td> |
| <asp:Label ID="Label1" Text='<%#Eval("ChangedPrice") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Sconto: |
| </td> |
| <td> |
| <asp:Label ID="Label4" Text='<%#Eval("Discount1") %>' runat="server"></asp:Label> |
| </td> |
| </tr> |
| </table> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </fieldset> |
| </div> |
| </asp:Panel> |
| </NestedViewTemplate> |
| </MasterTableView> |
| </telerik:RadGrid> |
| it.ufp.ws.Vulpes_WS ws = new it.ufp.ws.ulpes_WS(); |
|
rgPriceList.DataSource = ws.GetCustomerPrices(int.Parse(Session["customer_id"].ToString()));
|
In my project I am using telerik RadComboBox version 2.6.0, RadAjax.Net2.dll version 1.6.0 and ajaxcontroltoolkit version 3.0.20820.31333 and .net 3.5
Can you please let me know what is the issue.
<telerik:RadScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="JobReportGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="JobReportGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="JobDetailGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="JobDetailGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" EnableAjaxSkinRendering="true" runat="server">
</telerik:RadAjaxLoadingPanel>
I have two radgrid:JobReportGrid and JobDetailGrid.
When I entered search criteria progress bar does not work but when I changed size of the page progress bar is working.
Also when I click on the row in my JobReportGrid progress bar is working but data in JobDetailgrid not display and I know for sure that there is a data.
when I comment out above coding everything working perfectly but I need progress bar indicator.
Thanks so much for your help.
| RadToolBarButton btn = RadToolBar1.FindItemByValue("MoveFiles") as RadToolBarButton; |
| RadToolTipManager1.TargetControls.Add(btn.ClientID, true); |