This is a migrated thread and some comments may be shown as answers.

Filters in RadGrid

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sreenivas
Top achievements
Rank 1
Sreenivas asked on 29 Jul 2008, 06:34 PM

Trying 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";

}

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jul 2008, 10:38 AM
Hi Sreenivas,

I found a CodeLibrary submission which discuss about Filtering with GridButtonColumn. Go through it and see whether helps.
Filtering and sorting for GridButtonColumn

Shinu.
Tags
Grid
Asked by
Sreenivas
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or