Login Register
Saturday, May 19, 2012
You are here : Forum
 
Forums Minimize
 
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...Display Selected Value in GridDisplay Selected Value in Grid
Previous Previous
 
Next Next
New Post
 8/26/2010 9:58 PM
 

How do I display a value that was selected in a dropdownlist to also appear in gridView?

I have an Indoo grid that is currently displaying all products stored in a SQL Server table. Above the grid, I have a dropdownlist that displays 3 choices: All, Commercial, Residential. When Commercial is selected from the dropdownlist, the grid is refreshed, displaying only commercial products. When Residential is selected, the grid is refreshed again, displaying only residential products.

I want the selected value (in the dropdownlist) to also appear as a column in the grid. How do I do that? When I select Commercial, from the dropdownlist, for example, how do I get this selected value to appear in the grid, along side of the other colums that are already appearing in the grid?

PS - I do not wish to add these values (commercial and residential) to the SQL Server table.

New Post
 8/30/2010 1:22 PM
 
 Modified By artfuldodger  on 8/30/2010 1:23:04 PM

I guess there's a column in the table that says commercial/residential? couldn't you just show that column?

Or how does it query the database showing only one of them if that's not in the db?

New Post
 8/30/2010 1:55 PM
 

The dropdownlist that appears above the grid is not based on a SQL Server table or view. It is based on "Values from list".

New Post
 8/30/2010 4:19 PM
 

yup, that's one of the disadvantages of using 'values from a list'... it doesn't come through on gridView.

That must be based on one your fields, so for example Indicator=1 means Commercial. If that is the case then you could add the "Indicator" column to the gridView and use "Show data from more columns...." and select option "1-configurable". Then you could just add what you want... for example in Prefix enter Commercial, in Condition column select Indicator, in Condition enter 1 (based on my hypothetical example above), then do the same for the other types.

Previous Previous
 
Next Next
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...Display Selected Value in GridDisplay Selected Value in Grid

  
Buy it Minimize

 

 

  
Home | Demo | Custom Solutions | Downloads | Forum | Company
 
Privacy Statement | Terms Of Use
 
Copyright 2008-2009 IndooLab d.o.o.