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

String search in hierarchy in radgrid

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
yasir
Top achievements
Rank 1
yasir asked on 06 Oct 2015, 05:59 AM
i want to string search in rad grid .the data is in hierarchy.i want to search the data till last node.please help me its urgent.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Oct 2015, 10:33 AM
Hello,

You can try using GetDataKeyValue, as follows:

{
    RadGrid1.AllowPaging = false;
    RadGrid1.Rebind();
    foreach (GridDataItem data in RadGrid1.MasterTableView.Items) {
        String value = data.GetDataKeyValue("DataFieldName").ToString();
        if (value == "Y") {
            //Your Code
        }
    }
    RadGrid1.AllowPaging = true;
    RadGrid1.Rebind();
}


Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
yasir
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or