[CLOSED] Multi Combo select items from code behind

Page 2 of 2 FirstFirst 12
  1. #11
    Quote Originally Posted by Daniil View Post
    Does it not work for you?
    no, because Ext.net.ListItem constructor only accept a string value, I think is the version of Ext.net!
  2. #12
    There is a constructor with no parameters in the code snippet. There is an object initializer used.
    http://msdn.microsoft.com/en-us/libr.../bb397680.aspx
  3. #13
     Ext.Net.ListItem item = new Ext.Net.ListItem
           { 
               Value = "1"
               //Value = 1  error
           };
    Still "Value" requires a string, not a integer. But I just decide to use a string, and it works.
    So correct me if I am wrong, check the items of a multicombo can only be done into the Page Load? .. beacuse it works into the page load, but
    since I am using a user control with a window, I have a set function with a parameter, and by using this parameter I want to decide what items I should check, but it is no possible, I even try with a Button's click event function but it seems the only way to check multi combo items into the Page Load ..
  4. #14
    Quote Originally Posted by rookie View Post
     Ext.Net.ListItem item = new Ext.Net.ListItem
           { 
               Value = "1"
               //Value = 1  error
           };
    Still "Value" requires a string, not a integer. But I just decide to use a string, and it works.
    So correct me if I am wrong, check the items of a multicombo can only be done into the Page Load? .. beacuse it works into the page load, but
    since I am using a user control with a window, I have a set function with a parameter, and by using this parameter I want to decide what items I should check, but it is no possible, I even try with a Button's click event function but it seems the only way to check multi combo items into the Page Load ..
    Oh my God! .. I used
    MyCombo.UpdateSelectedItems();
    and everything works fine!, thank you .. Please close this thread!
  5. #15
    Thank you for the update!
  6. #16
    Quote Originally Posted by rookie View Post
     Ext.Net.ListItem item = new Ext.Net.ListItem
           { 
               Value = "1"
               //Value = 1  error
           };
    Still "Value" requires a string, not a integer.
    Sorry, you are right. It needs to use the Raw Mode.
    new Ext.Net.ListItem() 
    { 
        Value = "1", 
        Mode = ParameterMode.Raw 
    }
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Multi combo first time select - problem
    By ssenthil21 in forum 1.x Help
    Replies: 1
    Last Post: Sep 21, 2011, 8:55 AM
  2. [CLOSED] Is it possible to Select Items of a multi select during ajax event
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 29, 2010, 6:28 PM
  3. Replies: 0
    Last Post: Feb 01, 2010, 12:42 PM
  4. Multi select items text not visible
    By ajaybabu.maddinani in forum 1.x Help
    Replies: 2
    Last Post: Dec 08, 2009, 7:49 AM
  5. Multi Select select/deselect
    By Palash in forum 1.x Help
    Replies: 2
    Last Post: Sep 18, 2009, 3:49 AM

Tags for this Thread

Posting Permissions