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

Databinding with Remoting

3 Answers 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
macy
Top achievements
Rank 1
macy asked on 05 Aug 2010, 10:51 AM
Hi
I use the Grind on a list that cames over a Remoting Client. Only the Interfaces a knowed in my Webpage.

If i use 

DataKeyNames

 

 

="JobId"

 

then i get a Bug on Runtime like System.MarshalByRefObject has no Prolerty with the Name "JobId",

Also the GridboundColums dose not work. Ther i use Template Colums wit Labels dann Cast in the Code.

Did you have a Example how to use the RadGrind on Remoting Lists? or any other help?

Regards Markus

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 10 Aug 2010, 02:32 PM
Hello,

Could you please elaborate a bit more on your scenario and the functionality you need to achieve with RadGrid? How the RadGrid is bind? More information on the RadGrid settings could help us easily isolate the problem you are facing.


Kind regards,
Maria Ilieva
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items
0
macy
Top achievements
Rank 1
answered on 12 Aug 2010, 12:21 PM

Hi
I user the NeedDataSource Event for binding. I think that the Microsoft Grid has the same Problem with binding of Remoting data.

 

to build a excample is difficult, because, i have to bulid a Server and client etc.

On the BoundColums, i had the following Workaround

<telerik:GridTemplateColumn HeaderText="<%$ Resources:TextUI, ListTitle_IScheduleElement_Name %>"
    SortExpression="Name" UniqueName="Name">
    <ItemTemplate>
        <asp:Label ID="LabelDisplayInTrayName" runat="server" Text='<%# GetInTrayName(Container.DataItem) %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>
and CodeBehind;
protected static string GetInTrayName(object theElement)
{
    return ((IInTrayJob)theElement).Name;
}

But this works not on the DataKey Property.

How can i Bind a Property of a Remoting Object to the DataKey Property of the Grid?

Regards Markus
0
Maria Ilieva
Telerik team
answered on 18 Aug 2010, 08:58 AM
Hi Macy,

If I correctly understand form the provided code you are trying to achieve data wiak by setting the DataKeyNames. Note that this is not possible with both RadGrid and Microsoft Grid.


Kind regards,
Maria Ilieva
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
macy
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
macy
Top achievements
Rank 1
Share this question
or