Grid edit form as component

4 Answers 112 Views
Form Grid
Djordje
Top achievements
Rank 1
Iron
Iron
Djordje asked on 13 Dec 2023, 03:26 PM

i would like to make separate control telerik form to update the grid. How to associate this new control with a grid?

regards,

Djole

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 Dec 2023, 10:13 AM

Hi Djole,

You have two options:

  • Use the built-in Grid edit command and the built-in Grid popup edit container. In this case, see Grid popup form template.
  • Use a completely custom approach that does not use anything built-in from the Grid. In this case, see Grid editing in a custom form. You can still render the custom form in a Window if you like.

As you see, in both cases you won't be using the built-in Grid events like OnCreate and OnUpdate.

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
0
Djordje
Top achievements
Rank 1
Iron
Iron
answered on 15 Dec 2023, 02:30 PM
Found an example at https://github.com/telerik/blazor-ui/tree/master/grid/custom-popup-form
It is very outdated from the year 2020 built with Telerik 3.x. Many of the features are now different and need a lot of polish, even though I did not make it work. Documentation on site is less than sufficient so it looks that this very needed option for any data processing application is pretty neglected.
Dimo
Telerik team
commented on 15 Dec 2023, 03:26 PM

The mentioned app requires three things to run with a newer .NET version and the latest Telerik components:

We have literally thousands of runnable samples in our demos, documentation, knowledge base, and GitHub blazor-ui repo. The examples in GitHub have lower priority in terms of maintenance, except the sample apps that we showcase on the Demos home page with thumbnails.

I understand that an outdated example may look bad, but the primary value of the GitHub apps is to show an idea for achieving a custom scenario. At the same time, we acknowledge that the outdated samples pose a maintenance burden and inconvenience for the customers, so we recently started migrating them to the Knowledge Base.

In addition, the Custom Popup Form sample in GitHub is practically the same as the Grid Editing in a Custom Form online demo, with the addition of a Window. The GitHub sample was created before a Grid popup form template existed. The latter is our primary recommendation for your requirement (unless there is a specific reason not to use this approach).

Finally, if you have specific feedback or suggestions for the content on our documentation site, do let us know.

0
Djordje
Top achievements
Rank 1
Iron
Iron
answered on 15 Dec 2023, 10:41 PM
Dimo, thank you for your early reply.
I have to be completely honest. I have been programming for 30+ years, my first programming language was C. I have been in this business for a long time and run a small but relatively successful company that decided this summer to change its development environment. For several reasons, the choice is Blazor and .NET. My task is to test the existing, available tools and to make a choice with which the company will be guided in the following projects. I tested Syncfusion first, and the tool turned out to be very usable. Considering that during the free and unlimited evaluation of the Syncfusion library I also had to adapt to Blazor (before that we hardly used C#), it took a little more time. We were turned away from this by the very high price with a lot of unnecessary features in case we go beyond the limits they have listed for free use.
Another tool that I not only evaluated but also bought was Radzen Blazor Studio. A very interesting tool that tries to provide some sort of RAD environment. Considering that before that we used a very powerful but unfortunately outdated tool "Clarion", it can be said that they are still far from full capacity, but the thing still works. And this library can get a very high usability rating and is free in itself.
Then, I looked for something even better  According to comments on the Internet, your library is at the very top in terms of the number of users. It seems very polished and I have known the company for more than a decade. That's why I tried using your trial library first. Probably due to my clumsiness and your complicated way of accessing the library, I didn't manage to test it, but guided by sound logic, I thought, if it was possible with Syncfusion and Radzen, then it's certainly not a problem with the Telerik library either, so we bought license.
That's where I made a mistake. I just don't see how I can separate the table component from the form component. And unfortunately I have to admit that at this moment Radzen is winning by a large margin. Not as full of features as Telerik is but it works with no flows. Telerik is a bit outdated as I wrote in the previous message, neglected.
As I receive mail with notification that currently your development is on hold and you are asking for more information, this text is all about that. So, as I understand this business, first it is easy to use, second is reliable functionality, third fast in execution and lastly good design. 
There is a lot more to say but for now it is enough.

Dimo
Telerik team
commented on 18 Dec 2023, 09:57 AM

Thanks for the detailed insights, Djordje, I appreciate it.

Based on...

>> I just don't see how I can separate the table component from the form component

... I wonder if there is any misunderstanding between us. The previously provided examples should show exactly that. So, can you please explain what exactly are you trying to do and how the following examples don't fit your purpose?

Djordje
Top achievements
Rank 1
Iron
Iron
commented on 18 Dec 2023, 03:12 PM

Simply Dimo, I made all changes in the example previously mentioned and it works but not the page with this crucial example for me. So no matter what I tried I did not succeed to activate this option.
If it works as you stated then your documentation is no good or I am not capable of understanding it.
Dimo
Telerik team
commented on 18 Dec 2023, 04:48 PM

@Djordje - if possible, please send me a runnable page or a simple app that shows what you have tried, together with an outline what is not working as expected. I will readily see what's going on.
0
Djordje
Top achievements
Rank 1
Iron
Iron
answered on 19 Dec 2023, 12:00 PM
 Dimo I am sending you Telerik's example of custom popup form. I managed to make it work in .NET 8 but the custom popup form does not show the popup form. Another grid with default pop works with no issue. I remove the bin and obj folder from .zip to avoid antivirus problems. 

Dimo
Telerik team
commented on 20 Dec 2023, 03:49 PM

Hi Djordje,

It looks like you want to use .NET 8. Migration from older .NET versions to 8 requires some steps, and one of the important ones is interactivity. If user actions on a given page have no effect, then chances are that interactivity is not enabled. This applies to all Razor components in general.

I am sending an attached .NET 8 app, which works as expected.

ma
Top achievements
Rank 1
commented on 20 Dec 2023, 07:24 PM

Indid it works. You made substantial changes and now it works.

Thank you Dimo for your commitment to solve problems.

 

Djordje

Tags
Form Grid
Asked by
Djordje
Top achievements
Rank 1
Iron
Iron
Answers by
Dimo
Telerik team
Djordje
Top achievements
Rank 1
Iron
Iron
Share this question
or