Ario.Paxaz Posted November 23, 2017 Posted November 23, 2017 Hi I change DefaultRowHeight in UniStringGrid ,but don't apply. I change DefaultColWidth , it changed. Best Regards. Quote
Sherzod Posted November 24, 2017 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
Ario.Paxaz Posted November 26, 2017 Author 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
Ario.Paxaz Posted November 26, 2017 Author 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
Sherzod Posted November 26, 2017 Posted November 26, 2017 Hi, Firstly, Correct syntax: setAttribute(name, value) Quote
Sherzod Posted November 26, 2017 Posted November 26, 2017 You can try to use like this for example: SGCal.JSInterface.JSCall('el.dom.setAttribute', ['height', '60px']); Quote
Ario.Paxaz Posted November 26, 2017 Author Posted November 26, 2017 Hi I do it in UniFormResize ,But don't applied. Best Regards. Quote
Sherzod Posted November 27, 2017 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
Ario.Paxaz Posted November 28, 2017 Author 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
Sherzod Posted November 28, 2017 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
Ario.Paxaz Posted November 28, 2017 Author Posted November 28, 2017 Hi Thank you very much. It work very nice. Best Regards. Quote
Ario.Paxaz Posted December 5, 2017 Author Posted December 5, 2017 Hi After Install 1426 version ,the cells height ,Back to the original state. Quote
Ario.Paxaz Posted December 5, 2017 Author Posted December 5, 2017 Hi I click for open the DateTimePicker,but opened on the left of the page. Best Regards. Quote
Sherzod Posted December 5, 2017 Posted December 5, 2017 Hi, Can you make a simple testcase again?! You can attach it here Quote
Ario.Paxaz Posted December 5, 2017 Author Posted December 5, 2017 Hi It is the last Test Case. http://uupload.ir/view/hgt4_unicalendar_persian.rar Best Regards. Quote
Ario.Paxaz Posted December 5, 2017 Author 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
Ario.Paxaz Posted December 5, 2017 Author Posted December 5, 2017 Hi I attach here. Best Regards. unicalendar_persian.rar Quote
mos Posted October 18, 2018 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
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.