User Profile & Activity

Andi Santoso Support
Page
of 53

Hi Gaurav Desai,

     Sorry for the attachment, I have re-attached a downloadable sample. Glad to hear that you can get the value from client side now. However, we do not support your scenario at this moment. 

     If we set the column to be invisible, that particular column is not being render actually. So, in this case, the data will not be existed and our column can only holds one hidden data member.

     I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: March 22, 2010 5:44 AM

Hi Raviraj Shimpi,

    Forgive me, however, I cannot run under your code since I do not have the onjLibrary and the dataset of yours. After I see through your code, It seems that there are some couple thing that are not looked right in there.

    First, it seems that you are not add the StateNode into the WebTreeView. Secondly, the object e.node or Tree in protected void GetTreeNode(WebTreeViewNode Tree) is actually the object of WebTreeView1. So, I think, we are not allowed to do WebTreeView1.Node.Add(Tree). Instead of that, perhaps, you can do "Tree.Nodes.Add(StateNode)", it will add the WebTreeNode of StateNode to WebTreeView1.

    Probably to be clarify, you can take a look again at our sample at WebTree Documentation. I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Gaurav Desai,

     If you are trying to access a hidden column member, I will recommend you to use HiddenDataMember feature. With this, you can set a hidden column in your WebGrid and access the value by getting its attribute. Here is the snippet to get the value of hidden data member:

        function Button1_onclick()
        {
            var grid = ISGetObject("WebGrid1");
            var selectedObject = grid.GetSelectedObject();
            var getRowObject = selectedObject.GetRowObject();
            var getCells = getRowObject.GetCells().GetNamedItem("Phone")
            var getHiddenValue = getCells.GetElement().attributes["Fax"].value;
        }

      In here, I set a hidden value under a Phone column. So, I just go to Phone column and get the value of its attribute, which already been set to be a Fax column data member.

      To be clarify, I also attached you a sample of mine on how to create a hidden data member (please select a row first before click on the button). I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: March 22, 2010 4:04 AM

Hi Kevin,

    Yes, if you are using our trial version, we only allow customer to deploy under the local host connection not an online connection. 

    I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: March 22, 2010 4:00 AM

Hi Raviraj,

     It should not be a problem. What do you mean with "does not support"? Was it an error while you dragged it ? And, may I know what was the error message and your environment details? 

     Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: March 22, 2010 3:54 AM

Hi Madhavan,

      For your information, the language of the WebGrid does not depend on what is the language settings of the server. The WebGrid's language will depend on what we had while we deploy the WebGrid. If we set the language to French and deploy it to Os with Chinese language setting, the language will stay with France.

     The Use Culture of text settings means the control will pick the language based on the specified Culture in WebGrid level or Thread level. When the language file cannot be found, it will fall back to use the default language file.

      I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: March 19, 2010 2:25 AM

Hi Rob,

     Sorry, but our WebGrid does not support that feature. However, we can use ColumnAction, so, there is a context menu if you click on the column header and create a new menu item to it and works as a new function to it for the workaround. 

     First, we need to show the column action in the WebGrid by:

        <LayoutSettings ShowColumnAction="True">

     Then, using the OnColumnContextMenu client action, we can create a new item and call a new function. Here is the snippet:

        function WebGrid1_OnColumnContextMenu(controlId, col, menu, isGroup, location)
        {
            var WebGrid1 = ISGetObject(controlId);
            
            var separator = new WebMenuItem();
            separator.Type = "Separator";
            separator.Name = "MySeparator";

            var menuItem = new WebMenuItem();
            menuItem.Text = "New Function";
            menuItem.Name = "MyMenu";
            menuItem.OnClick = "newFunction";

            menu.Items.Add(separator);
            menu.Items.Add(menuItem);
            return true;
        }

        function newFunction()
        {
            alert("This is a new function");
        }

      I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Posted: March 19, 2010 12:38 AM

Hi Raviraj Shimpi,

     Actually, we do have a documentation about using dataset in our WebTreeView. You can go to WebTreeView documentation with "ms-help://ISNet.WebUI.WebTreeView.V1/ISNet.WebUI.WebTreeView/Add TreeViewNodes based on retrieved data (Load On Demand scenario).html" page.

      I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

Hi Yousif,

     Forgive me, actually, when we are sorting using ContextMenu, the ColumnMember property is not designed for that scenario (using context menu). Since, basically the ColumnMember returns a string value of its column name, here is snippet of the workaround to get the column name every time we do sort either with context menu or from column header:

        function WebGrid1_OnColumnSort(controlId, columnObject)
        {
            var WebGrid1 = ISGetObject(controlId);
            if (columnObject.DataMember == null)
                alert(columnObject.ColumnMember);
            else
                alert(columnObject.DataMember);
           
            return true;
        }

      I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

 

Posted: March 18, 2010 11:57 PM

Hi Kevin,

    Correct me if I am wrong, but does it occur on your deployment server? If so, could make sure that the .dll files is included in your bin folder? If not, you can copied them manually to the server. I hope it helps. Thank you and have a nice day.

Best Regards,

Andi Santoso

All times are GMT -5. The time now is 1:47 AM.
Previous Next