Hi Dan,
Thanks for using Syncfusion Products.
We have
analyzed the reported issue but we are unable to reproduce the issue at our
end. Please check with the below attached sample and let us know if it helps.
If you are still facing the same issue, please open the Developer tool
page and open the console tab, if shows any console error send us that screen
shot of web pages. So that we could sort out the cause of the issue and provide
you a response as early as possible.
Sample
Link: http://www.syncfusion.com/downloads/support/directtrac/131898/EJGrid-1172796792.zip
Please let us know if
you have any queries.
Regards,
Sellappandi R
Hi Dan,
Thanks for the update.
We have analyzed your requirement "signalR with the
grid for live date" and created a sample. Please find the code
snippet.
[controller] var DataSource = new List<string>();
ViewBag.dataSource = DataSource; //
empty dataSource
return
View(); [view] @(Html.EJ().Grid<object>("Grid")
.Datasource((IEnumerable<object>)ViewBag.dataSource)
.EditSettings(edit => {
edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.Normal); })
.ClientSideEvents(c => c.Create("create"))
. . .
)
.Columns(col =>
{
col.Field("OrderID").HeaderText("Order
ID").IsPrimaryKey(true).TextAlign(TextAlign.Left).Width(50).Add();
. . .
})
) |
In the above sample we have passed the empty list value to
the grid dataSource and used “Create” to bind the empty columns in Grid. Please find the code
snippet.
function create(args) {
$("#FlatGrid").ejGrid({ dataSource: [{}, {}, {}, {}, {}] }); } |
Please find the sample from the following location:
Sample: SignalR.zip
Please let us know if you have any queries.
Regards,
J.Mohammed Farook
Hi Dan,
Thanks for your
update.
We have analyzed your requirement for “grid render using custom object”. Based on your request we created
a sample and the same can be downloaded from the following link. In the provided sample we are using object List<MyObject> in
the custom class to render the empty
grid.
Sample
Link: SignalR.Zip
Please
try the above sample and let us know if you would require any further
assistance.
Regards,
Sellappandi R