iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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?
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.
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?
Andi, thank you for the explanation, I will pass it on to our team.
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.
but what if i want to see the tooltip, but not the (Alt + "") hint?
Gordon, this is what i'm doing in code:
MenuComand.Text = "Test 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!
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.
Handy, could you please tell me how to enable that feature?
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.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname