| RadTreeView treeview = ((RadTreeView)Combobox2.FindControl("RadTreeView")); |
| foreach (DataRow dr in dtData.Rows) |
| { |
| RadTreeNode ParentLocationNode = new RadTreeNode(); |
| ParentLocationNode.Text = (string)dr["Column"]; |
| ParentLocationNode.Value = Convert.ToString(dr["Column"]); |
| treeview.Nodes.Add(ParentLocationNode); |
| } |
var
mytitle = document.getElementById("ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl00_Title").value;
var myauthor = document.getElementsByName("ctl00$ContentPlaceHolder1$contolPanel$ctl00$ctl00$editMetaFields$ctl00$Author")[0].value;
Passing to my input hidden<
input id="myval1" type="hidden" runat="server" enableviewstate="true" />
document.getElementById("ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl00_editMetaFields_ctl00_Image2_myval1").value=mytitle;
document.getElementById(
"ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl00_editMetaFields_ctl00_Image2_myval2").value=myauthor;
Retrievin as Codebehind : NO WORKINGTrying to apply filters in RadGrid for a column which has LinkButton. Filters are not showing on the Grid. Can you please let us know where I am making mistake. Below is the code to build columns. Please let me know if you have any other questions.
Thanks.
private
void BuildColumns()
{
GridBoundColumn clientNameBoundColumn1 = new GridBoundColumn();
RadTodoGrid.MasterTableView.Columns.Add(clientNameBoundColumn1);
clientNameBoundColumn1.DataField =
"ClientName";
clientNameBoundColumn1.HeaderText =
"Client Name";
clientNameBoundColumn1.UniqueName =
"Client Name";
// requestId.CommandName = "select";
GridBoundColumn folderIdColumn = new GridBoundColumn();
RadTodoGrid.MasterTableView.Columns.Add(folderIdColumn);
folderIdColumn.DataField =
"FolderId";
folderIdColumn.HeaderText =
"Folder Id";
folderIdColumn.UniqueName =
"FolderId";
folderIdColumn.Visible =
false;
GridBoundColumn procColumn = new GridBoundColumn();
RadTodoGrid.MasterTableView.Columns.Add(procColumn);
procColumn.DataField =
"ProcessName";
procColumn.HeaderText =
"Process Name";
procColumn.UniqueName =
"ProcessName";
procColumn.Visible =
false;
GridBoundColumn engName = new GridBoundColumn();
RadTodoGrid.MasterTableView.Columns.Add(engName);
engName.DataField =
"Engagement";
engName.HeaderText =
"Engagement";
engName.UniqueName =
"Engagement";
GridButtonColumn actionMessage = new GridButtonColumn();
RadTodoGrid.MasterTableView.Columns.Add(actionMessage);
actionMessage.ButtonType =
GridButtonColumnType.LinkButton;
actionMessage.AutoPostBackOnFilter =
false;
actionMessage.CommandName =
"Select";
actionMessage.DataTextField =
"ActionMessage";
actionMessage.HeaderText =
"Message";
actionMessage.UniqueName =
"ActionMessage";
}