PascuV
Sep 13, 2018, 7:53 AM
Hi,
Im trying to create a grid for my application and its not being possible.
I Have copied your example (http://mobile.ext.net/#demo/basicgrid) about a basic grid and is still not working. Here is what i've tried:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
public static List<object> Data = new List<object>
{
new
{
name = "Lisa",
email = "lisa@simpsons.com",
phone = "555-111-1224"
},
new
{
name = "Bart",
email = "bart@simpsons.com",
phone = "555-222-1234"
},
new
{
name = "Homer",
email = "homer@simpsons.com",
phone = "555-222-1244"
},
new
{
name = "Marge",
email = "marge@simpsons.com",
phone = "555-222-1254"
}
};
</script>
<html>
<head runat="server">
<title>Ext.NET Mobile Example</title>
</head>
<body>
<ext:ResourceManager runat="server" Theme="Triton" />
<ext:Grid runat="server" Title="Simpsons">
<Store>
<ext:Store runat="server" DataSource="<%# Data %>" AutoDataBind="true">
<Fields>
<ext:ModelField Name="name" />
<ext:ModelField Name="email" />
<ext:ModelField Name="phone" />
</Fields>
</ext:Store>
</Store>
<Columns>
<ext:Column runat="server" Text="Name" DataIndex="name" Width="100" />
<ext:Column runat="server" Text="Email" DataIndex="email" Width="210" />
<ext:Column runat="server" Text="Phone" DataIndex="phone" Width="150" />
</Columns>
</ext:Grid>
</body>
</html>
This shows the Grid, but it shows it empty, theres no data on it.
And another question (I dont know if I should open a new thread for it):
Is it possible to make something like "command column" to select a row like we can do in Ext.Net? I would like to do something like MultiSelectionGrid (http://mobile.ext.net/#demo/multiselectiongrid) to select one or various rows, but I would like to select and insert them into a List, not to delete them.
Im trying to create a grid for my application and its not being possible.
I Have copied your example (http://mobile.ext.net/#demo/basicgrid) about a basic grid and is still not working. Here is what i've tried:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
public static List<object> Data = new List<object>
{
new
{
name = "Lisa",
email = "lisa@simpsons.com",
phone = "555-111-1224"
},
new
{
name = "Bart",
email = "bart@simpsons.com",
phone = "555-222-1234"
},
new
{
name = "Homer",
email = "homer@simpsons.com",
phone = "555-222-1244"
},
new
{
name = "Marge",
email = "marge@simpsons.com",
phone = "555-222-1254"
}
};
</script>
<html>
<head runat="server">
<title>Ext.NET Mobile Example</title>
</head>
<body>
<ext:ResourceManager runat="server" Theme="Triton" />
<ext:Grid runat="server" Title="Simpsons">
<Store>
<ext:Store runat="server" DataSource="<%# Data %>" AutoDataBind="true">
<Fields>
<ext:ModelField Name="name" />
<ext:ModelField Name="email" />
<ext:ModelField Name="phone" />
</Fields>
</ext:Store>
</Store>
<Columns>
<ext:Column runat="server" Text="Name" DataIndex="name" Width="100" />
<ext:Column runat="server" Text="Email" DataIndex="email" Width="210" />
<ext:Column runat="server" Text="Phone" DataIndex="phone" Width="150" />
</Columns>
</ext:Grid>
</body>
</html>
This shows the Grid, but it shows it empty, theres no data on it.
And another question (I dont know if I should open a new thread for it):
Is it possible to make something like "command column" to select a row like we can do in Ext.Net? I would like to do something like MultiSelectionGrid (http://mobile.ext.net/#demo/multiselectiongrid) to select one or various rows, but I would like to select and insert them into a List, not to delete them.