Hello :)
I have a Rad grid view, which contain a button in each row
I want to do something with the data key (the primary key ) of the grid when I press a button in some row
can I retrieve the data key for used row to use it in my C# code ?
thank you all :)
I have an application that was given to my by someone else and it's using telerik controls.
the application is originally written in VS2010 framework 4.
when i try to open it on my end, i keep getting errors saying "failed to create designed "Error Creating Control - RadScriptManager1Failed to create designer 'Telerik.Web.UI.RadScriptManager, Telerik.Web.UI, Version=2011.1.519.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4'"
the telerik.web.ui.dll file is in my "bin" folder.
am i missing something? is there a way to get the site to work without having to buy these controls? what do i do?
<
telerik:RadGrid
ID
=
"approval"
runat
=
"server"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
GridLines
=
"None"
AllowFilteringByColumn
=
"true"
onneeddatasource
=
"approval_NeedDataSource"
OnItemCommand
=
"approval_ItemCommand"
OnInit
=
"approval_Init"
>
<
MasterTableView
allowpaging
=
"True"
datakeynames
=
"Id"
AllowSorting
=
"true"
name
=
"claims"
commanditemdisplay
=
"Bottom"
AllowFilteringByColumn
=
"true"
>
protected void approval_Init(object sender, EventArgs e)
{
GridFilterMenu menu = approval.FilterMenu;
int i = 0;
while (i < menu.Items.Count)
{
if (menu.Items[i].Text == "NoFilter" || menu.Items[i].Text == "Contains" || menu.Items[i].Text == "DoesNotContain" || menu.Items[i].Text == "EqualTo" || menu.Items[i].Text == "GreaterThan" || menu.Items[i].Text == "LessThan")
{
i++;
}
else
{
menu.Items.RemoveAt(i);
}
}
}