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

Codes not supported anymore?

3 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 30 May 2010, 05:11 PM
Hi,

          I have codes runnng good using Silverlight 2.0 with Telerik controls. When I used it for Silverlight 4.0 with Telerik Q1 2010 dll's, It doesn't work or the code doesn't exist anymore.


          These are my references in Telerik dlls:
                Telerik.Windows.Controls                           version: 2010.1.422.1030
                Telerik.Windows.Controls.Docking
                Telerik.Windows.Controls.GridView
                Telerik.Windows.Controls.Input
                Telerik.Windows.Controls.Navigation
                Telerik.Windows.Data
                Telerik.Windows.Themes.Vista 




   Note: appGrid is  the name of the grid.


 Problems:
     
    1.)  Code:
     

appGrid.TableDefinition.PreviewDataRecordCreate +=

 

new EventHandler<Telerik.Windows.Data.DataRecordCreateEventArgs>(TableDefinition_PreviewDataRecordCreate);

 


       Error :
                        PreviewDataRecordCreate  
       Error Message:
                      Telerik.Windows.Data.TableDefinition does not contain a definition for 'PreviewDataRecordCreate'  and no extension method PreviewDataRecordCreate  accepting a first argument of type 'Telerik.Windows.Data.TableDefinition ' could be found (are you missing a using directive or an assembly reference?)


     2.) Code:
                
                

 

 

void appGrid_DataLoaded(object sender, EventArgs e)

 

{

 

 

if (appGrid.Records != null)

 

{

 

 

int count = appGrid.Records.Count;

 

 

 

if (count > 0)

 

{

 

 

for (int i = 0; i < count; i++)

 

{

 

 

if (appGrid.Records[i] is Telerik.Windows.Data.ExpandableDataRecord)

 

{

((Telerik.Windows.Data.ExpandableDataRecord)appGrid.Records[i]).IsExpanded =

 

true;

 

}

}

}

}

}

                 
                Error:
                        Records   

                Error Message:
                           Telerik.Windows.Controls.RadGridView does not contain a definition for 'Records' no extenion methods 'Records' accepting a first argument of type 'Telerik.Windows.Controls.RadGridView' could be found (are you missing a using directive or an assembly reference?)


                Error:                        

              Telerik.Windows.Data.ExpandableDataRecord
        Error Message:
               The type or namespace name 'ExpandableDataRecord' does not exist in the namespace 'Telerik.Windows.Data' (are you missing an assembly reference?)



       3). Code:           

 

              appGrid.ItemsControl.BringDataItemIntoView(_serviceRequests[0]);

            Error:
                ItemsControl
             Error Message:
                  Telerik.Windows.Controls.RadGridView does not contain a definition for 'ItemsControl' and no extension method 'ItemsControl' accepting a first argument of type 'Telerik.Windows.Controls.RadGridView' could be found (are you missing a using directive or an assembly reference?).


    Note:
          Let me know what updates that you made for these codes that are not working anymore from Silverlght 2.0 to Silverlight 4.0.


Thanks,
Chris


                            
                 



   

3 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 02 Jun 2010, 08:09 AM
Hello Chris,

To address the first issue I would kindly ask you to check out our Custom Hierarchy example which demonstrates the current way of defining hierarchy.

All Record related properties are no longer available but we have created new ones which are very similar and is most cases more intuitive to use. The data items are no longer wrapped in Records - we are now working directly with data item instances. For example, the Records property was substituted for Items, SelectedRecords for SelectedItems, etc.

To get the count of all items you can check this.gridView.Items.Count. To expand all hierarchy items you can now just call this.gridView.ExpandAllHierarchyItems().

To bring a specified item into view you can now use the ScrolIntoView method of RadGridView - just pass a data item and it will be scrolled into view.

Do not hesitate to write if you need more information or guidance. 


Best wishes,
Milan
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
Ramesh
Top achievements
Rank 1
answered on 13 Dec 2013, 12:59 PM
 I am using Telerik RadGridView in my application. Recently i updated Telerik.Pivot.Core, Telerik.Windows.Controls, Telerik.Windows.Controls.GridView, Telerik.Windows.Input,
Telerik.Windows.Controls.Navigation, Telerik.Windows.Data, telerik.Windows.documents into Version 2012.3.1129.45
and replaced the old assemblies with new one. But after building my project i got  the following errors;

'Telerik.Windows.Controls.RadGridView' does not contain a definition for 'IsExpanded' accepting a first
 argument of type 'Telerik.Windows.Controls.RadGridView' could be found(are you missing a using directive or an assembly reference?)

Please let me know how to fix this issue. (issue details attached)
0
Nick
Telerik team
answered on 18 Dec 2013, 09:19 AM
Hello Ramesh,

The IsExpanded method was introduced in Q1 2013. You have to have at least this version to use it.

Regards,
Nik
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Milan
Telerik team
Ramesh
Top achievements
Rank 1
Nick
Telerik team
Share this question
or