User Profile & Activity

Dasha Fedorova Member
Page
of 4
Posted: May 27, 2010 8:28 AM

Hmmm, that's a real shame (

Do you think I can do something through defining a CustomAggreagate?  Would I be able to format the value that way?

Posted: February 23, 2010 7:53 AM

Hello Andi,

Thank you for your help, but it's still not working for me.  The Groups are set up programmatically in code.  And so the columns are grouped initially rather than by using the grouping flypostback action.  When I first load the page, the 'expand' image is hidden, but once I sort a column, it is once again displayed.  I tried using the OnResponce event like you suggested, but it's still not working.

I think that for simple testing you can try to set up some groups in c# codebehind and then try to hide all the expand images through javascript, not just certain ones.  This way you'll see that any flypostback event will bring the expand images back.

Posted: February 22, 2010 1:45 PM

Andi, thank you for your help.  This is what I did:

function CheckEmptyGroups(controlId) {
   var WebGrid = ISGetObject(controlId);
   var groupRows = WebGrid.RootTable.GetGroupRows();

   for (var i = 0; i < groupRows.length; i++) {
    if (!groupRows[i].GetGroupChildRows() || groupRows[i].GetGroupChildRows().length == 0) {
     WebGrid.RootTable.GetGroupRows()[i].SetForceNoEdit();
     WebGrid.RootTable.GetGroupRows()[i].RowElement.cells[0].style.display = "none";
    }
   }    
}

And I assigned this method to WebGrid's OnAfterInitialize event.  This way my goups were loaded correctly when the grid was initially rendered if the groups were defined programmatically.  It was working great until I noticed that the expand image is restored after any FlyPostBack event like sorting, paging, or filtering.  Is there any way to 'lock' in my changes?

Posted: February 19, 2010 7:47 AM

Andi, thank you for the explanation, I will pass it on to our team.

Posted: February 12, 2010 6:28 AM

Hello Andi,

I believe I've been able to make some progress here.  What I did was I added an empty row with just the group header into my datatable.  Then i did this:

protected void ISGrid_InitializeRow(object sender, RowEventArgs e)
{
    if (e.Row.Type == ISNet.WebUI.WebGrid.RowType.GroupHeader)
    {                    
        if (e.Row.Cells[0].Value.ToString() == "Not Started")
        {
             e.Row.Children.Clear();
        } 
    }       
}

This clears the child rows from that group, and essentialy creates an empty group with the proper cout of (0).

May last problem is how do I remove the Expand capability from this group? And how can i update the "Loaded" count at the bottom of the grid, which still counts my removed row?

Please see the attached image, note how the total count does not add up to the individual group couts.

Posted: November 25, 2009 12:13 PM

but what if i want to see the tooltip, but not the (Alt + "") hint?

Posted: November 23, 2009 4:46 PM

Gordon, this is what i'm doing in code:

 

MenuComand =
new MenuCommand();

MenuComand.Text = "Test Value";

MenuComand.Name = "UniqueID"
;MenuComand.AccessKey = "non empty value";

MenuComand.ToolTip = "ToolTip Text";

 

And what I see is in the attached image.  If possible, give us a responce as soon as you can, since this has been a very long outstanding issue, and it's important for our release that's taking plase in the next few days.  Thank you so much for all the help!

Posted: November 3, 2009 1:45 AM

Gordon,

With Yudi's help we've figured out that the keyboard navigation by way of tabbing only works when the access key is defined in the Menu Commands.  I've gone around this by setting the access key string to be something like 'non empty string', but now I get a tooltip when i hover over the menu commans: "(Alt + non empty string)" how can I remove this tooltip?

Thank you for your help,

Dasha.

Posted: October 28, 2009 7:48 AM

Handy, could you please tell me how to enable that feature?

Posted: October 23, 2009 2:53 AM

Gordon, just an update to my issue.  I've discovered that it's occurring when the items are created dynamically in codebehind rather than in the html.  So that's why your example works, and mine environment doesn't.  It has nothing to do with SharePoint, but rather in the way the items are created - dynamically versus statically.  Try creating items like this:

protected void Page_Load(object sender, EventArgs e)
{
MenuCommand cmd = new MenuCommand();
        cmd.Name = "item1";
        cmd.Text = "item1";
        cmd.AccessKey = "a";
               
        WebMenuBar1.Menus.Add(cmd);
}

And then try to expand them by using the keyboard - it will not work.

Thank you for helping me with this,

d.

All times are GMT -5. The time now is 3:34 AM.
Previous Next