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

ItemTemplate resizes differently When Grid is in Edit -vs- Insert mode

3 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 08 Mar 2009, 11:36 PM
I have a question about the ItemTemplate.  When I place the grid in Edit mode the ItemTemplate below the FormTemplate displays differently than when the grid is placed in Insert Mode. The ItemTemplate looks fine when in edit mode but when placed in InsertMode the ItemTemplate shrinks to a third of it's size and the AutoGenerated Edit and Delete columns enlarge.

I am using a OnColumnCreated event to resize the AutoGenerated Edit and Delete columns for the grid but other than that I cannot figure out how to control this behavior.

Here are some screen shot links to help visualize it:
Grid in Browse mode
Grid in Edit mode
Grid in Insert mode

Thanks

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 11 Mar 2009, 12:55 PM
Hello Reid,

Can you please check whether setting TableLayout = Fixed for your grid and explicitly widths for your columns (through their HeaderStyle -> Width property) alleviates the unwanted effect on init insert? If the issue persists, I will appreciate if you can provide a live url where the discrepancy can be seen. Thus I will do my best to assist you in resolving it.

Kind regards,
Sebastian
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 11 Mar 2009, 03:02 PM
Sebastian,

I have tried altering what you mention below and it does not change anything.  I can report that is it happening on any RadGrid in the project that uses an <ItemTemplate>.  I have a feeling it has to do with the AutoGenerated  Edit/Delete columns.  I say this because no matter what I do to the styles of the table that surrounds the data in the ItemTemplate it does not affect anything.

I will leave this thread open until I can get the build on the server.  This is for a client so I try to refrain from deployed templates that have flaws like this.
0
Accepted
Sebastian
Telerik team
answered on 16 Mar 2009, 02:04 PM
Hello Reid,

If the issue persists with the suggested changes, the best means to progress in our investigation is either to provide a live url or prepare a stripped working version of your project and send it enclosed to a formal support ticket. Thus we will research the matter further and get back to you with our findings.

You may also use IE developer toolbar or FireBug to see the style settings applied for the column and designate the cause of the unexpected width resize on init insert operation.
 
Best regards,
Sebastian
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
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Reid
Top achievements
Rank 2
Share this question
or