Radgrid postback issue

2 posts, 0 answers
  1. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 18 Nov 2010 Link to this post

    Hello Telerik Team,
        I have a RadGrid with RadComboBox as GridTemplateColumn.Its property autopostback is true.When working onselectedindexchanged property of RadComboBox, how can we avoid its postback ?

    The code is like as follows.



    telerik:GridTemplateColumn HeaderText="QTY" SortExpression="quantity" >












    <telerik:RadNumericTextBox ID="rntUQuantity" runat="server" NumberFormat-KeepNotRoundedValue="true"



    Width="65%" Value='<%#Convert.ToDouble(Eval("UQuantity")) %>'>



    <NumberFormat GroupSeparator="," DecimalDigits="3"></NumberFormat>






    <telerik:RadComboBox ID="rUM" DataTextField="UM" DataValueField="UMID"



    runat="server" AutoPostBack="true"



    Width="35%" DataSource='<%#UOM%>'









    <asp:HiddenField ID="hdUOM" Value='<%#Eval("UMID")%>' runat="server" />






    <HeaderStyle Width="13%" Wrap="false" HorizontalAlign="Right" />



    <ItemStyle Width="13%" Wrap="false" HorizontalAlign="Right" />





    Waiting for the reply
  2. Pavlina
    Pavlina avatar
    6070 posts

    Posted 23 Nov 2010 Link to this post

    Hello Dayana,

    Note that the SelectedIndexChanged event does not fire unless the AutoPostBack property is True. Therefore I would suggest that you load your comboboxes on demand instead of using the SelectedIndexChanged event. You can find more information here.

    Kind regards,
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top