Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WebCombo

Posted on 2004-04-28
10
Medium Priority
?
1,562 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 600 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
Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

 
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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

722 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