User Profile & Activity

Hans Kristian Member
Page
of 69
Posted: June 11, 2012 10:55 PM

Hello,

I’ve modified my sample by adding WebGrid’s OnColumnContextMenu client side event.
On that event, I hide all menu item except “Select Column” menu item.
Here’s the snippet OnColumnContextMenu client side event:

function WebGrid1_OnColumnContextMenu(controlId, col, menu, isGroup, location) {
    var WebGrid1 = ISGetObject(controlId);
    var menuItemLength = menu.Items.length;

    for (var i = 0; i < menuItemLength; i++) {
        var menuItemName = menu.Items[i].Name;
        if (menuItemName != "mnuSelectColumns") {
            menu.Items[i].Hide();
        }
    }
    return true;
}

I attached the modified sample as well.

Thank you.
Regards,
Hans.

Posted: June 11, 2012 10:26 PM

Hello,

I’ve sent a message to  your email once more. Please kindly check your inbox and your junk folder as well.

Thank you.

Posted: June 11, 2012 5:18 AM

Hello,

You could show the context menu of column header through button click by using ShowContextMenu() function.
To use ShowContextMenu() function, you should get the column object first.
I’ve made a sample that maybe similar with your current scenario.  I use WebGrid (bind to Northwind.mdb and Shippers table) and WebButton in my sample.
Then I use OnClientClick client side event of WebButton, to show the context menu.
Here’s the snippet code in OnClientClick:

<script language="javascript" type="text/javascript" id="WebButton1_OnClientClick">
	function WebButton1_OnClientClick(controlId, parameter) {
        var WebButton1 = ISGetObject(controlId);
        var WebGrid1 = ISGetObject("WebGrid1");
        // Show context menu for ShipperID column
        WebGrid1.RootTable.Columns.GetNamedItem("ShipperID").ShowContextMenu();
        return true;
    }
</script>

I attached my sample as well, in order to make you easier understand about my sample.

Hope this helps. Thank you.
Regards,
Hans.

Posted: June 11, 2012 3:17 AM

Hello,

Thank you for your information.

You can download WebUI.NET Framework from http://dev2.intersoftpt.com.
However, I can’t ensure that WebUI.NET Framework V2 is still compatible in Windows 7 because initially, both WebCombo V3 and WebUI.NET Framework V2 weren’t designed for Windows 7.
If you still want to use WebCombo .NET v3, you should try in previous versions of Windows, like Windows XP.

But you could use WebCombo in Windows 7 by upgrading to the latest version.
To upgrade the WebCombo version, you could contact our sales and account representative at martin@intersoftpt.com. I believe he will be more than happy to help you.

Regards,
Hans.

Posted: June 11, 2012 12:52 AM

Hello,

I sent you a message to your registered email account. Please kindly check your inbox and let me hear your response.

Thank you.

Posted: June 8, 2012 6:30 AM

Hello,

I’m sorry for the inconvenience.
Have you try to run the installer as an administrator?
If yes, could you tell me your computer operating system?
If you use Windows OS, please follow this link below:
http://support.microsoft.com/mats/Program_Install_and_Uninstall

Click “RUN NOW” to download the software, and then run it.

For “Launch Intersoft Update Manager” issue, please try to run the application as an administrator as well.

And let me know if the issue still persist or not

Hope this helps. Thank you.

Regards,
Hans.

Posted: June 8, 2012 4:59 AM

Hello,

Yes it is possible to run your scenario.
I suggest you to modify the item in export context menu with new menu item.
And set the menu item’s event as you please.

You could modify the export context menu item in OnExportContextMenu client side event of WebGrid.
Here’s the example snippet code that perhaps you could use.

function WebGrid1_OnExportContextMenu(controlId, table, menu, location) {
    var WebGrid1 = ISGetObject(controlId);
            
    // Clear all default Export Context Menu
    menu.ClearAll();

    // Create new menu item
    var menuItem = new WebMenuItem();
    menuItem.Text = "My Menu Item";
    menuItem.Name = "MyMenu";
    menuItem.OnClick = "NewFile";

    // Add Menu Item    
    menu.Items.Add(menuItem);

    return true;
}

function NewFile() {
    alert("Your new file");
}

I attached the example sample, that implement customize export context menu, as well.

Hope this helps. Thank you.

 

Posted: June 5, 2012 10:01 PM

Hello,

I’m sorry for the inconvenience.
I’ve made a sample, using WebPaneManager. But unfortunately, I can’t reproduce your issue on my end.
I attached my sample as well. Would you to tell me, the setting that I missed on my sample?
Or could you tell me the step-by-step how to reproduce you issue?

Thank you.
Regards,
Hans.

Posted: June 5, 2012 3:51 AM

Hello

I’m sorry, but unfortunately I can’t find way to determine if this was a double or single click, in one event function.
However, I have solution for your problem that maybe you could use.
I made a sample project by using WebGrid (Nortwind.mdb database & Shippers table).
I use WebGrid’s OnCellClick and OnCellDblClick client side event.
In OnCellClick event, I use setTimeout function to determine if this was a double or single click.
Here’s the snippet code:

<script language="javascript" type="text/javascript">
    var double = false;

    function WebGrid1_OnCellClick(controlId, tblName, rowIndex, cellIndex, cellEl) {
        var WebGrid1 = ISGetObject(controlId);
        window.setTimeout(function () {
            if (double == false) {
                alert("Single Click");
            }
            else {
                double = false;
            }
        }, 500)
        return true;
    }

    function WebGrid1_OnCellDblClick(controlId, tblName, rowIndex, cellIndex, cellEl) {
        var WebGrid1 = ISGetObject(controlId);
        alert("Double Click");
        double = true;
        return true;
    }
</script>

I attached my sample project, in order to make you easily understand about my sample.

And please let me know if this solution can resolve your problem or not. Perhaps, I can find another way to resolve your problem.

Thank you.
Regards,
Hans.

Posted: June 3, 2012 11:08 PM

Hello,

I am sorry but I think our current client side event should be able to determine which is single or double click.
Based on what I know, there might be some differences when loaded in browser, even for the normal single or double click handler.
Therefore, would you mind to let me know your current scenario?
Perhaps, we can figure out another way to implement your scenario.

Thank you.
Regards,
Hans.

All times are GMT -5. The time now is 12:35 AM.
Previous Next