User Profile & Activity

Bernard Xiang Member
Page
of 52
Hi Jocelyn,

If you want to hide some menu from context menu, you can do this in OnRowContextMenu client-side event. You can't do this in server-side because this event happens while user interact with WebGrid. You can add this code in OnRowContextMenu event:
function regDataGrid_OnRowContextMenu(controlId, rowType, rowElement, menuObject)
{
	var regDataGrid = ISGetObject(controlId);
	menuObject.Items.GetNamedItem("mnuCopyCell").Hide(); //Hide Copy Cell menu
	menuObject.Items.GetNamedItem("mnuCopyRow").Hide(); //Hide Copy Row menu
	menuObject.Items.GetNamedItem("mnuCopyTable").Hide(); //Hide Copy Row menu
	return true;
}
Hope this helps,

Regards,
Bernard

Posted: July 5, 2012 9:20 PM

Hi Jim,

Sorry for this inconvenience. I've re-upload the file.
Thank your for your feedback.

Regards,
Bernard

Posted: July 4, 2012 5:04 AM

Hi Jim,

I think this problem occurs because the value of LastCursorPosition property hasn't been set when WebTextEditor is being initialize. I made my own sample and attach it here. In my sample, I handle the cursor by using focus function. Could you check my sample again and tell me if my sample is already meet your scenario or no?

 

Regards,

Bernard.

Hi Jocelyn,

I think the problem is on the syntax. You can try this syntax and put it to your code:
if (UserRights().Export.ToLower() == "false")
	regDataGrid.LayoutSettings.AllowExport = ISNet.WebUI.WebGrid.Export.No;
else
	regDataGrid.LayoutSettings.AllowExport = ISNet.WebUI.WebGrid.Export.Yes;

For your information, I recommend you to put this syntax on OnInitializeLayout event.

Hope this helps.


Regards,

Bernard

Posted: July 3, 2012 6:14 AM

Hi Jim,

I made another workaround for your scenario and it seems working for Mozilla Firefox and Google Chrome. I attach my sample here. Could you check my sample and tell me if my sample meet you scenario? 

 

Hope this helps.


Regards,

Bernard

Posted: July 2, 2012 6:02 AM

Hi Jim,

You can put the function on client-side event. I've made my own sample that show you how to add an event to your item. Could you check if my sample meet your scenario? Look forward to hear any feedback from you so I can help you further.

Regards,
Bernard

Posted: July 1, 2012 11:32 PM

Hi Randy,

I've tried to replicate this issue in Win7 style but unfortunately it works fine. It seems it's already been fixed in our WebGrid 8. Hope this helps.


Regards,

Bernard

Hi Randy,

Sorry for misunderstanding. I've tried to replicate your problem here but unfortunately it works fine.

I've made my own sample. In my sample, I used FormatConditions feature. When I add a new row, the row have background color like I set on FormatConditions. Could you check my sample and tell me if I missed something in my configuration?


Regards,

Bernard

Hi Randy,

Could you explain me more detail about your grouping scenario? From your information that you describe, I only know that you want to group the data by FormatConditions and coloring the child row as determined by FormatConditions.

I made my own sample to show the scenario that I knew from you. Could you check my sample and tell me if the scenario meet your condition or no?

Look forward to hear any feedback from you so I can help you further.


Regards,

Bernard

Hi John,

If you change the DOCTYPE to XHTML or HTML mode, WebGrid won't have error like you mentioned above because IE8 and IE7 support XHTML and HTML DOCTYPE.

If you have any further question, please don't hesitate to ask us. We will gladly help you.


Regards,

Bernard

All times are GMT -5. The time now is 4:40 PM.
Previous Next