User Profile & Activity

Gordon Tumewu Support
Page
of 19
Posted: September 1, 2009 5:00 AM

Hi Scott,

Here I attached my sample, I am trying to replicate the issue but didn't success. Could you check my sample and let me know if you have different scenario?

Best Regards,

Gordon Tumewu

Posted: September 1, 2009 4:17 AM

I am sorry but I am confuse with the scenario, you said that you used grid.Refresh but you also said you are using RefreshAll, could I know which one that you used? Also is it works using Refresh or RefreshAll?

One more thing if it is possible simple sample will be very helpfull for me to provide you with the solution.

Posted: August 31, 2009 10:10 PM

Hi,

Thanks for the feedback. I have informed this to our community developer and they will fix it.

Thanks.

Best Regards,

Gordon Tumewu

Posted: August 31, 2009 10:02 PM

Hi,

The release of 2009 R1 SP1 will be on this week, we dont have spesific date but surely we will releasee it this week. For the list of bug that have been resolved will be located in the Release Notes of the installer or you can find it later in http://support.intersoftpt.com.

Best Regards,

Gordon Tumewu

Posted: August 31, 2009 6:10 AM

Hi,

I am sorry for the late response, in the method that you used did you change any style of WebGrid? Or you only do Refresh for the grid? Also did you used Refresh or RefreshAll?

Best Regards,

Gordon Tumewu

Posted: August 31, 2009 5:19 AM

Hi Vince,

I am really sorry but for now we dont have API to hide the column from client side. We have workaround for this but it only works in IE. You can use the following code:

 

function Button1_onclick()
        {
            var grid = ISGetObject("WebGrid1");
            HideColumn(grid.RootTable.Columns.GetNamedItem("ContactName").Position);
        }

        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';
        }

Once again this only works for IE.

Best Regards,

Gordon Tumewu

Posted: August 31, 2009 4:09 AM

Hi Koby,

Could I know the code that you used to hide the column?

Best Regards,

Gordon Tumewu

Hi,

Actually it's default behaviour in HTML, it does not recognize tab character and the reported behavior is the default WebGrid behavior> You can try to type "Intersoft    Solutions" in HTML and you will see that it will be trim to "Intersoft Solutions".

Or you can use "Intersoft   Solutions" and set

TreatMarkupAsLiteralText="true"

TreatMarkupAsLiteralText="true"

TreatMarkupAsLiteralText="true"

in WebGridColumn property.

Best Regards,

Gordon Tumewu

Posted: August 31, 2009 3:40 AM

Hi Eric,

Try to set DataKeyField in the grid. You can set it in PrepareDataBinding event.

 

Best Regards,

Gordon Tumewu

Hi Zahid,

I am really sorry but its the default behaviour of WebGrid if we select a row the focus will be on first cell.

If you want you can use AutoFit columns in the WebGrid it will make all the column fit in the WeBgrid without horizontal scrollbar.

Best Regards,

Gordon Tumewu

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