jahlxx Posted October 9, 2016 Share Posted October 9, 2016 Hi all. Is possible to have fixed columns in unidbgrids? And have a cell that a button? I can't see this in samples. Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 9, 2016 Share Posted October 9, 2016 Is possible to have fixed columns in unidbgrids? ...\FMSoft\Framework\uniGUI\Demos\Desktop\GridColumnLocking ...\FMSoft\Framework\uniGUI\Demos\Desktop\GridColumnLocking_HeaderGrouping Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 9, 2016 Share Posted October 9, 2016 And have a cell that a button? I can't see this in samples. You can search on the forum: For example: http://forums.unigui.com/index.php?/topic/4974-button-like-uniimage-in-unidbgrid-column/ http://forums.unigui.com/index.php?/topic/4417-dbgrid-action-columns-at-design-time/ ... Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 10, 2016 Author Share Posted October 10, 2016 Hi. I can't reproduce the button in the grid. I'll keep trying later, when I have more time. For now, I'll color the cell in different color, to simulate the button. But I need 2 things: 1.- How can I change the cursor for a column in a dbgrid? 2.- When the column colored to simulate a button, has the focus, the color changes to the standard color of the grid. Can I deactivate this behaviour? And for the samples of locked columns: ...\FMSoft\Framework\uniGUI\Demos\Desktop\GridColumnLocking, not works when set the property locked in run-time. I've modified the demo, and checked it. Or maybe I'm forgetting something, Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2016 Share Posted October 10, 2016 1.- How can I change the cursor for a column in a dbgrid? Hi, For now can you try this approach?!: http://forums.unigui.com/index.php?/topic/7168-changing-cursor-of-a-column-in-a-unidbgrid/&do=findComment&comment=36515 Best regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 10, 2016 Share Posted October 10, 2016 I can't reproduce the button in the grid. I'll keep trying later, when I have more time. For example, you can try to do like this: 1. Add empty column. 2. UniDBGrid -> ClientEvents -> ExtEvents -> function reconfigure: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { // 2 - yourBtnColumn indx columns[2].width = 68; columns[2].renderer = function(val, meta, rec) { // generate unique id for an element var id = Ext.id(); Ext.defer(function() { Ext.widget('button', { renderTo: id, text: 'Action...', scale: 'small', handler: function() { Ext.Msg.alert("Hello World") } }); }, 50); return Ext.String.format('<div id="{0}"></div>', id); } } Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 10, 2016 Author Share Posted October 10, 2016 Ok. Thanks. Is better option, but change the height of the rows, and is extrange. Clicking the button, the screen blinks. Backing to change the color of the cell, right not is better solution for me, if I solve the issue of the color changing when focus on that "special cell". What about the locked columns? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 11, 2016 Author Share Posted October 11, 2016 I've been making tests, and locked columns are ignored when set the property in run time. Any idea? Thanks. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 11, 2016 Administrators Share Posted October 11, 2016 Locked columns can not be changed after grid is displayed. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 11, 2016 Author Share Posted October 11, 2016 any workaround? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2016 Share Posted October 12, 2016 any workaround? Hi, We will try.. Best regards. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 12, 2016 Author Share Posted October 12, 2016 Ok. I'll wait. Right now, I can create the columns at design time (I don't like, but at this moment, I don't have other solution). If I do this, in this way, the solution offered in http://forums.unigui.com/index.php?/topic/6561-tunidbgrid-scroll/?p=33396don't work. Any idea? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 14, 2016 Share Posted October 14, 2016 Right now, I can create the columns at design time (I don't like, but at this moment, I don't have other solution). If I do this, in this way, the solution offered in http://forums.unigui.com/index.php?/topic/6561-tunidbgrid-scroll/?p=33396don't work. Any idea? Hi, Have you use a lockable grid? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 17, 2016 Author Share Posted October 17, 2016 lockable grid? can you clarify? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2016 Share Posted October 17, 2016 Hi, lockable grid? can you clarify? I mean grid like in this example: ..\FMSoft\Framework\uniGUI\Demos\Desktop\GridColumnLocking Quote Link to comment Share on other sites More sharing options...
jahlxx Posted October 18, 2016 Author Share Posted October 18, 2016 I use, grid like the sample. But everything in that sample are at design time, not at run-time. Thanks. Quote Link to comment Share on other sites More sharing options...
Kamyar Posted August 22, 2019 Share Posted August 22, 2019 How we can move focus to a specific column in dbgrid like that SetActiveColumn? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 22, 2019 Share Posted August 22, 2019 8 minutes ago, Kamyar said: How we can move focus to a specific column in dbgrid like that SetActiveColumn? Hello, if you are not using the RowSelect model, use CurrCol property for this: UniDBGrid1.CurrCol := 3; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 22, 2019 Share Posted August 22, 2019 And please specify which edition and build of UniGUI are you using? Thank you. Quote Link to comment Share on other sites More sharing options...
Kamyar Posted August 22, 2019 Share Posted August 22, 2019 thank you... it work but dont scroll the page in browser have you any idia for refreshing the page? Quote Link to comment Share on other sites More sharing options...
Kamyar Posted August 22, 2019 Share Posted August 22, 2019 i find unidbdrid.refresh thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 22, 2019 Share Posted August 22, 2019 42 minutes ago, Kamyar said: How we can move focus to a specific column in dbgrid like that SetActiveColumn? 31 minutes ago, Sherzod said: And please specify which edition and build of UniGUI are you using? ? Quote Link to comment Share on other sites More sharing options...
Kamyar Posted August 22, 2019 Share Posted August 22, 2019 1.90.0.1501 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 22, 2019 Share Posted August 22, 2019 Are you using a trial edition? Quote Link to comment Share on other sites More sharing options...
Kamyar Posted August 22, 2019 Share Posted August 22, 2019 No 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.