Hi,
I would like to do have the almost the same functionality as This.
But both of my Dialog.aspx and Calling Page (i.e. Default.aspx) uses Radgrid Edit Templates (i.e. MasterTableView EditMode="EditForms"). The data source from both pages are not the same. The value’s I would like to pass from Dialog.aspx are: 1) An Edit Template Text value and 2) A RadGrid Dataitem calculated sum column (from footer).
Is it possible to pass these from Dialog.apsx into Default.aspx form’s regular asp TextBox or RadText Box (for #1) or Rad Numeric Text Box (for #2) ? I am using RadControls for ASP.NET AJAX Q2 2010, Vstudio 2008 SP1.
Thanks
GC_0620
function ShowSearchCustomerDialog() {
var wnd = radopen('/_layouts/G.Ga.SharePoint/SC.aspx');
var width = 800;
var height = 600;
var left = parseInt((screen.availWidth / 2) - (width / 2));
var top = parseInt((screen.availHeight / 2) - (height / 2));
wnd.setSize(width,height);
wnd.MoveTo(left,top);
}
Calling at :
<
div class="blok-head">
<h3 style="float:left;">
<asp:Label ID="businesspartnerLabel" runat="server" />
</h3>
<asp:PlaceHolder ID="selectCustomerPanel" runat="server">
<a class="select-customer" href="javascript:ShowSearchCustomerDialog();" title="Select customer">Select customer</a>
</asp:PlaceHolder>
</div>
<
telerik:RadDatePicker ID="txtEffectiveDate" runat="server" Width="150px" SelectedDate='<%# Bind("EffectiveDate") %>'></telerik:RadDatePicker>

function keywordTreeviewMenuClicking(sender, eventArgs) { var menuItem = eventArgs.get_menuItem(); action = menuItem.get_value(); node = eventArgs.get_node(); switch (action) { case "Add": KeywordManager.AddKeyword(node); break; case "Delete": KeywordManager.DeleteNode(node); break; case "Edit": KeywordManager.EditNode(node); break; case "ChangeCategory": KeywordManager.ChangeCategory(node); break; } return true; }
Here some piece of code... Where I load through javascript and my own webservice call a treeview. In my collection of objects, I know
how many children I have for each item. If obj.Children > 0 I would like to show the Expand Icon. I don't see in the documentation how I can do that, the expand thing is only shown if I seed the expand mode WebService, but in this case it complains no WebService is configured... So it would be cool if I could find a solution.
if (obj.Children > 0) {
node.set_expandToSOMETHING
}
var tree = $find(this.treeviewId); var parentNode = null; if (parentId != 0) { parentNode = tree.findNodeByValue(parentId); } for (var x = 0; x < result.Result.length; x++) { var obj = result.Result[x]; var node = new Telerik.Web.UI.RadTreeNode(); node.set_text(obj.Display); node.set_value(obj.KeywordId); node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide); if (obj.Children > 0) { node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide); } if (parentId != 0) { parentNode.get_nodes().add(node); } else { if (obj.ParentKeywordId == 0) { tree.get_nodes().add(node); } else { var parentNode = tree.findNodeByValue(obj.ParentKeywordId); parentNode.get_nodes().add(node); } } } tree.commitChanges(); if (parentId != 0) { parentNode.set_expanded(); }