2/23/2025 4:57:16 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Make datagrid appear as a pop-up instead of in current form
Posted: 08 Oct 12 11:31 AM
|
fiogf49gjkf0d Hi All.
SLX LAN v7.2.1
I have a form that has a datagrid in it, but the datagrid is pretty wide so I want to change it so instead of appear on the form, it appears as a pop-up when the end user clicks a button. Any idea how I can do this?
The datagrid is populated using code, based on 2 fields the end user enters data in (textbox and a drop down).
Thank you in advance! |
|
|
|
Re: Make datagrid appear as a pop-up instead of in current form
Posted: 08 Oct 12 12:03 PM
|
fiogf49gjkf0d You won't add any benefit in doing so. If you are saying the grid needs to be wider - just make the form it's hosted on wider. Or make the grid scrollable. You can't easily make one grid inherit another so, if you do proceed down this route anyway, then you'll need to re-create it on the popup form (which, in reality is simply a clone of existing but just containing the grid). |
|
|
|
Re: Make datagrid appear as a pop-up instead of in current form
Posted: 08 Oct 12 12:06 PM
|
fiogf49gjkf0d Thanks for the reply Mike.
So to be able to make the datagrid pop-up, I'll have to create a new form with just the datagrid. How do I pass the values from the current form onto the second form that will just be the datagrid? |
|
|
|
Re: Make datagrid appear as a pop-up instead of in current form
Posted: 08 Oct 12 12:38 PM
|
fiogf49gjkf0d You can't. There aren't any "values" to pass in as it's a grid. Your only option is to create the grid as you do already (but without values). You can then, on your existing view, launch this view and pass the entire grid object to the new forms grid object.
You can see this in action va the manage products and manage campaign targets forms as they do something fairly similar. |
|
|
|
Re: Make datagrid appear as a pop-up instead of in current form
Posted: 09 Oct 12 7:36 AM
|
fiogf49gjkf0d As Mike suggested, you can pass any object to the dialog form inside the dialog parameters. The parameters may be the grid DataSource or any ther values required to display in your dialog.
Yo may want this dialog to be as wide as possible, no matter what the screen resolution is. In order to achieve that, I suggest that you open the dialog from the client side, where you can calculate the dialog width and height based on the browser window size. |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|