This is a migrated thread and some comments may be shown as answers.

RadGrid Filter Context Menu Accessibility

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 08 Aug 2011, 04:05 PM
Hi,

We are using the Telerik RadGrid and currently make use of the accessibility features.

Is it possible to enable accessibility on the filter context menu? There doesn't seem to be alt text on the context menu which causes a problem with screenreaders.


Thanks,

Ryan

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Aug 2011, 05:28 AM
Hello Matt,

Try the following code snippet to access FilterContextMenu.
C#:
protected void Page_Load(object sender, EventArgs e)
{
  RadGrid1.HeaderContextMenu.ItemCreated += new RadMenuEventHandler(HeaderContextMenu_ItemCreated);
}
void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
{
  //Check for condition
}

Thanks,
Shinu.
0
Mark
Top achievements
Rank 1
answered on 09 Aug 2011, 09:13 AM
Hi Shinu,

Thanks for your reply. I have tried the following:

protected void Page_Load(object sender, EventArgs e)
    {
        grv_people.HeaderContextMenu.ItemCreated += new RadMenuEventHandler(HeaderContextMenu_ItemCreated);
    }

    void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
    {
        e.Item.ToolTip = e.Item.Text;
    }

This works on the header context menu, however it is the filter context menu that we need to access.
0
Shinu
Top achievements
Rank 2
answered on 11 Aug 2011, 06:01 AM
Hello  Matt,

I suppose you want to show ToolTip for FilterContextMenu. Try the following code snippet which worked on my end.
C#:
void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
{
    if (e.Item.Text == "Group By")
    {
        e.Item.ToolTip = e.Item.Text;
    }
}

Thanks,
Shinu.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Share this question
or