Ario.Paxaz Posted November 23, 2017 Share Posted November 23, 2017 Hi I change DefaultRowHeight in UniStringGrid ,but don't apply. I change DefaultColWidth , it changed. Best Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 24, 2017 Share Posted November 24, 2017 Hi, Try this approach for now: http://forums.unigui.com/index.php?/topic/6974-how-to-change-height-and-width-of-a-stringrid/ Best regards, Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 26, 2017 Author Share Posted November 26, 2017 Hi I do it,but it fixed in size. How to I can change it by code.As when the parent form Maximized or changed size ,the cell height and width change. Best Regards. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 26, 2017 Author Share Posted November 26, 2017 Hi I set the UniStringGrid name=SGCal And write below code in UniFormResize UniSession.AddJS('document.getElementById("SGCal").setAttribute = "height: 60px";'); But Error Showed. Best Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 26, 2017 Share Posted November 26, 2017 Hi, Firstly, Correct syntax: setAttribute(name, value) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 26, 2017 Share Posted November 26, 2017 You can try to use like this for example: SGCal.JSInterface.JSCall('el.dom.setAttribute', ['height', '60px']); Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 26, 2017 Author Share Posted November 26, 2017 Hi I do it in UniFormResize ,But don't applied. Best Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2017 Share Posted November 27, 2017 Hi, Please make a simple testcase for this, and please describe once again what you want in more detail Best regards, Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 28, 2017 Author Share Posted November 28, 2017 Hi I want Create UniCalendarPanel for Jalali(Persian) Calendar. And now ,I want set cells size in UniStringGrid in the testcase. I want It is similar to UniCalendarPanel ,and when the parent form of UniStringGrid resized ,the cell also resize . http://uupload.ir/view/nouu_unicalendar_persian.rar Best Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2017 Share Posted November 28, 2017 Ok, I will check it Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2017 Share Posted November 28, 2017 Hi, Maybe something like this: 1. ... CustomCSS: .SGCal .x-grid-table { height: 100%; } .SGCal .x-grid-cell-inner{ background-color: transparent !important; } 2. SGCal -> ForceFit = True 3. SGCal -> ... -> beforeInit fn: function beforeInit(sender, config) { config.cls = "SGCal"; } Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted November 28, 2017 Author Share Posted November 28, 2017 Hi Thank you very much. It work very nice. Best Regards. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted December 5, 2017 Author Share Posted December 5, 2017 Hi After Install 1426 version ,the cells height ,Back to the original state. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted December 5, 2017 Author Share Posted December 5, 2017 Hi I click for open the DateTimePicker,but opened on the left of the page. Best Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 5, 2017 Share Posted December 5, 2017 Hi, Can you make a simple testcase again?! You can attach it here Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted December 5, 2017 Author Share Posted December 5, 2017 Hi It is the last Test Case. http://uupload.ir/view/hgt4_unicalendar_persian.rar Best Regards. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted December 5, 2017 Author Share Posted December 5, 2017 Hi I attach another testcase that contain EventEditor.pas that show DateTimePicker,on the left of the page. http://uupload.ir/view/3sbt_unicalendar_persian.rar Best Regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 5, 2017 Share Posted December 5, 2017 Please can you attach here? Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted December 5, 2017 Author Share Posted December 5, 2017 Hi I attach here. Best Regards. unicalendar_persian.rar Quote Link to comment Share on other sites More sharing options...
mos Posted October 18, 2018 Share Posted October 18, 2018 Hi A.Soltani, " After Install 1426 version ,the cells height ,Back to the original state. " Did you get a solution for this as I am trying to get my cells to autosize as well? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.