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

Updating RadPane content

5 Answers 183 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Francisco
Top achievements
Rank 1
Francisco asked on 21 Oct 2010, 04:41 PM
Greetings,

I have an application with a RadSplitter and two RadPane, one with a RadTreeView and other with diferent forms which are loaded depending on which level of the RadTreeView is selected. In those forms, the user could create or delete nodes from the tree.

The question is how can I manage those forms to reload the RadTreeView each time an update or insert is perfomed.

Kind Regards,

Francisco Cruzado

5 Answers, 1 is accepted

Sort by
0
Francisco
Top achievements
Rank 1
answered on 25 Oct 2010, 03:41 PM
Hello,

I've been working around this issue, and I've tried some solutions withouth success. I tried with just a form with a RadSplitter containing two RadPanes, one includes a RadTreeView and another a WebUserControl. In this WebUserControl I have a form where I can update a node from the tree, and if I confirm the changes it fires an event which is handled by my form and updates the tree.

Well, it works but the trees doesn't reflect the changes, moreover, I try to update any control inside the RadPanel and it doesn't refresh.

Here is a small snippet of the RadSplitter.

 

<telerik:RadPane runat="server" id="BottomPane">
    <telerik:RadSplitter ID="RadSplitterBottom" runat="server" Orientation="Vertical" Width="100%">        
        <telerik:RadPane ID="TreePane" Runat="server" Width="35%">
            <usercontrol:tree ID="TreeEmployees" runat="server" OnContextMenuClicked="TreeEmployees_OnContextMenuClicked" OnEmployeeChanged="TreeEmployees_OnEmployeeChanged" />
        </telerik:RadPane>
        <telerik:RadSplitBar ID="RadSplitBar" Runat="server" CollapseMode="Forward">
        </telerik:RadSplitBar>
        <telerik:RadPane ID="ContentPane" runat="server">
            <usercontrol:Employee ID="CtrlEmployee" runat="server" Visible="false" OnEmployeeUpdated="CtrlEmployee_OnEmployeeUpdated"/>
        </telerik:RadPane>
    </telerik:RadSplitter>
</telerik:RadPane>

 

 



Kind Regards,
0
Dobromir
Telerik team
answered on 27 Oct 2010, 07:33 AM
Hi Francisco,

I am not quite sure I understand the exact scenario. Could you please open a support ticket and provide a sample project demonstrating the problem? How do you apply the modifications from within the usercontrols?

In addition, you can find examples of the server-side API and client-side API of RadControls in the live demos.

Looking forward to hearing from you,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Francisco
Top achievements
Rank 1
answered on 27 Oct 2010, 08:25 AM

I succeeded updating the tree by removing it and creating it again, because depending on which level is the node I am expanding, it has to be rendered from a different SQL table, so I think the best will be to review my database model and simplify the update process.

 Thanks for your response anyway

0
Dustin Dodson
Top achievements
Rank 1
answered on 15 Nov 2010, 05:04 PM
I think I'm having a similar issue... however mine is paging. I have a custom user control that contains a asp form view. I have this in a sliding pane and I am using ajax on the page with the splitter so that the paging does not cause the sliding pane to collapse every time I try to page. The paging works, but it's basically a step behind where it should be. For instance if I click the next page button the first time nothing happens, but if I click the last page button, it goes to the first page. Then if I click the previous page button it will go to the last page, etc.... I know it's not an issue with the ajax I have set up, because I just put that in there and it was doing this before I added that, so that isn't it.... considering I have no idea how many records it may be that could be loaded, I don't want to have to destroy it every time then tell it the page to start on just to get it to refresh. So if anyone has any ideas or insight into this problem it would be very appreciated.

Here some code to look at...

<tlk:RadSplitter ID="rspSponsorInfo" runat="server" Width="100%" Orientation="Horizontal" Skin="Vista" Height="800">
  <tlk:RadPane ID="topPane" runat="server" Scrolling="None" Height="22px">
  <tlk:RadSlidingZone ID="pnlHistoryZone" runat="server" ClickToOpen="true"
      SlideDirection="Bottom" Height="22px" Width="100%">
  <tlk:RadSlidingPane ID="pnlHistory" runat="server" Title="Sponsor History"
      ToolTip="Click to view sponsor history" Height="380" Scrolling="None">
      <dna:SponsorHistory ID="uctSponsorHistory" runat="server" />
  </tlk:RadSlidingPane>
  </tlk:RadSlidingZone>
  </tlk:RadPane>                                   
  <tlk:RadPane ID="pnlCurrentInfo" runat="server" Width="100%">
       <asp:Label ID="lblMessage" Visible="false" runat="server" Text="" ForeColor="Red" />
      <br />
      <dna:SponsorDetailInfo ID="uctSponsorDetails" runat="server"
          ShowParticipationHistory="true" ShowWithdraw="true" />
   </tlk:RadPane>
 </tlk:RadSplitter>

wow.... that was a pain... lol.. ok anyone have any shortcuts on how to post code up here without having to reformat it by hand so it makes the code half way readable as well??

Thanks,

Dustin
0
Dobromir
Telerik team
answered on 16 Nov 2010, 04:50 PM
Hi Dustin,

The provided splitter declaration looks OK. Could you try removing the splitter control from the page and see if the problem still occurs? If not, could you please provide simple running project reproducing the problem so we can investigate it further?

Best wishes,
Dobromir
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.
Tags
Splitter
Asked by
Francisco
Top achievements
Rank 1
Answers by
Francisco
Top achievements
Rank 1
Dobromir
Telerik team
Dustin Dodson
Top achievements
Rank 1
Share this question
or