Enhancements for Blazor Code Generator

1) Add Blazor Code Generator to list of controls above when posting new thread

2) Adding a grid control with the code generator works, but needs the following changes:
    2a.  Selecting the primary key does not translate to the grid unless you also select the primary key column.  Normally you don't want the PK to be visible, so either assign the PK field to the grid itself, or ensure that the PK column gets added, but not visible.

    2b. When specifying Dialog as the Editing mode, the code generator does not actually generate a Template.

 <Template>
            @{
                var issue = (context as Issue);
            }
            <div>
                <div class="form-row">
                    <div class="form-group col-md-12">
                        <SfTextBox ID="IssueSubject" @bind-Value="@issue.IssueSubject" FloatLabelType="FloatLabelType.Always"                          Placeholder="Subject">          </SfTextBox>
                    </div>           
                </div>
                   </div>
                <div class="form-row">
                    <div class="form-group col-md-12">
                          next control goes here
                    </div>
                </div>
            </div>
        </Template>


    2c.  The code generator does not account for the display of foreign keys properly.  In order to display values properly, this has to happen to the column definition:

        <GridColumn ForeignKeyField="ProjectId"
                    ForeignKeyValue="ProjectName"
                    DataSource="@ProjectsList"
                    Field=@nameof(Issue.ProjectId) HeaderText="Project" Width="100"></GridColumn>
// here you could suggest to the developer to add a data source for "ProjectsList" if you can't generate this code block.

2d. The use of "ForeignKeyValue" suggests that we are referring to the actual FK value, and not the description.  The reference should be "ForeignKeyDescription" or "ForeignKeyText".

Cheers,

Miles




    

4 Replies

AD Abishake Dakshinamoorthy Syncfusion Team June 9, 2021 12:50 PM UTC

Hi Miles Gibson, 
  
  
Thank you for contacting Syncfusion support and reporting issues. 
  
  
Query: Add Blazor Code Generator to list of controls above when posting new thread 
  
Response: 
  
We have multiple Visual Studio extension for each platform. So, we couldn’t list out all the extension in controls list. As of now, we have platform as “Others” for Extensions. We will introduce the platform as Others and control as Extensions in Forums like support. Please use this platform as Others until we implement. We logged this as a feature request and implemented by 16th July 2021. You can track the status from below link. 

  
 
Query: Selecting the primary key does not translate to the grid unless you also select the primary key column.  Normally you don't want the PK to be visible, so either assign the PK field to the grid itself, or ensure that the PK column gets added, but not visible. 
  
Response: 
  
We have analyzed your query and we understand that you want to hide the PrimaryKey column by default when Generated using the Code Generator. But we afraid this might not be the case of all. Some might require the PrimaryKey column to be displayed. The primary key column visibility decision is not specific to one user and it is based on their application needs. So, we have not hidden the PrimaryKey column by default and user can achieve this requirement on their own once the Grid code were generated.   
  

So, we request you to achieve your requirement using Visible property of GridColumn. Refer our UG documentation for your reference  
  

  
 
Query: The use of "ForeignKeyValue" suggests that we are referring to the actual FK value, and not the description.  The reference should be "ForeignKeyDescription" or "ForeignKeyText". 
  
Response: 


Thanks for your suggestion. While designing the Grid component, we have finalized the ForeignKeyValue property as one to match the foreign value in Column table. Hence, we are not able to modify the ForiegnKey property. And modify this property will cause breaking changes for existing user.  
  

So, we request you to use ForeignKeyValue property of GridForeignColumn to achieve your requirement. 
  
 
For other queries, we logged this as a feature request. You can track the status from below link. 
  

  



Regards, 
Abishake Dakshinamoorthy 



KG Kalirajan Ganesan Syncfusion Team July 16, 2021 11:21 AM UTC

Hi Miles Gibson,

 
Query 1: Add Blazor Code Generator to list of controls above when posting new thread  
   
Response: Currently we are working on this feature will complete and let you know on or before July 30, 2021. 
 
Query 2.b:  When specifying Dialog as the Editing mode, the code generator does not actually generate a Template  
 
Query 2.c: The code generator does not account for the display of foreign keys properly.  In order to display values properly, this has to happen to the column definition 
 
  
Response: We will include this feature in upcoming Essential Studio 2021 Volume 3 release. 

Thanks,
Kalirajan Ganesan



MP Manikandan Pandian Syncfusion Team August 3, 2021 06:42 AM UTC

Hi Miles Gibson,

Sorry for the delay.

We are currently working on this feature with high priority and will update you on or before August 18, 2021.

Please let us know if you have any concerns.


Regards,
Manikandan Pandian.
 



MP Manikandan Pandian Syncfusion Team August 13, 2021 12:28 PM UTC

Hi Miles,

We have provided the option to expose the controls (Extension, General & Website)
in Others platform for forum creation
and published to production.

https://www.syncfusion.com/forums/newthread

Please let us know if you have any concerns.


Regards,
Manikandan Pandian.


Loader.
Up arrow icon