[CLOSED] Display mandatory icon for editor column in grid panel

  1. #1

    [CLOSED] Display mandatory icon for editor column in grid panel

    Hi,

    I have gridpanel with editable columns - one combobox and one textfield. I am using editablegrid plugin to show the grid in edit mode. I want to display mandatory icon for my editor columns. How do i do that?

    I tried applied allowblank =flase and icon as bulletred. The icon is displayed inside the editor. I have attached the UI for your reference.

    Please advise.

    Thanks
    Anulekha
    Attached Thumbnails Click image for larger version. 

Name:	EditorGridPanel.png 
Views:	92 
Size:	22.6 KB 
ID:	3243  
    Last edited by Daniil; Sep 29, 2011 at 9:08 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunately, there is no such functionality in EditableGrid.

    And, I'm afraid, it would be difficult to implement.

    I can suggest to place a mandatory icon into a column's header.
    //Register icon
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            this.ResourceManager1.RegisterIcon(Icon.BulletRed);
        }
    }
    
    //Css styles
    <style type="text/css">
        .mandatory {
            background-repeat: no-repeat;
            background-position: center;
        }
    </style>
    
    //GridPanel column
    <ext:Column 
        Header="<div class='mandatory icon-bulletred'>Test</div>" 
        DataIndex="test" />
    How to validate fields please investigate:
    http://forums.ext.net/showthread.php?14619

Similar Threads

  1. Replies: 1
    Last Post: Apr 09, 2012, 6:03 PM
  2. Replies: 0
    Last Post: Aug 22, 2011, 8:56 AM
  3. [CLOSED] [1.0] Possible to Add Icon to Grid Column Header?
    By bsnezw in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 14, 2010, 3:34 PM
  4. [CLOSED] [1.0] Icon on Grid Column
    By gokcemutlu in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2010, 8:34 AM
  5. Replies: 3
    Last Post: Nov 19, 2009, 10:17 AM

Posting Permissions