Solved

WebCombo

Posted on 2004-04-28
10
1,546 Views
Last Modified: 2007-12-19
How do I populate a webcombo component of infragistics programmatically in my aspx webpage. I am using .NET



Moiz
0
Comment
Question by:Moizsaif123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
10 Comments
 
LVL 15

Accepted Solution

by:
liebrand earned 150 total points
ID: 10940443
Keep in mind the the drop down is pretty much an UltraWebGrid, so here is how you would add values to it via code:

        Dim row As Infragistics.WebUI.UltraWebGrid.UltraGridRow
        For i As Integer = 0 To 10
            row = New Infragistics.WebUI.UltraWebGrid.UltraGridRow(New String() {String.Format("MyCell{0}", i)})
            Me.WebCombo1.Rows.Add(row)
        Next
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10941018
cool.....One question though, how yu get the MyCell{0} to increment to MyCell{1}, MyCell{2}.....,  thanks again
0
 
LVL 15

Expert Comment

by:liebrand
ID: 10941413
String.Format("MyCell{0}", i)

String.Format allows you to pass in multiple parameters that will be substituted in the string, so I passed in "i" which is from the loop.

Here is another example of String.Format:

string.format("Hello {0}, the date today is {1}. {0}, how may I assist you today?", "MyUsername", Date.Now())

the output would be:

"Hello MyUsername, the date today is 4/28/2004. MyUsername, how may I assist you today?"
0
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 
LVL 4

Author Comment

by:Moizsaif123
ID: 10960437
How do I set the Autopostback=true for the dropdownlistbox?



Moiz
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10960610
sorry not dropdownlistbox, I meant the webcombo from the infragistics component...





Moiz
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 10960641
sorry again, Im thinking in terms of the old components of .NET. I double clicked and it went to the SelectedRowChanged event, thanks again



Moiz
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 11024142
hey liebrand, i want to use this logic and apply it to columns so instead of rows i want to add columns with increment of the i value. let me know if this is possible


Dim row As Infragistics.WebUI.UltraWebGrid.UltraGridRow
        For i As Integer = 0 To 10
        row = New Infragistics.WebUI.UltraWebGrid.UltraGridRow(New String() {String.Format("MyCell{0}", i)})
        Me.WebCombo1.Rows.Add(row)
Next


Moiz
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 11025878
sorry not to be too specific, I am talking about the ultrawebgrid not the webcombo.....




Moiz
0
 
LVL 15

Expert Comment

by:liebrand
ID: 11027598
Open a new question...
0
 
LVL 4

Author Comment

by:Moizsaif123
ID: 11030912
0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question