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

[Solved] CommandItemTemplate Question - Maintaining State from Markup View to Design Time View

8 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 15 Mar 2009, 11:21 PM
I have a custom <CommandItemTemplate> on this RadGrid that at runtime looks fine in terms of width but when I view it at design time every time I switch back to alter the contents, it's width is "crunched" up or shrunk.  The table that wraps all the items in the <CommandItemTemplate> is using a stylesheet class that is sized to 100% width.  But the template area itself seems to have no way to set the size. 

This is not a show stopper, again at runtime is fine but it is annoying.  Every time I switch to design view from markup view I need to :

  1. Re-Select the grid (after scrolling down to select the grid when many exist on the page)
  2. Click the Smart Tag
  3. Choose "Edit Templates" (and why does the popup not stick to the grid but rather goes to the top of the template until you choose a template type, requiring you to scroll up and down again?)
  4. Select the desired CommandItemTemplate in the popup smart tag window
  5. Resize the template with the mouse to regain perspective

 

Now maybe I am doing something wrong but the above steps are very redundant and slow us down.

Thank you

8 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 19 Mar 2009, 07:41 AM
Hi Reid,

Have you tried using:
<CommandItemStyle Width="100%" /> 
If that does not help, it might be a good idea to paste some of your markup here, so I can get a better idea of your scenario.

Greetings,
Pavel
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
Reid
Top achievements
Rank 2
answered on 19 Mar 2009, 02:27 PM
Hello Pavel,

I deployed this code and it had no effect.

Thanks
0
Pavel
Telerik team
answered on 20 Mar 2009, 11:22 AM
Hi Reid,

Could you paste some of your markup? I am not able to reproduce the problem having only the provided information.

Regards,
Pavel
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
Reid
Top achievements
Rank 2
answered on 20 Mar 2009, 02:16 PM
Pavel,

Here is a link to the template in a public folder:
http://www.agoware.com/publicdownloads/ItemTemplateIssue.zip

Thank you for youor attention to this issue.

Reid
0
Pavel
Telerik team
answered on 23 Mar 2009, 03:32 PM
Hi Reid,

I am afraid I cannot reproduce the problem. You may consider opening a support ticket and attaching to it a sample application which illustrates it. Thus we will get back to you right after we examine it.

Kind regards,
Pavel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Reid
Top achievements
Rank 2
answered on 23 Mar 2009, 03:42 PM
Pavel,

If you have reviewed this template you can see the complexity of it.  Many pageviews, many grids, many detail tables in each.  So trying to recreate a demo that feeds data into the grids outside the scope of the SQL database that supports it would take a considerable amount of time.

Thank you
0
Accepted
Pavel
Telerik team
answered on 27 Mar 2009, 07:22 AM
Hi Reid,

In this case we will need more time to investigate this issue further. Please excuse us for the temporary inconvenience.

Regards,
Pavel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Reid
Top achievements
Rank 2
answered on 28 Mar 2009, 08:59 AM
Pavel,

Please exuse my mistake in this thread.  My last post was meant for the following thread:

Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Pavel
Telerik team
Reid
Top achievements
Rank 2
Share this question
or