Hi!
I'm having trouble on keeping a radgrid pager updated after rebinding the table with new contents (without reloading the page). The assembly version of the control i'm using is 3.1.1.0.
On the top of the page, I have a radgrid filled with several rows using NeedDataSource.
Then, below this grid, I have another radgrid which is filtered according to the row selected on the first grid (multiple row selection is not allowed). However, the pager of the second grid is not being updated accordingly. The "total number of items" shown in the pager is never updated when I bind new contents to the second grid. For instance, the grid is showing 2 items and the pager says there are a total of 5 items.
The binding of the second grid is being done using grid2.bind() each time a new row is selected on the first grid.
Do I have to update the pager info manually? How can I solve this?
Thanks!
<telerik:RadAjaxManagerProxy ID="ajxManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="left"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="left" LoadingPanelID="alpT" /> <telerik:AjaxUpdatedControl ControlID="right" LoadingPanelID="alpT" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="right"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="right" LoadingPanelID="alpT" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy>...<telerik:RadTreeView ID="right" BorderColor="Black" BorderWidth="1px" OnClientContextMenuItemClicked="ContextMenuClick" runat="server" OnNodeDrop="HandleDrop" OnNodeEdit="HandleNodeEdit" OnNodeExpand="right_NodeExpand" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True" Height="475px" Width="350px" meta:resourcekey="trvResource1">...</telerik:RadTreeView>Protected Sub HandleDrop(ByVal sender As Object, ByVal e As RadTreeNodeDragDropEventArgs)... If ShouldNotDrop Then Dim strScript As String = "Sys.Application.add_load(function(sender, args) {if (!args.get_isPartialLoad()){radalert(""You cannot drop this here"");}});" Telerik.Web.UI.RadAjaxManager.GetCurrent(Me).ResponseScripts.Add(strScript) End If...End SubI have created a Asp.Net 4.0 page with a RadGrid. One of the columns (ConsignorId) indicates that this record belongs to a specific Consignor. A consignor can have multiple records. I would like to have a input(textbox) where I could enter a ConsignorId and then render the page with the RadGrid with only the records selected based on the consigorid entered.
Could you refer me to an example for this? I am new to telerek.
Thank You
function selectAllClick(sender) { var listBox = $find(sender); var items = listBox.get_items(); items.forEach(function(itm) { itm.set_checked(true); }); } function unSelectAllClick(sender) { var listBox = $find(sender); var items = listBox.get_items(); items.forEach(function(itm) { itm.set_checked(false); }); }<
telerik:RadTreeView ID="RadTreeView1" Runat="server" DataTextField="Text" DataValueField="Value" Skin="Outlook" Width="477px">
<Nodes>
<telerik:RadTreeNode runat="server" AllowDrag="False" AllowDrop="False" AllowEdit="False" Checkable="False" Text="Laws">
</telerik:RadTreeNode>
</Nodes>
<WebServiceSettings Path="http://localhost:22222/TMLawsDataService.svc" Method="LoadTreeNodes" UseHttpGet="false" />
<DataBindings>
<telerik:RadTreeNodeBinding Depth="1" ExpandMode="WebService" />
</DataBindings>
</telerik:RadTreeView>
If I have my WCF service in the same project as the default.aspx, then I don't need to specify a port number in the "Path" attribute of the WebServiceSettings node, and the RADTreeControl does a POST back to my WCF service onClientSideClick to get the next level of tree children, and everything works great. BUT if I want to be a good little coder and separate my projects out into a WCF project and a Web Client project under the same solution, then in order to debug my solution in Visual Studio, I need to set 2 startup projects, and run them on different assigned ports. When I do that, I need to specify the port number in the "Path" attribute of the WebServiceSettings node, and when I do that, the RADTreeView control suddenly decides to send GET requests to my service, which my WCF service does not handle, it only takes POSTs.