| //Class to specify node template as per node |
| public class multipleColumnTreeViewNode : ITemplate |
| { |
| public void InstantiateIn(Control container) |
| { |
| Label space = new Label(); |
| space.Text = ((RadTreeNode)container).Text + " "; |
| space.ID = "lbSpace"; |
| space.Attributes.Add("runat", "server"); |
| container.Controls.Add(space); |
| CheckBox cbCanEdit = new CheckBox(); |
| cbCanEdit.ID = "cbCanEdit"; |
| cbCanEdit.Attributes.Add("runat", "server"); |
| cbCanEdit.AutoPostBack = true; |
| cbCanEdit.CheckedChanged += new EventHandler(cbCanEdit_CheckedChanged); |
| cbCanEdit.Text = "can edit"; |
| cbCanEdit.ForeColor = System.Drawing.Color.PaleGoldenrod; |
| cbCanEdit.TextAlign = TextAlign.Left; |
| container.Controls.Add(cbCanEdit); |
| } |
| private void cbCanEdit_CheckedChanged(object sender, EventArgs e) |
| { |
| //Code here |
| } |
| //Adding actionCategory and user actions nodes to sitemap treeview nodes |
| if (dtActionCategory.Rows.Count != 0 && datTable.Rows.Count != 0) |
| { |
| var actionCats = from actionCatsData in dbcontext.userActionCategories |
| where actionCatsData.actionCategoryID == int.Parse(datRow["actionCategoryID"].ToString()) |
| select new { actionCatsData.actionCategoryID, actionCatsData.name }; |
| if (actionCats.Count() != 0) |
| { |
| foreach (var tempData in actionCats) |
| { |
| RadTreeNode actionCatNode = new RadTreeNode(tempData.name); |
| actionCatNode.ToolTip = "ActionCategory - Tick to make all the actions under this category active for the role"; |
| actionCatNode.Value = "ActionCategory:" + tempData.actionCategoryID.ToString(); |
| actionCatNode.ForeColor = System.Drawing.Color.Yellow; |
| treeNode.Nodes.Add(actionCatNode); |
| var actions = from actionData in dbcontext.userActions |
| where actionData.actionCategoryID == int.Parse(datRow["actionCategoryID"].ToString()) |
| select new { actionData.actionID, actionData.description }; |
| if (actions.Count() != 0) |
| { |
| foreach (var data in actions) |
| { |
| RadTreeNode actionNode = new RadTreeNode(data.description); |
| actionNode.Text = data.description; |
| actionNode.NodeTemplate = new multipleColumnTreeViewNode(); |
| actionNode.ToolTip = "Action - Tick to make this sitemap action active for the role"; |
| actionNode.Value = "Action:" + data.actionID.ToString(); |
| actionNode.ForeColor = System.Drawing.Color.PaleGoldenrod; |
| actionCatNode.Nodes.Add(actionNode); |
| } |
| } |
| } |
| } |
| } |
| //Adding the node to the treeview with all the child nodes |
| nodes.Add(treeNode); |
| } |
| .RadGrid_Outlook_Compact .rgHeader, |
| .RadGrid_Outlook_Compact th.rgResizeCol |
| { |
| border:0; |
| border-left:1px solid #89aee5; |
| border-bottom:1px solid #5d8cc9; |
| padding-top:5px; |
| padding-bottom:4px; |
| background:0 -2300px repeat-x #7da5e0 url('Grid/sprite.gif'); |
| text-align:left; |
| font-weight:normal; |
| font-size:11px; |
| line-height:12px; |
| } |
Recentally I updated my Rad controls to this version: RadControls for ASP.NET AJAX Q3 2009 NET3.5
<telerik:RadAjaxManager ID="ramCreateMessage" runat="server">
<AjaxSettings>
<telerik.web.ui.ajaxsetting ajaxcontrolid="chkPriorityMessage"><updatedcontrols>
<telerik.web.ui.ajaxupdatedcontrol controlid="chkReadReceipt"></telerik.web.ui.ajaxupdatedcontrol>
</updatedcontrols>
</telerik.web.ui.ajaxsetting>
<telerik.web.ui.ajaxsetting ajaxcontrolid="btnSendMessage"><updatedcontrols>
<telerik.web.ui.ajaxupdatedcontrol controlid="lblRecipientError"></telerik.web.ui.ajaxupdatedcontrol>
</updatedcontrols>
</telerik.web.ui.ajaxsetting>
</AjaxSettings>
</telerik:RadAjaxManager>
The telerik.web.ui.ajaxsetting Tag is causing this error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Telerik.Web.UI.AjaxSettingsCollection must have items of type 'Telerik.Web.UI.AjaxSetting'. 'telerik.web.ui.ajaxsetting' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
Source Error:
Line 111:<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
Line 112: <AjaxSettings>
Line 113: <telerik.web.ui.ajaxsetting ajaxcontrolid="chkPriorityMessage"><updatedcontrols>
Line 114:<telerik.web.ui.ajaxupdatedcontrol controlid="chkReadReceipt"></telerik.web.ui.ajaxupdatedcontrol>
Line 115:</updatedcontrols>
I can edit the client side code and correct the issue by doing this
<telerik:RadAjaxManager ID="ramCreateMessage" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="chkPriorityMessage">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="chkReadReceipt" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="btnSendMessage">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="lblRecipientError" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
This is how the Configure Ajax manager API should be generating the code, I would like to use the Configure Ajax manager API And NOT have to always modify my code from the source. How do I fix this????? This Just happened after I updated my controls, PLEASE HELP.
Hello Folks!
I’m getting troubles creating my treeview skin for my web application.
At the end it should look like this (see image), I don’t have a clue how to work it out.
Exploding nodes should have an icon, those with no sons another icon.
And I should put a line separating a node from another
I tried deriving default skin with no good result.
Anyone can help?
Thanks