Hello guys.
I'm having a problem when using self hierarchy. I'm using this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx
I'm doing exactly the same way as it is in this example, but when I do a rebind on the grid, I get the following error:
"No applicable indexer exists in type 'FilesResult'
FilesResult is my datatype of entity framework that is retrieved from the db.
I tryed to use some like this:
if (Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("3.5") != -1 || Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("4.0") != -1)
{
RadGrid1.MasterTableView.FilterExpression = "it.arq_int_codigo_pai = Convert.DBNull";
}
else
{
RadGrid1.MasterTableView.FilterExpression = "arq_int_codigo_pai IS NULL";
}
but I received the error:
What can I use when using entity framework?
What's wrong?
Regards.
I'm having a problem when using self hierarchy. I'm using this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx
I'm doing exactly the same way as it is in this example, but when I do a rebind on the grid, I get the following error:
"No applicable indexer exists in type 'FilesResult'
FilesResult is my datatype of entity framework that is retrieved from the db.
I tryed to use some like this:
if (Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("3.5") != -1 || Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("4.0") != -1)
{
RadGrid1.MasterTableView.FilterExpression = "it.arq_int_codigo_pai = Convert.DBNull";
}
else
{
RadGrid1.MasterTableView.FilterExpression = "arq_int_codigo_pai IS NULL";
}
but I received the error:
Operator '=' incompatible with operand types 'Int32?' and 'Object'
What can I use when using entity framework?
What's wrong?
Regards.