-
Notifications
You must be signed in to change notification settings - Fork 33
documentation(929925):Revamped dialog and how to topic #3747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8157ec0
documentation(929925):Revamped dialog and how to topic
JamunaSundaramSF3699 dd62ce2
documentation(929925):Updated
JamunaSundaramSF3699 4d88e2c
documentation(929925):Updated
JamunaSundaramSF3699 6ad815b
documentation(929925):Updated
JamunaSundaramSF3699 e555fd0
documentation(929925):Updated
JamunaSundaramSF3699 2cbc392
documentation(929925):Updated
JamunaSundaramSF3699 9456319
documentation(929925):Updated
JamunaSundaramSF3699 02379b1
documentation(929925):Updated
JamunaSundaramSF3699 c5355d6
documentation(929925):Updated
JamunaSundaramSF3699 22462fc
Merge branch 'hotfix/hotfix-v28.1.33' into 929925-dialog
JamunaSundaramSF3699 be7dfec
documentation(929925):Updated
JamunaSundaramSF3699 107bf7f
Merge branch '929925-dialog' of https://github.com/syncfusion-content…
JamunaSundaramSF3699 bf06c00
documentation(929925):Updated
JamunaSundaramSF3699 09c2536
documentation(929925):Updated
JamunaSundaramSF3699 e0f3df3
Merge branch 'hotfix/hotfix-v28.1.33' into 929925-dialog
JamunaSundaramSF3699 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 5 additions & 6 deletions
11
ej2-asp-core-mvc/code-snippet/grid/edit/custombutton/custombutton.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
public IActionResult Index() | ||
{ | ||
var orders= OrderDetails.GetAllRecords(); | ||
ViewBag.DataSource = orders; | ||
return View(); | ||
} | ||
public IActionResult Index() | ||
{ | ||
ViewBag.DataSource = OrderDetails.GetAllRecords(); | ||
return View(); | ||
} |
56 changes: 37 additions & 19 deletions
56
ej2-asp-core-mvc/code-snippet/grid/edit/custombutton/razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,40 @@ | ||
@Html.EJS().Grid("DialogTemplateEdit").DataSource((IEnumerable<object>)ViewBag.DataSource).ActionComplete("actionComplete").Columns(col => | ||
{ | ||
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").ValidationRules(new { required = true }).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("CustomerID").HeaderText("Customer Name").Width("150").ValidationRules(new { required = true, minLength = 3 }).Add(); | ||
col.Field("ShipCountry").HeaderText("Ship Country").EditType("dropdownedit").Width("150").Add(); | ||
}).AllowPaging().PageSettings(page => page.PageCount(2)).EditSettings(edit => { edit.AllowAdding(true).AllowEditing(true).AllowDeleting(true).Mode(Syncfusion.EJ2.Grids.EditMode.Dialog); }).Toolbar(new List<string>() { "Add", "Edit", "Delete" }).Render() | ||
|
||
@Html.EJS().Grid("grid").DataSource((IEnumerable<object>)ViewBag.DataSource).Height("348px").Columns(col => | ||
{ | ||
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").ValidationRules(new { required = "true"}).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("CustomerID").HeaderText("Customer Name").Width("150").ValidationRules(new { required = "true" }).Add(); | ||
col.Field("Freight").HeaderText("Freight").Width("120").Format("C2").EditType("numericedit").ValidationRules(new { required = "true",min=1, max=1000 }).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("ShipName").HeaderText("Ship Name").Width("150").ValidationRules(new { required = "true" }).Add(); | ||
col.Field("ShipCountry").HeaderText("Ship Country").EditType("dropdownedit").ValidationRules(new { required = "true" }).Width("150").Add(); | ||
}).ActionComplete("actionComplete").EditSettings(edit => { edit.AllowAdding(true).AllowEditing(true).AllowDeleting(true).Mode(Syncfusion.EJ2.Grids.EditMode.Dialog); }).Toolbar(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" }).Render() | ||
<script> | ||
function actionComplete(args) { | ||
if (args.requestType === 'beginEdit' || args.requestType === 'add') { | ||
let newFooterButton = { | ||
buttonModel: { content: 'custom' }, | ||
click: onCustomButtonClick | ||
}; | ||
args.dialog.buttons.push(newFooterButton); | ||
args.dialog.refresh(); | ||
} | ||
function actionComplete(args) { | ||
var grid = document.getElementById('grid').ej2_instances[0]; | ||
if (args.requestType === 'beginEdit' || args.requestType === 'add') { | ||
args.dialog.buttons = [ | ||
{ | ||
buttonModel: { content: 'Discard', cssClass: 'e-primary custom-button-style' }, | ||
click: () => { | ||
grid.editModule.closeEdit(); | ||
} | ||
}, | ||
{ | ||
buttonModel: { content: 'Submit', cssClass: 'e-success custom-button-style' }, | ||
click: () => { | ||
grid.editModule.endEdit(); | ||
} | ||
} | ||
]; | ||
args.dialog.refresh(); | ||
} | ||
function onCustomButtonClick() { | ||
alert('Add/Edit dialog custom footer button clicked'); | ||
} | ||
</script> | ||
<style> | ||
.e-footer-content .e-btn.custom-button-style { | ||
border-radius: 4px; | ||
font-size: 15px; | ||
} | ||
</script> | ||
|
||
.e-footer-content .e-btn.e-success.custom-button-style { | ||
background: #a1c595; | ||
} | ||
</style> |
57 changes: 37 additions & 20 deletions
57
ej2-asp-core-mvc/code-snippet/grid/edit/custombutton/tagHelper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,42 @@ | ||
<ejs-grid id="Grid" dataSource="@ViewBag.DataSource" actionComplete="actionComplete" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" allowPaging="true"> | ||
<ejs-grid id="grid" dataSource="@ViewBag.DataSource" height="273px" toolbar="@(new List<string>() { "Add", "Edit", "Delete","Update","Cancel" })" actionComplete="actionComplete"> | ||
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog"></e-grid-editSettings> | ||
<e-grid-pagesettings pageCount="5"></e-grid-pagesettings> | ||
<e-grid-columns> | ||
<e-grid-column field="OrderID" headerText="Order ID" isPrimaryKey="true" validationRules="@(new { required=true})" textAlign="Right" width="120"></e-grid-column> | ||
<e-grid-column field="CustomerID" headerText="Customer Name" validationRules="@(new { required=true})" width="150"></e-grid-column> | ||
<e-grid-column field="ShipCountry" headerText="Ship Country" editType="dropdownedit" width="150"></e-grid-column> | ||
</e-grid-columns> | ||
<e-grid-columns> | ||
<e-grid-column field="OrderID" headerText="Order ID" validationRules="@(new { required=true})" isPrimaryKey="true" textAlign="Right" width="100"></e-grid-column> | ||
<e-grid-column field="CustomerID" headerText="Customer Name" validationRules="@(new { required=true})" type="string" width="120"></e-grid-column> | ||
<e-grid-column field="Freight" headerText="Freight" textAlign="Right" format="C2" validationRules="@(new { required=true, min=1,max=1000})" editType="numericedit" width="120"></e-grid-column> | ||
<e-grid-column field="ShipName" headerText="Ship Name" width="150" validationRules="@(new { required=true})"></e-grid-column> | ||
<e-grid-column field="ShipCountry" headerText="Ship Country" editType="dropdownedit" width="150" validationRules="@(new { required=true})"></e-grid-column> | ||
</e-grid-columns> | ||
</ejs-grid> | ||
|
||
<script> | ||
function actionComplete(args) { | ||
if (args.requestType === 'beginEdit' || args.requestType === 'add') { | ||
let newFooterButton = { | ||
buttonModel: { content: 'custom' }, | ||
click: onCustomButtonClick | ||
}; | ||
args.dialog.buttons.push(newFooterButton); | ||
args.dialog.refresh(); | ||
} | ||
} | ||
function onCustomButtonClick() { | ||
alert('Add/Edit dialog custom footer button clicked'); | ||
function actionComplete(args) { | ||
var grid = document.getElementById('grid').ej2_instances[0]; | ||
if (args.requestType === 'beginEdit' || args.requestType === 'add') { | ||
args.dialog.buttons = [ | ||
{ | ||
buttonModel: { content: 'Discard', cssClass: 'e-primary custom-button-style' }, | ||
click: () => { | ||
grid.editModule.closeEdit(); | ||
} | ||
}, | ||
{ | ||
buttonModel: { content: 'Submit', cssClass: 'e-success custom-button-style' }, | ||
click: () => { | ||
grid.editModule.endEdit(); | ||
} | ||
} | ||
]; | ||
args.dialog.refresh(); | ||
} | ||
} | ||
</script> | ||
<style> | ||
.e-footer-content .e-btn.custom-button-style { | ||
border-radius: 4px; | ||
font-size: 15px; | ||
} | ||
|
||
.e-footer-content .e-btn.e-success.custom-button-style { | ||
background: #a1c595; | ||
} | ||
</style> |
3 changes: 1 addition & 2 deletions
3
ej2-asp-core-mvc/code-snippet/grid/edit/customizedialog/dialog.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
public IActionResult Index() | ||
{ | ||
var Order = OrderDetails.GetAllRecords(); | ||
ViewBag.DataSource = Order; | ||
ViewBag.DataSource = OrderDetails.GetAllRecords(); | ||
return View(); | ||
} |
57 changes: 25 additions & 32 deletions
57
ej2-asp-core-mvc/code-snippet/grid/edit/customizedialog/razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
@using Syncfusion.EJ2 | ||
|
||
@section ControlsSection{ | ||
<div class="control-section"> | ||
@Html.EJS().Grid("DialogTemplateEdit").DataSource((IEnumerable<object>)ViewBag.dataSource).ActionComplete("actionComplete").Columns(col => | ||
{ | ||
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").ValidationRules(new { required = true }).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("CustomerID").HeaderText("Customer Name").Width("150").ValidationRules(new { required = true, minLength = 3 }).Add(); | ||
col.Field("ShipCountry").HeaderText("Ship Country").EditType("dropdownedit").Width("150").Add(); | ||
}).AllowPaging().PageSettings(page => page.PageCount(2)).EditSettings(edit => { edit.AllowAdding(true).AllowEditing(true).AllowDeleting(true).Mode(Syncfusion.EJ2.Grids.EditMode.Dialog); }).Toolbar(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" }).Render() | ||
</div> | ||
|
||
<script> | ||
|
||
ej.base.L10n.load({ | ||
'en-US': { | ||
'grid': { | ||
'SaveButton': 'Submit', | ||
'CancelButton': 'Discard' | ||
} | ||
} | ||
}); | ||
|
||
function actionComplete(args) { | ||
if ((args.requestType === 'beginEdit' || args.requestType === 'add')) { | ||
var dialog = args.dialog; | ||
dialog.showCloseIcon = false; | ||
dialog.height = 400; | ||
// change the header of the dialog | ||
dialog.header = args.requestType === 'beginEdit' ? 'Edit Record of ' + args.rowData['CustomerID'] : 'New Customer'; | ||
@Html.EJS().Grid("grid").DataSource((IEnumerable<object>)ViewBag.DataSource).Height("348px").Columns(col => | ||
{ | ||
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").ValidationRules(new { required = "true"}).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("CustomerID").HeaderText("Customer Name").Width("150").ValidationRules(new { required = "true" }).Add(); | ||
col.Field("Freight").HeaderText("Freight").Width("120").Format("C2").EditType("numericedit").ValidationRules(new { required = "true",min=1, max=1000 }).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("ShipCountry").HeaderText("Ship Country").EditType("dropdownedit").ValidationRules(new { required = "true" }).Width("150").Add(); | ||
}).ActionComplete("actionComplete").EditSettings(edit => { edit.AllowAdding(true).AllowEditing(true).AllowDeleting(true).Mode(Syncfusion.EJ2.Grids.EditMode.Dialog); }).Toolbar(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" }).Render() | ||
<script> | ||
ej.base.L10n.load({ | ||
'en-US': { | ||
'grid': { | ||
'SaveButton': 'Submit', | ||
'CancelButton': 'Discard' | ||
} | ||
} | ||
</script> | ||
} | ||
}); | ||
function actionComplete(args) { | ||
if ((args.requestType === 'beginEdit' || args.requestType === 'add')) { | ||
var dialog = args.dialog; | ||
dialog.showCloseIcon = false; | ||
dialog.height = 360; | ||
dialog.width = 300; | ||
dialog.header = args.requestType === 'beginEdit' ? 'Edit Record of ' + args.rowData['CustomerID'] : 'New Customer'; | ||
} | ||
} | ||
</script> | ||
|
29 changes: 12 additions & 17 deletions
29
ej2-asp-core-mvc/code-snippet/grid/edit/customizedialog/tagHelper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,28 @@ | ||
<ejs-grid id="Grid" dataSource="@ViewBag.DataSource" actionComplete="actionComplete" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" allowPaging="true"> | ||
<ejs-grid id="grid" dataSource="@ViewBag.DataSource" height="273px" toolbar="@(new List<string>() { "Add", "Edit", "Delete","Update","Cancel" })" actionComplete="actionComplete"> | ||
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog"></e-grid-editSettings> | ||
<e-grid-pagesettings pageCount="5"></e-grid-pagesettings> | ||
<e-grid-columns> | ||
<e-grid-column field="OrderID" headerText="Order ID" isPrimaryKey="true" validationRules="@(new { required=true})" textAlign="Right" width="120"></e-grid-column> | ||
<e-grid-column field="CustomerID" headerText="Customer Name" validationRules="@(new { required=true})" width="150"></e-grid-column> | ||
<e-grid-column field="ShipCountry" headerText="Ship Country" editType="dropdownedit" width="150"></e-grid-column> | ||
<e-grid-column field="OrderID" headerText="Order ID" validationRules="@(new { required=true})" isPrimaryKey="true" textAlign="Right" width="100"></e-grid-column> | ||
<e-grid-column field="CustomerID" headerText="Customer Name" validationRules="@(new { required=true})" type="string" width="120"></e-grid-column> | ||
<e-grid-column field="Freight" headerText="Freight" textAlign="Right" format="C2" validationRules="@(new { required=true, min=1, max=1000})" editType="numericedit" width="120"></e-grid-column> | ||
<e-grid-column field="ShipCountry" headerText="Ship Country" editType="dropdownedit" width="150" validationRules="@(new { required=true})"></e-grid-column> | ||
</e-grid-columns> | ||
</ejs-grid> | ||
|
||
|
||
<script> | ||
|
||
ej.base.L10n.load({ | ||
ej.base.L10n.load({ | ||
'en-US': { | ||
'grid': { | ||
'SaveButton': 'Submit', | ||
'CancelButton': 'Discard' | ||
} | ||
} | ||
}); | ||
|
||
function actionComplete(args) { | ||
if ((args.requestType === 'beginEdit' || args.requestType === 'add')) { | ||
var dialog = args.dialog; | ||
dialog.showCloseIcon = false; | ||
dialog.height = 400; | ||
// change the header of the dialog | ||
dialog.header = args.requestType === 'beginEdit' ? 'Edit Record of ' + args.rowData['CustomerID'] : 'New Customer'; | ||
} | ||
var dialog = args.dialog; | ||
dialog.showCloseIcon = false; | ||
dialog.height = 360; | ||
dialog.width = 300; | ||
dialog.header = args.requestType === 'beginEdit' ? 'Edit Record of ' + args.rowData['CustomerID'] : 'New Customer'; | ||
} | ||
} | ||
|
||
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
public IActionResult Index() | ||
{ | ||
var Order = OrderDetails.GetAllRecords(); | ||
ViewBag.DataSource = Order; | ||
ViewBag.DataSource = OrderDetails.GetAllRecords(); | ||
return View(); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
@Html.EJS().Grid("DialogEdit").DataSource((IEnumerable<object>)ViewBag.DataSource).Columns(col => | ||
@Html.EJS().Grid("grid").DataSource((IEnumerable<object>)ViewBag.DataSource).Height("348px").Columns(col => | ||
{ | ||
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").ValidationRules(new { required = "true"}).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("CustomerID").HeaderText("Customer Name").Width("150").ValidationRules(new { required = "true", minLength=3 }).Add(); | ||
col.Field("Freight").HeaderText("Freight").Width("120").Format("C2").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("ShipName").HeaderText("Ship Name").Width("150").Add(); | ||
col.Field("ShipCountry").HeaderText("Ship Country").Width("150").Add(); | ||
|
||
}).AllowPaging().PageSettings(page => page.PageCount(2)).EditSettings(edit => { edit.AllowAdding(true).AllowEditing(true).AllowDeleting(true).Mode(Syncfusion.EJ2.Grids.EditMode.Dialog); }).Toolbar(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" }).Render() | ||
col.Field("CustomerID").HeaderText("Customer Name").Width("150").ValidationRules(new { required = "true" }).Add(); | ||
col.Field("Freight").HeaderText("Freight").Width("120").Format("C2").EditType("numericedit").ValidationRules(new { required = "true",min=1, max=1000 }).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); | ||
col.Field("ShipName").HeaderText("Ship Name").Width("150").ValidationRules(new { required = "true" }).Add(); | ||
col.Field("ShipCountry").HeaderText("Ship Country").EditType("dropdownedit").ValidationRules(new { required = "true" }).Width("150").Add(); | ||
}).EditSettings(edit => { edit.AllowAdding(true).AllowEditing(true).AllowDeleting(true).Mode(Syncfusion.EJ2.Grids.EditMode.Dialog); }).Toolbar(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" }).Render() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<ejs-grid id="Grid" dataSource="@ViewBag.DataSource" height="273" toolbar="@(new List<string>() { "Add", "Edit", "Delete","Update","Cancel" })"> | ||
<ejs-grid id="grid" dataSource="@ViewBag.DataSource" height="273px" toolbar="@(new List<string>() { "Add", "Edit", "Delete","Update","Cancel" })"> | ||
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog"></e-grid-editSettings> | ||
<e-grid-columns> | ||
<e-grid-column field="OrderID" headerText="Order ID" validationRules="@(new { required=true})" isPrimaryKey="true" textAlign="Right" width="100"></e-grid-column> | ||
<e-grid-column field="CustomerID" headerText="Customer ID" validationRules="@(new { required=true, minLength=3})" type="string" width="120"></e-grid-column> | ||
<e-grid-column field="Freight" headerText="Freight" textAlign="Right" format="C2" editType="numericedit" width="120"></e-grid-column> | ||
<e-grid-column field="ShipCountry" headerText="Ship Country" width="150"></e-grid-column> | ||
<e-grid-column field="CustomerID" headerText="Customer Name" validationRules="@(new { required=true})" type="string" width="120"></e-grid-column> | ||
<e-grid-column field="Freight" headerText="Freight" textAlign="Right" format="C2" validationRules="@(new { required=true, min=1, max=1000})" editType="numericedit" width="120"></e-grid-column> | ||
<e-grid-column field="ShipName" headerText="Ship Name" width="150" validationRules="@(new { required=true})"></e-grid-column> | ||
<e-grid-column field="ShipCountry" headerText="Ship Country" editType="dropdownedit" width="150" validationRules="@(new { required=true})"></e-grid-column> | ||
</e-grid-columns> | ||
</ejs-grid> |
3 changes: 1 addition & 2 deletions
3
ej2-asp-core-mvc/code-snippet/grid/edit/show-hide-edit-dialog/dialog.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
public IActionResult Index() | ||
{ | ||
var Order = OrderDetails.GetAllRecords(); | ||
ViewBag.DataSource = Order; | ||
ViewBag.DataSource = OrderDetails.GetAllRecords(); | ||
return View(); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optimize this css code