artem_niko Posted February 24, 2020 Share Posted February 24, 2020 Hello! At this moment I'm adding new record in database using this code: (Sender as TUniDBGrid).DataSource.DataSet.Insert; New empty string in UniDBGrid showing. But, I want that also will be showing and a RowEditor, as that him show when I make double click in UniDBGrid in row. Like that: Need show RowEditor when adding new record in UniButtonOnClick. How? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 24, 2020 Share Posted February 24, 2020 2 hours ago, Артем said: Need show RowEditor when adding new record in UniButtonOnClick. Hello, The editor should appear... Quote Link to comment Share on other sites More sharing options...
artem_niko Posted February 24, 2020 Author Share Posted February 24, 2020 2 minutes ago, Sherzod said: Hello, The editor should appear... Well, if it would appear every time as expected, then this topic would not be. Sometimes it appears, and sometimes not, and in this case just an empty line is added (where the cursor also does not get up). But I want the line to be added, and the cursor to appear in it and RowEditor also appear immediately. In other words - you need to emulate when you click on the UniButton event as UniDBGrid.OnBodyDblClick. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 24, 2020 Share Posted February 24, 2020 2 minutes ago, Артем said: Sometimes it appears, and sometimes not Even so? I couldn't reproduce... Quote Link to comment Share on other sites More sharing options...
ygerdel Posted March 25, 2020 Share Posted March 25, 2020 Hi, I currently have a problem and would like to know if you have any idea how to solve it. I have a code to insert a record in the grid with the insert key. The problem is that when the field is type float, time or date and it is not an index of the table and it also has an editor assigned to the column, it allows inserting the record only once, then no more. I have a code to search the indexes of the table and I have a code that assigns editors to the fields type float, time and date. Attached is a test case in case you want to see it and give me a hand. GridEditor_Ads.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 25, 2020 Share Posted March 25, 2020 38 minutes ago, ygerdel said: GridEditor_Ads.zip Hi, TAdsTable ? Quote Link to comment Share on other sites More sharing options...
ygerdel Posted March 25, 2020 Share Posted March 25, 2020 yes, i'm using advantage components Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 25, 2020 Share Posted March 25, 2020 Just now, ygerdel said: yes, i'm using advantage components Sorry, but I do not use... Quote Link to comment Share on other sites More sharing options...
ygerdel Posted March 25, 2020 Share Posted March 25, 2020 I'll try to reproduce it with clientdataset and I will write to you again. Quote Link to comment Share on other sites More sharing options...
ygerdel Posted April 1, 2020 Share Posted April 1, 2020 hi, I could already reproduce the problem in one of your demos and I describe it to you: 1.- When I double click on the 'salary' cell and activate the grid edition and select the insert key, I get an ajax error and it doesn't allow me to do anything else. I avoid this by writing the line before insert: UniDbGrid1.CancelEditing (True); UniDbGrid1.DataSource.DataSet.Insert; UniDbGrid1.CancelEditing (False); I don't know if it is the best solution. 2.- I need to assign the column editors at runtime. For example assigning the editor of the column 'Salary' a UniFormattedNumberEdit1 in the OnShow of the form. When I assign the editor at runtime it happens that: By double clicking on the cell 'salary' and activating the edition of the grid and selecting the insert key, it inserts a new row perfectly, then I cancel the insertion with the X of the navigator and I try to insert a row in the same way again and it doesn't allow it. For some reason it doesn't shoot the KeyDown event twice. I have been able to notice that this happens when I have a combination of placing some columns of the grid in read-only (What I need to do in my project) and at the same time assigning editors at runtime (Which I also need). Could you take a look at this? I have attached a test case where you can see everything I have described here. I hope you can give me some idea of how to solve it. GridEditor-TestCase.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 7, 2020 Share Posted April 7, 2020 On 4/1/2020 at 11:29 PM, ygerdel said: 1.- When I double click on the 'salary' cell and activate the grid edition and select the insert key, I get an ajax error and it doesn't allow me to do anything else. Hello, Sorry for the late responce. Can you show this with a gif, video file? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 7, 2020 Administrators Share Posted April 7, 2020 I was unable to reproduce this in the test case. Quote Link to comment Share on other sites More sharing options...
ygerdel Posted April 7, 2020 Share Posted April 7, 2020 Yes, I attached a video where you can see the effect described. You can also see that it allows me to insert a record only once (with the insert key), the second time it does not allow inserting. 897261766 - AnyDesk 2020-04-07 15-08-02.zip Quote Link to comment Share on other sites More sharing options...
ygerdel Posted May 18, 2020 Share Posted May 18, 2020 Hi, Do you have any news about this topic? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 18, 2020 Share Posted May 18, 2020 On 4/7/2020 at 11:26 PM, ygerdel said: Yes, I attached a video where you can see the effect described. You can also see that it allows me to insert a record only once (with the insert key), the second time it does not allow inserting. 897261766 - AnyDesk 2020-04-07 15-08-02.zip 32 minutes ago, ygerdel said: Do you have any news about this topic? Hello, Sorry, Can you make a test app? And please specify which build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
ygerdel Posted May 19, 2020 Share Posted May 19, 2020 Hello, I'm attaching a test case again. I am using the unigui version 1526. GridEditor-TestCase (2).zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 19, 2020 Share Posted May 19, 2020 Hello, Thank you for the testcase. We will check. Quote Link to comment Share on other sites More sharing options...
ygerdel Posted June 8, 2020 Share Posted June 8, 2020 Hi, Do you have any news about this topic? 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.