User Profile & Activity

Gordon Tumewu Support
Page
of 19
Posted: September 3, 2009 11:08 PM

Hi Michael,

The component should be registered autmatically to your toolbox, but if not you need to browse it manually to installation folder.

Best Regards,

Gordon Tumewu

Posted: September 3, 2009 11:06 PM

Hi Yaniv,

Actually if you click on your name at one of the post(I attach screenshot of the name), you can see all the threads that you created and all your post.

Best Regards,

Gordon Tumewu

Posted: September 2, 2009 11:34 PM

Hi Koby,

Please for the next time no need to use th "!" mark, I can read it perfectly without any "!" mark.

Before I gave you the solution I have tested it by creating a simple sample. Here I attached my simple sample that I used to test, please check it and let me know if you have different scenario than my sample. 

Posted: September 1, 2009 11:47 PM

Hi Gordon ,

is this solution Works With Nested Grid 

 

Hi Koby,

For hierarchical grid you need to use this code:

function HideHierarchicalColumn(pos)
        {
            var grid = ISGetObject("WebGrid1");
            var table = grid.GetRootTable();

            headerGroup = table.GetElement(WG40.COLHEADER, WG40.HTMLDIV);
            colGroup = table.GetElement(WG40.COLGROUP, WG40.HTMLDIV);

            headerGroup.childNodes[0].childNodes[0].childNodes[0].childNodes[pos].style.display = (headerGroup.childNodes[0].childNodes[0].childNodes[0].childNodes[pos].style.display == 'none') ? '' : 'none';
            colGroup.childNodes[pos].style.display = (colGroup.childNodes[pos].style.display == 'none') ? '' : 'none';

            if (!IS.ie)
            {
                rowList = colGroup.nextSibling.childNodes;

                for (var i = 0; i < rowList.length; i++)
                {
                    if (rowList[i].childNodes[pos])
                    {
                        rowList[i].childNodes[pos].style.display = rowList[i].childNodes[pos].style.display == 'none' ? '' : 'none';
                    }
                }
            }
        }

Best Regards,

Gordon Tumewu

Posted: September 1, 2009 11:35 PM

Hi Vince,

After discussing with my colleague, he help me with additional code so this will works in all browser. This is the complete code:

function HideColumn(pos)
        {
            var grid = ISGetObject("WebGrid1");
            var table = grid.GetRootTable();
            
            headerGroup = table.GetElement(WG40.COLHEADER, WG40.HTMLDIV);   
            colGroup = table.GetElement(WG40.COLGROUP, WG40.HTMLDIV);
            
            headerGroup.childNodes[0].childNodes[0].childNodes[0].childNodes[pos].style.display = (headerGroup.childNodes[0].childNodes[0].childNodes[0].childNodes[pos].style.display == 'none') ? '' : 'none';
            colGroup.childNodes[pos].style.display = (colGroup.childNodes[pos].style.display == 'none') ? '' : 'none';

            if (!IS.ie)
            {
                rowList = colGroup.nextSibling.childNodes;

                for (var i = 0; i < rowList.length; i++)
                {
                    rowList[i].childNodes[pos].style.display = rowList[i].childNodes[pos].style.display == 'none' ? '' : 'none';
                }
            }
        }

Best Regards,

Gordon Tumewu

Posted: September 1, 2009 11:03 PM

Hi Koby,

Actually you only need the WebGrid1.RootTable.COlumns[4].Visible = false. But you need to put it in PrepareDataBinding event not in InitializeLayout.

Hope this helps.

Best Regards,

Gordon Tumewu

Posted: September 1, 2009 10:42 PM

Hi George,

It's true, I noticed that your issue is in inserting, the issue that you have because that the ID column cannot be null, that's why I point to the knowledge base, if you check the knowledge base contain step by step to handle the inserting problem if the ID cannot be null. I think it's similliar with your issue.

Best Regards,

Gordon Tumewu

Posted: September 1, 2009 10:29 PM

Hi,

It's located in your MyComponents window at TDN. You can download one of the component(e.g WebGrid) then you can have the 2009 R1 SP1 installer. Or you can request a trial at http://www.intersoftpt.com/requesttrial.aspx by filling your Intersoft ID and password.

Best Regards,

Gordon Tumewu

Posted: September 1, 2009 6:32 AM

Hi George,

Actually we have a knowledge base about retrieving identity, probably you can use it also, you can browse it in http://support.intersoftpt.com/KBArticle.aspx?aid=207 or http://support.intersoftpt.com/KBArticle.aspx?aid=227.

Hope this helps.

Best Regards,

Gordon Tumewu

Posted: September 1, 2009 5:25 AM

Hi,

Could you give me the page HTML structure(the aspx file) so I can check in my end?

Best Regards,

Gordon Tumewu

All times are GMT -5. The time now is 10:53 PM.
Previous Next