Tab key Issue with Ext.net Dynamiclly created Checkbox .

  1. #1

    Tab key Issue with Ext.net Dynamiclly created Checkbox .

    I have create and add checkbox using C# code. Its working fine but the problem is tab key press in IE. In that on tab key press, focus move on Text associated with checkbox but in other browser like firefox, chrome checkbox get focused. [images Attached.]

    I am looking to focus on checkbox in IE. I have tried with CSS and some other but nothing I found to fix that issue. and the code i use for it is:

      //ASP.net Dynamic Table Control.
                    Table chkBoxTable = getTable();                         
                    TableRow chkBoxRow = getTableRow();
                    TableCell chkBoxCell = null;
    
                    Ext.Net.Checkbox objcheckbox;
    
                    XmlNodeList l_objDropDownValues = XmlNodeList[1].SelectNodes("Values/value"); //Find Number if check Boxs from dropdown. 
    
                    for (int k = 0; k < l_objDropDownValues.Count; k++)
                    {
                      objcheckbox = new Ext.Net.Checkbox(false, l_objDropDownValues[k].Attributes["text"].Value);
                      objcheckbox.ID = "chk" + l_objDropDownValues[k].Attributes["ValuesID"].Value;
                      objcheckbox.Attributes.Add("cls", "label-text");
                      objcheckbox.TabIndex = tabindx++;
                      objcheckbox.Listeners.Check.Handler = "show(" + l_objDropDownTobacco.ClientID + ");";
                      objcheckbox.Listeners.SpecialKey.Fn = "chkonEnter";
                      //Create td.                  
                      chkBoxCell = getTableCell();
                      chkBoxCell.Width = Unit.Pixel((k % 2 == 0) ? 60 : 190);
                      chkBoxCell.Controls.Add(objcheckbox);
                      if (chkBoxRow.Cells.Count >= 2)
                      {
                        chkBoxTable.Rows.Add(chkBoxRow);
                        chkBoxRow = getTableRow();
                      }
                      chkBoxRow.Cells.Add(chkBoxCell);
                      if (k == (l_objDropDownValues.Count - 1))
                      {
                        chkBoxTable.Rows.Add(chkBoxRow);
                      }
                    }
                   //Add table with checkbox control on page.
                    setControls(getLabelControl(l_objControlsNodeList[1]), chkBoxTable, l_objTable);
    Attached Thumbnails Click image for larger version. 

Name:	imgFF.JPG 
Views:	31 
Size:	9.0 KB 
ID:	9351   Click image for larger version. 

Name:	imgIE.JPG 
Views:	23 
Size:	8.3 KB 
ID:	9361  
  2. #2
    Hi @amitkaushik91,

    Welcome to the Ext.NET forums!

    What IE version are you using?
  3. #3
    Thanks for Welcome and reply.

    I have tried that with IE 8/9/10/11.
  4. #4
    I cannot reproduce. Please clarify what Ext.NET version are you using?
  5. #5
    Quote Originally Posted by Daniil View Post
    I cannot reproduce. Please clarify what Ext.NET version are you using?
    Ext.Net: 1.2.0.21133
  6. #6
    Ok. Please post a full sample to test with. I will try to reproduce.

Similar Threads

  1. Replies: 1
    Last Post: Nov 05, 2013, 2:12 AM
  2. Replies: 3
    Last Post: May 29, 2013, 3:49 AM
  3. [CLOSED] Issue with client side created desktopwindow in taskbar
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 04, 2011, 10:25 AM
  4. Replies: 0
    Last Post: Sep 25, 2010, 3:28 PM
  5. Replies: 0
    Last Post: May 13, 2009, 7:00 AM

Tags for this Thread

Posting Permissions