I load the root nodes from server side, however I add nodes clientside and change the node text client side:
string connectstr = SqlConnect;
SqlConnection Sqlconnect = new SqlConnection(connectstr);
string sql = "Select TemplateID, TemplateLineID, TemplateNodeOrder, SectionID, ParentTemplateLineID, NodeLevel, NodeText "+
"From TemplateNode " +
"Where ParentTemplateLineID is null "+
"Order By SectionID ";
SqlDataAdapter adapter = new SqlDataAdapter(sql, connectstr);
DataTable dataTable = new DataTable();
adapter.Fill(dataTable);
RadTreeView1.WebServiceSettings.Method =
"LoadNodes";
RadTreeView1.WebServiceSettings.Path =
"TemplateLoadOnDemand.asmx";
foreach (DataRow row in dataTable.Rows)
{
RadTreeNode node = new RadTreeNode();
node.Text = row[
"NodeText"].ToString();
node.Value = row[
"TemplateLineID"].ToString();
node.ExpandMode =
TreeNodeExpandMode.WebService;
RadTreeView1.Nodes.Add(node);
}
My settings for the treeview are :
<
telerik:RadTreeView ID="RadTreeView1" Runat="server" EnableDragAndDrop="true"
onnodedrop="RadTreeView1_NodeDrop" EnableDragAndDropBetweenNodes="True"
onclientnodedropping="nodeDropping" OnClientContextMenuItemClicking="OnClientContextMenuItemClicking"
MultipleSelect="True" OnClientNodeEdited="OnClientNodeEditedHandler"
Skin="Outlook" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick"
CheckChildNodes="True" onnodeedit="RadTreeView1_NodeEdit"
style="white-space: normal;" PersistLoadOnDemandNodes="true" OnNodeDataBound="RadTreeView1_NodeDataBound"
OnClientNodeClicked="OnClientNodeClicked" >
I did the following to resolve the error but continue to get it....
In Script Manager I set
EnablePartialRendering="False"
Everything works when I don't use the webservice, client side calls and server side calls are perfect.... Its when I load the webservice that I start throwing errors. The web service loads the child nodes fine... Editing or adding is a big issue when using the web service.
Thank you in advance for your help.
~Julie
| <telerik:RadComboBox ID="ddlTextSearch" runat="server" Width="200px" CssClass="SearchControl" |
| AllowCustomText="True" EnableLoadOnDemand="True" |
| ShowDropDownOnTextboxClick="False" ShowToggleImage="False" |
| onclientitemsrequesting="ddlTextSearch_ItemRequesting" |
| OnClientKeyPressing="ddlTextSearch_HandleKeyPress" |
| OnClientSelectedIndexChanged="ddlTextSearch_SelectionChanged" ZIndex="9900"> |
| <WebServiceSettings Method="GetCompletionList" Path="~/TextSearchAutoComplete.aspx" /> |
| </telerik:RadComboBox> |
| <script type="text/javascript"> |
| Telerik.Web.UI.RadComboBox.prototype._onInputCellClick = function(e) { |
| if (this._enabled) { |
| // if (this.get_text() !== this.get_emptyMessage()) |
| // this.selectText(0, this.get_text().length); |
| if (!this.get_dropDownVisible() && this._showDropDownOnTextboxClick) |
| this._showDropDown(e); |
| return true; |
| } |
| } |
| </script> |
| function ddlTextSearch_HandleKeyPress(sender, eventArgs) |
| { |
| if(eventArgs.get_domEvent().keyCode == 13) |
| { |
| var combo = $find("<%= ddlTextSearch.ClientID %>"); |
| var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>"); |
| if (combo && combo.get_highlightedItem() != null) |
| { |
| ajaxManager.ajaxRequestWithTarget("<%= ddlTextSearch.UniqueID %>","<%= WebUtils.HttpRequestEventArguments.SearchAssist %>"); |
| } |
| else |
| { |
| ajaxManager.ajaxRequestWithTarget("<%= ddlTextSearch.UniqueID %>","<%= WebUtils.HttpRequestEventArguments.Search %>"); |
| } |
| } |
| } |
We encountered some problems in telerik controls when using it for Hebrew view (right to left.(
1. When adding scroll option to RadGrid, the header row is not shown well, as can be seen in image 'radgrid scroll' attached.
The code in aspx specifying the scroll is:
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
2. In Scheduler control, the scroll appears as default, and again the header row is not shown well, as can be seen in image 'rad Scheduler' attached.

| <appSettings> |
| <add key="Telerik.AjaxLoadingPanel.Skin" value="Simple"/> |
| </appSettings> |
