User Profile & Activity

Xedem Member
Page
of 12
 Two things; First, contentElem.clientHeight and contentElem.scrollHeight are both zero. Hence am not able to do the script you written above. Second, the solution you send is not the right way, as Refreshall means doing an asynchronous postbacks on every interval.
However for the time being am ok to do the script as a temporary solution.However i dont know wots happening with clientHeight and all. Am getting the object contentElem but those properties are zeroes.
Please reply ASAP.

Ok. Do one thing run my sample with grid.HidePadColumn=true. There you would find a 5px space in firefox. And in IE u wont find any space, but seems to be the end thickened a bit. I am using the same testing environment of yours. Please reply ASAP.

Posted: February 18, 2010 12:50 AM

With firefox the event lostfocus stops working after one checkbox is clicked. Means on the first click, in firefox, the lostfocus event works. When i click for the second time on any row, the event is not called at all. Now about your question:-

1.Do you use checkboxes to mark the row?  I didnt get your question correctly. With multiselect, the checkbox is coming default and it is the checkbox items which are shown as each row.

By the way i checked your design code, the only difference between mine and yours is that am using bound=false

and no other changes and your code also not working here in my solution.

Posted: February 18, 2010 12:10 AM

Thanks for the solution. It worked.

Well, as i said with firefox, the padding space is double that of IE. Hence HodePad method will do it fine with IE while half the space remain with Firefox. 

Now about the validation, how would i exactly validate the conditions. How would i know that there is a scrollbar shown in webgrid, so that now i dont have to use the option hidePadColumn, and when scrollbar is not appearing in webgrid, to use the option. I dont think i could fix the records size as the application runs from a minum 1024 resolution to a higher wide screen resolution.


To satisfy those  2 conditions, i exactly need to know when the records are more than the height of webgrid(concidering the resolution), meaning the scrollbar is appeared on webgrid. How would i do that?



Here am pasting the screenshots i ve got from running the sample(the same multiline sample we ve used so far). The screenshots are there both from IE and Firefox.See the padding space(or say, the scrollbar reserve space) in both browser, Its double in Firefox compared to IE. Hence when the scroll comes it perfectly takes the space available in IE, while in firefox, after the scrollbar is occupied, some space is seem to be left. And this design problem is seem to be occuring just after the version is updated to  7200.401. The issue happens even in all webgrids including multline and non multiline. Also we had a previous released product version done in Webgrid 6.0. Which was optimised for IE. Hence there we didnt use any autofitcolumns and thereby no extra space at the end of the webgrid. But now to make it work for firefox, am using autofitcolumns which makes the webgrids to show the extra space at the end. In short the question is there any way to avoid the reserve space for scrollbar(cause it looks awful) ?

i was sick, so couldnt check the thread. I will be sending the modified sample shortly. And one more doubt; Is the script WebUIValidation.js is currently using? I couldnt find such a script file included in the hotfix.

1.In fact problems are more...with the current changes all Grids are having an extra reserved for the scrollbar. As we had an earlier released version which was optimised for IE, this wont be accepted. Thats where, i think the hidePadColumn comes, but unfortunately which means which would hide 4 or 5 words behind the scrollbar.

2. Now could you explain how i could apply custom style to the webgrid header, so that i could make the Grid bothe multiline and set the height as default 19px  as well.



Hi,

Good but not fine...See now there is some space between the scrollbar and last column ...And this happens only in Firefox...The solution is perfect with IE. Now there is a common problem too..RowHeightDefault="-1" makes the header height too small in both browsers. This is a must property to make multiline possible in IE. So what should I do?

OK...

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