Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1170
Non client area theme for ultragrid rowedittemplate
posted

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

Desktop.rar
Parents
  • 48586
    posted

    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.

Reply Children