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

[Solved] Binding RadGridView to Indexed Properties

3 Answers 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ven
Top achievements
Rank 1
Ven asked on 11 Mar 2009, 01:38 AM
Can anyone let me know how to bind Indexed Properties to RadGridView? Please let me know at the earliest.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Mar 2009, 04:43 PM
Hello Ven,

Can you post an example of your business objects collection?

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
veena
Top achievements
Rank 1
answered on 17 Mar 2009, 10:45 AM

Vlad,

Following is a sample property :

Public Class MyClass
.---

Public Default Property MyPropertyContainer(PropertyName as string) as object
    Get
        Return GetPropertyValue(PropertyName)                 ' Returns the value of the property from some internal structure(Dictionary), 
    End Get
    Set (byval  value As Object)

 

 

 

        SetPropertyValue(Propertyname.value)                    ' Sets the value of the property to the internal structure
    EndSet
End Property
---
End class


I have a List(Of MyClass)  and want to bind the properties using MyProperty and pass the propertyname.
WPF supports it by using PropertyPath. We can give the Binding Path as follows

MyBinding.Path=new PropertyPath("[MyPropertyname]")

This will get the data from inside the internal container and display it.
It seems that SilverLight is not supporting this syntax.

Do we have any solution for this in RadGridView.

Thanks

0
Nedyalko Nikolov
Telerik team
answered on 19 Mar 2009, 06:22 PM
Hi veena,

This is a bug in GridView control, so I'll update your Telerik points.
The bug will be fixed for the next release or SP.

All the best,
Nedyalko Nikolov
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Ven
Top achievements
Rank 1
Answers by
Vlad
Telerik team
veena
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or