jahlxx Posted July 18, 2016 Share Posted July 18, 2016 hi. how to direct input data in a unidbgrid. the grid is not radonly, th dataset is not readonly, the columns are not readonly, but I can't direct input data in the grid. why? thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 18, 2016 Share Posted July 18, 2016 the grid is not radonly, th dataset is not readonly, the columns are not readonly, but I can't direct input data in the grid.why? Hi, Sorry, what do you mean? Best regards. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted July 18, 2016 Author Share Posted July 18, 2016 hi. open insert, edit and delete data directly typing in the dbgrid. if vcl, with dbgrid readonly false, and dataset readonly false, and columns readonly false, I can directly modify a cell, insert a row, and so on. but with unidbgrids, I can't find the way to do that. Quote Link to comment Share on other sites More sharing options...
Ulugbek Posted July 18, 2016 Share Posted July 18, 2016 check cell editor examples Quote Link to comment Share on other sites More sharing options...
jahlxx Posted July 18, 2016 Author Share Posted July 18, 2016 I've seen, but is not the same Quote Link to comment Share on other sites More sharing options...
jahlxx Posted September 13, 2017 Author Share Posted September 13, 2017 Hi. I'm back with this. I still don't know how to do this. I have this: procedure Tfalbaranesvimp.dbimportKeyPress(Sender: TObject; var Key: Char); var CurrCol: Integer; begin currcol := lib.gridcol(dbimport); if currcol = 14 then begin if not (key in ['0'..'9','.','-']) then begin Key := #0; end else begin try qimp.edit; qimp.fieldbyname('qty').asstring := qimp.fieldbyname('qty').asstring + key; except end; end end; end; I have a numeric column in a grid, and whay press any valid key, want to put in edit mode and start writing, but I can't. some help please. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 13, 2017 Share Posted September 13, 2017 Hi, Can you analyze this post ?: http://forums.unigui.com/index.php?/topic/3483-a-microsoft-excel-grid-plugin-for-ext-js-4 Best regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 13, 2017 Share Posted September 13, 2017 Also your post: http://forums.unigui.com/index.php?/topic/6869-unidbgrid/ Quote Link to comment Share on other sites More sharing options...
jahlxx Posted September 14, 2017 Author Share Posted September 14, 2017 Also your post: http://forums.unigui.com/index.php?/topic/6869-unidbgrid/ Yes, I've reviewed my post, but is not the same. about this: http://forums.unigui...in-for-ext-js-4, I read it before making this new post, and I'm trying to do, but I can't. pressing any key over not readonly column/field, does nothing. perhaps I'm missing something. Have you any sample? Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 14, 2017 Share Posted September 14, 2017 Hi, Ok, I will check and let you know Quote Link to comment Share on other sites More sharing options...
jahlxx Posted September 14, 2017 Author Share Posted September 14, 2017 Ok. Thanks. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 16, 2017 Administrators Share Posted September 16, 2017 Hi. I'm back with this. I still don't know how to do this. I have this: procedure Tfalbaranesvimp.dbimportKeyPress(Sender: TObject; var Key: Char); var CurrCol: Integer; begin currcol := lib.gridcol(dbimport); if currcol = 14 then begin if not (key in ['0'..'9','.','-']) then begin Key := #0; end else begin try qimp.edit; qimp.fieldbyname('qty').asstring := qimp.fieldbyname('qty').asstring + key; except end; end end; end; I have a numeric column in a grid, and whay press any valid key, want to put in edit mode and start writing, but I can't. some help please. A big NO here. This kind of programming is something that you must AVOID in uniGUI. Why aren't you simply using a column editor? There are several examples under demo folder. Simply attach a numeric editor to your column. There is no need to monitor keys on server side. It must be totally avoided. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted September 18, 2017 Author Share Posted September 18, 2017 yes, it's perfect. but is not direct input. need to press <ENTER> to put the grid in edit mode, and then can type. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 18, 2017 Administrators Share Posted September 18, 2017 yes, it's perfect. but is not direct input. need to press to put the grid in edit mode, and then can type. How do you want it to behave? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted September 18, 2017 Author Share Posted September 18, 2017 direct input, with no need to press enter key to edit. Enviado desde mi SM-A500FU mediante Tapatalk Quote Link to comment Share on other sites More sharing options...
ahmed.atayib Posted September 21, 2017 Share Posted September 21, 2017 direct input, with no need to press enter key to edit. Enviado desde mi SM-A500FU mediante Tapatalk and direct insert for new record - no need for "Add button" in the navigator . it should behave like vcl dbgrid that when reach last column and press enter or tab or in any record when pressing down arrow the new record should be inserted. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted September 28, 2017 Author Share Posted September 28, 2017 How do you want it to behave? hi. any answer about this? thanks. Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted May 14, 2018 Share Posted May 14, 2018 Hi, I have the same problem on editing..... If I must convert desktop applications I need that UniDbgrid must be edited as Dbgrid, Append, navigate, and editing must be the same.I need immediate editing pressing the first char in the cell, and I must navigate with data refreshed on editchanged event. I'm locked in convert my Delphi application because my customers don't accept that they must press Enter for start edit; they want to edit typing data value in the cell and move to next cell with enter. There are progress on this? Thanks. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 14, 2018 Author Share Posted May 14, 2018 Hi. I do this, and works for me. Sure must be a better way to do, but ... in onkeydown of dbgrid: currcol := xdbgrid((sender as tunidbgrid)).CurrCol; if (key >= 96) and (key <= 105) then key := key - 48; if ((key >= 48) and (key <= 57)) or // 0 .. 9 ((key >= 65) and (key <= 90)) // A .. Z then begin if dbgrid.datasource.dataset.state <> dsedit then begin dbgrid.datasource.dataset.edit; dbgrid.datasource.dataset.fields[currcol].asstring := chr(key); end; end; Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted May 14, 2018 Share Posted May 14, 2018 HI, Thanks, i will try..... But Farshad don't like key monitoring on server :-) Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 14, 2018 Author Share Posted May 14, 2018 I know. But customers are customers. Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted May 15, 2018 Share Posted May 15, 2018 I'm perfectly agree with you. The problem is that Unigui is really powerful, but some LITTLE things don't permits me to present new project in "web" manner because customers are used to working with speed and ergonomics in our desktop applications, and I cannot present the same features on web... (we use Devexpress, Infopower, etc... so grids are very important and customers do not want to lose speed).Farshad should introduce some little improvements and features in Unidbrid, so we can have direct input, editing cell and columns events and other things at CLIENT level.... (like my ancient request of partial fetching without paging....) All this starting from the assumption that UNIGUI is fantastic. 1 Quote Link to comment Share on other sites More sharing options...
Volk65 Posted May 15, 2018 Share Posted May 15, 2018 Farshad should introduce some little improvements and features in Unidbrid, so we can have direct input, editing cell and columns events and other things at CLIENT level.... (like my ancient request of partial fetching without paging....) +1 It is really necessary functionality. Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted June 14, 2018 Share Posted June 14, 2018 Any news on this feature?I need to start typing in cell without press Enter, and move focus to next column when press Enter after finish editing... Quote Link to comment Share on other sites More sharing options...
david_navigator Posted June 14, 2018 Share Posted June 14, 2018 Couldn't agree more. I really miss some of the features in DexExpress grids. 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.