7/4/2025 10:31:25 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 the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Question about AJAX Extensions and SlxGridView (Dependent Grids in SLx Web)
Posted: 05 Oct 09 4:17 AM
|
Has anyone had any experience using AJAX update panels in custom smartparts, using Slx controls?
What I'm trying to achieve is when a user selects a row in a 'main grid', the contents of a 'sub grid' is updated, say for example you select a Company in the main grid, the 'sub grid' fills with Employees for that Company.
This doesn't sound difficult in itself but I'm trying to have the grids on the same form, which is bound to an Entity which we'll say is a Parent Company, and there's actually three grids. So the Parent Company detail view has three grids, the third being dependent on the second, and the second grid being dependent on the first grid (the first is 'static', relevant to the current entity).
At the moment I'm just getting this error message: An exception was raised by the target of an invocation (or something), nothing more useful than that unfortunately.
When I run it without update panels, it 'works' in the sense that a selection in the first grid populates the second grid , and a subsequent selection in the second grid populates the third grid ; but this subsequent selection also resets the second grid . What's happening at this point is that the second grid forgets its datasource (set from the first selection) on the postback which populates the third grid.
I tried putting a Session variable in the row select code, but apparently it doesn't understand the word 'Session' in the context of the row select snippet. This led me to trying update panels.
Anyway, sorry to ramble on, anyone have any ideas how I could achieve what I'm after (a nested grid dependency)? Is there a better way of doing this perhaps?
Many thanks, Alec D |
|
|
|
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!
|
|
|
|
|
|
|
|