Hi,
I have been using ultraformmanager for all the forms in my application to theme the non client area for a form. In a specific form we are using a rowedittemplate with a display style modal. Since it looks like a form I would like to theme the non client area of the edit template as well. Following is the code while setting up the template.
this.grdRowEditTemplate.DialogSettings.Caption = "Security Information"; this.grdRowEditTemplate.DisplayMode = RowEditTemplateDisplayMode.Modal; this.grdRowEditTemplate.Visible = false; this.grdData.DisplayLayout.Bands[0].RowEditTemplate = null; this.grdData.DisplayLayout.Bands[0].RowEditTemplate = this.grdRowEditTemplate;
//Instantiate an UltraGridBagLayout component. UltraGridBagLayoutManager gridBag = new UltraGridBagLayoutManager(); gridBag.ContainerControl = grdRowEditTemplate;
//These two properties will space the controls out //evenly in the available space. gridBag.ExpandToFitHeight = true; gridBag.ExpandToFitWidth = true;
I am also attaching the theme file and the screenshot along. Please review and suggest if an alternative is possible
Regards
Ishan Gandhi
Hello ,
Currently adding form manager for RowEditTemplate is a new feature that you could suggest on the following link:
http://ideas.infragistics.com
however as a workaround I could suggest you to create your own dialog and showing the row edit template on that dialog.
Another workaround is to add FormManager to the RowEditTemplate in ultraGrid1_BeforeRowEditTemplateDisplayed, as it is shown in the attached sample. Using this approach you should keep in mind that the RowEditTemplate’s Size must be bigger, because of the form borders and other from element that are taken in count.
Please let me know if you have any further questions.
Hello,
I see you have mentioned something about an attached sample, but I could not find any such sample with the post. Could you please create a small application an attach it along with the post
For some reason sample was not attached (maybe I forgot it). So here it is.