iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
hey guys,
i need to set the height of the IS Grid in java script. i dont want to use autoheight property not specify height explicitly. on load of grid i want to set the height. i used following code. but not working. can any one suggest me the solution.
var grid=ISGetObject(gridId);
grid.Height="600px";
It's very urgent. please tell me how can i achieve this.
thanks in advance
Hi Suhas,
In order to set WebGrid's height from javascript you can use the following snippet:
function WebGrid1_OnInitialize(controlId) { var WebGrid1 = ISGetObject(controlId); WebGrid1.SetHeight(250); return true; }
Hope this could helps. Please let us know if you have another questions.
Regards,
Julia
thanks julia. Actually i don't want to use that in Initialize event.
problem is, initially some height is set say 300 and their are 4 items in grid. now if i double click on some item which has say 5 items, now size has increased and unfortunately im loading the grid into iframe and i cant provide scroll bar for that. so i need to decide height based on number of chield items.
actually the footer bar is disappearing. please see the attachment
I'm apologize that I'm forgot to mention that you could use the snippet "grid.SetHeight()" in any client-side event.
And also could you attach me a simple sample that could replicate this 'disappearing footer' issue? With the step to reproduce the issue. Your sample will be very helpful for me to investigate it further, since I could not replicate the issue.
Thank you.
Hey sorry. Actually ur code worked. i put it in page load event. i was using the method soon after adding the elements to grid. and in some other part of code for which i don't have access, they were modifing the height. so used the get early mentioned problem.
Thanks a lot yaar. ur idea made my work easy..
Your welcome. I'm glad to hear it could help your work. Please let us know if you have another questions.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname