Call back on node check. how ?

4 posts, 0 answers
  1. dotnetshar net
    dotnetshar net avatar
    6 posts
    Member since:
    May 2010

    Posted 20 Jan 2011 Link to this post

    Very new to ajax + telerik.  I have a form with rad tree view. I have added server side event handler for NodeCheck in (code behind). The question is how should I make it call back instead of postback. Right now its a postback. 


    I have a form with tree view 
     <form id="form1" runat="server">
     <telerik:RadAjaxPanel runat="server" >
                <telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Height="110px">
                    <Items>
                        <telerik:RadPanelItem runat="server" Text="Search by Sku" Value="SKU">         
                        
                            <Items>
                                <telerik:RadPanelItem>
                                <ContentTemplate>
                                
                                    <telerik:RadTreeView   runat="server" ID="treeSku" CheckBoxes="true" OnClientNodeChecking="onNodeChecking" >                                
                                    </telerik:RadTreeView>
                                   
                                </ContentTemplate>
                                </telerik:RadPanelItem>
                            </Items>              
                            
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem runat="server" Text="Search by Product" Value="Product">
                        
                        </telerik:RadPanelItem>
                        
                    </Items>
                   
                </telerik:RadPanelBar>
                </telerik:RadAjaxPanel>
    </form>


  2. Yana
    Admin
    Yana avatar
    4850 posts

    Posted 21 Jan 2011 Link to this post

    Hello,

    I suggest you place the panelbar inside RadAjaxPanel in order to ajaxify the postback.

    Regards,
    Yana
    the Telerik team
    Browse the vast support resources we have to jump start 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.
  3. dotnetshar net
    dotnetshar net avatar
    6 posts
    Member since:
    May 2010

    Posted 21 Jan 2011 Link to this post

    In the code  above, the panel bar is inside the ajax panel.
     can you pls explain with code sample.
  4. Yana
    Admin
    Yana avatar
    4850 posts

    Posted 25 Jan 2011 Link to this post

    Hello,

    I'm sorry for my mistake.

    You can check whether it's postback using IsAjaxRequest property of the ajax panel. In your case it's supposed to make an ajax request. Also I suggest to add RadAjaxLoadingPanel and you'll notice that not the whole page is reloaded.

    Greetings,
    Yana
    the Telerik team
    Browse the vast support resources we have to jump start 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