This is a migrated thread and some comments may be shown as answers.

Call back on node check. how ?

3 Answers 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
dotnetshar net
Top achievements
Rank 1
dotnetshar net asked on 20 Jan 2011, 11:59 PM
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>


3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Jan 2011, 09:48 AM
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.
0
dotnetshar net
Top achievements
Rank 1
answered on 21 Jan 2011, 06:33 PM
In the code  above, the panel bar is inside the ajax panel.
 can you pls explain with code sample.
0
Yana
Telerik team
answered on 25 Jan 2011, 03:43 PM
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.
Tags
TreeView
Asked by
dotnetshar net
Top achievements
Rank 1
Answers by
Yana
Telerik team
dotnetshar net
Top achievements
Rank 1
Share this question
or