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

CommandItemTemplate & ObjectDataSource

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rory
Top achievements
Rank 1
Rory asked on 07 Oct 2014, 01:53 PM
This isn't so much a question as feedback since I'm not able to post code due to the nature of my job, but I have a page where I'm using a RadTabStrip and RadMultiPage and on one of those pages I have a RadGrid being filled with data from an ObjectDataSource in an n-Tier application.  The RadGrid works great, it fills with all my GridBound columns, I've set OverrideDataSourceControlSorting to allow it to sort my custom object with no problems.

However, when I attempted to use CommandItemTemplate I ran into a pretty significant formatting issue.  The default CommandItemDisplay (add and refresh) appear fine, but as soon as I add the CommandItemTemplate all my columns and data formatting disappear.  The columns don't show up at all and everything is on a single line without formatting, including the CommandItemDisplay area.  I was using the skin "WebBlue" and even that wasn't showing, it was a big white box with everything crammed together.

I spent quite a bit of time attempting to find a solution including copying your CommandItemTemplate demo code into a new page and what I found is that the ObjectDataSource seems to be causing an issue.  I don't know what it is (custom object maybe?) but it was frustrating to not be able to find any solution or anyone using the same structure as I am. 

Is there something I'm missing about using an ObjectDataSource that the RadGrid would be handling differently than an SQLDataSource?  It seems to me that it should just be looking for the column information and not care where it's coming from...

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 10 Oct 2014, 11:09 AM
Hello Rory,

Since the behavior that you are describing is not expected, can you please provide the content of your CommandItemTemplate, so we can test your exact settings locally.

Additionally, could you please elaborate which version of our controls you are using, the version of your Visual Studio and if the issue is observed in all browsers.

I am looking forward to your reply with the additional information.



Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Rory
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or