Advertisement

10.16.2008 at 05:05AM PDT, ID: 23819973
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Populating the values of subsequent columns in an Infragistics UltraWebGrid, based on the first column's selected value in a ValueList/Dropdownlist

Asked by Caroline_Swart in Infragistics, C++ Programming Language, C# Programming Language, C# Builder, .Net Editors & IDEs

Tags: ,

I'm using a Infragistics UltraWebGrid.  I have a couple of columns in a grid, the first column has a dropdownlist in it.  When the user adds a new row, the row is empty which is correct, i want all the columns of the new row to be populated with the first column's default data which is found in it.

Steps that the user will perform when adding a new row to the grid:
1)  The user adds a new row to the grid, the row is now empty.
2)  The user clicks on the first column of new row, and dropdown appears with customer items.
3)  The user selects an cutomer item in the dropdown.
4)  After he selected an item from the dropdown, the rest of the columns must display the customer's default data, like CustomerID, Address, Telephone, etc based on the selected item.

The dropdown/valuelist is already populated in the new row, I don't know what event to use, to fill the subsequent columns based on the value of the first columns dropdownlist after the user chose an item.  The grid's "AddRow" event is not sufficient since this only gets fired once the user entered all the data and moves to another row, and in order for the user to add the data, he needs the default data in the cells, and then he can modify it.

I've considered using the Dropdownlist's "SelectedIndexChanged" event, but since the user is busy adding a new row, there is no way for me to find the new row being added, because the "code" does not know of this new row yet.

The dropdownlist in the first Column is a WebCombo control also from infragistrics.  So this will allow me to add all the neccessary customer data in it, since it is has a multicolumn grid.

I have seen some solutions solving this using a UltraWinGrid which is the Window Application version of Infragistics, but not for an UltraWebGrid which is used in ASP.Net.

I envision that some javascript will be neccessary to perform the following:
1) Find the selected row in the first columns dropdownlist
2) Get all the default data stored in that selected row (Since this is a row of a multicolumn grid)
3) Display the values in the the subsequent columns.

When the user finished with editing the default values, he can click on another row, and i can use the "AddRow" event to find all the data that he entered and submit it to my dataset.

I'm new to using the Infragistics control suite, and can't seem to find any good code references and solutions to programming questions.

thanksStart Free Trial
 
Loading Advertisement...
 
[+][-]10.17.2008 at 11:11AM PDT, ID: 22743550

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.18.2008 at 07:09AM PDT, ID: 22748165

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.20.2008 at 01:03AM PDT, ID: 22755717

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.20.2008 at 04:05AM PDT, ID: 22756421

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Infragistics, C++ Programming Language, C# Programming Language, C# Builder, .Net Editors & IDEs
Tags: C#, IE 7
Sign Up Now!
Solution Provided By: itsmeandnobodyelse
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628