Hi
we are struggling with setting igGrid as Content of igDialog. can we have some help on this from you.
we want to display some data to user as a grid in the dialog.
Thanks!
Hello pardeepkgupta,
Thank you for contacting Infragistics!
We received your support request concerning getting the igGrid as the contents of an igDialog, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and I am looking into this matter and will get back to you by the end of the day Friday with more information or questions for you.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Thank you for your patience. I have created a sample to demonstrate how you can achieve this behavior.
Please let me know if you have any questions concerning this matter.
Mike,
I'm trying to do the same using MVC, but having no luck. Would you have few seconds to suggest a solution here please.
I'm trying to display a partial view containing a igGrid within the igDialog.
@model MyNameSpace.MyModel
@(Html
.Infragistics().Dialog().ID("dialog1").PinOnMinimized(false).Container("#body-content").Pinned(false).Modal(false).Draggable(true).Resizable(true).TrackFocus(false).ShowMinimizeButton(true).ShowMaximizeButton(true).ShowPinButton(true).Width("750px").Height("550px").MinWidth(450).MinHeight(250).EnableDblclick(false).ShowFooter(true).ShowHeader(true).CloseOnEscape(false).HeaderText(MyModel.WindowName).ContentHTML(
"<table id=hierarchicalGrid1"></table>
}
.Render())
@(Html.Infragistics().Grid().ID("hierarchicalGrid1").DataSource(MyModel.DataTable).DataBind().Render())
Is this the correct way to do this ?
How would I embed and igGrid or igHierarchicalGrid inside a igDialog using a MVC helper ?
This is not correct. I cannot put a table element in contentHTML and reference this as a selector in igGrid.
Just tried this and got an exception about using single characters in contenthtml, and suggested to use double character.
@{var grid = (Html.Infragistics().Grid<System.Data.DataTable>() .DataSource(Model.DataTable) .DataBind() .Render().ToHtmlString());}
@(Html .Infragistics() .Dialog() .ID("dialog1") .PinOnMinimized(false) .Container("#body-content") .Pinned(false) .Modal(false) .Draggable(true) .Resizable(true) .TrackFocus(false) .ShowMinimizeButton(true) .ShowMaximizeButton(true) .ShowPinButton(true) .Width("750px") .Height("550px") .MinWidth(450) .MinHeight(250) .EnableDblclick(false) .ShowFooter(true) .ShowHeader(true) .CloseOnEscape(false) .HeaderText(Model.PageName) .ContentHTML ( grid ) .Render())
Any tips here guys ...
Figured this out.
Thanks
igDialog . ContentID