Hello,
I am pretty new to EO and also pretty new to the programming in VWD 2010 and I'm stuck as I can't seem to figure out a certain part.
I put a Grid on a website and managed to fill it with a dataset that i call from a Mysql database.
I also managed to show me the selected index and with that the according values of any field in some textboxes, but only after i click on a button.
I would like this info in the textboxes to change just by clicking on a different row (I have set the FullRowMode to True)
I read some articles on how to proceed and they refer me to the part where I have to call the ClientSideOnItemSelected function in my ASPX code.
And this is where nothing happens...
I must be missing a very simple part or putting stuff in the wrong location.
Here's the part of the code where it is set:
...
Code: HTML/ASPX
<eo:Grid ID="Grid1" runat="server" BorderColor="#7F9DB9" BorderWidth="1px"
ColumnHeaderAscImage="00050104" ColumnHeaderDescImage="00050105"
ColumnHeaderDividerImage="00050103"
FixedColumnCount="1" Font-Bold="False" Font-Italic="False" Font-Names="Tahoma"
Font-Overline="False" Font-Size="8.75pt" Font-Strikeout="False"
Font-Underline="False" GridLineColor="220, 223, 228" GridLines="Both"
Height="200px" Width="499px" GoToBoxVisible="True" KeyField="ID"
SelectedItemIndex="0" ClientSideOnItemSelected="on_item_click">
<ItemStyles>
<eo:GridItemStyleSet>
...
And this is the javascript function and it's location:
....
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
administration
</h2>
Code: Visual Basic.NET
[b]<script language="javascript" type="text/javascript">
function on_item_click(e, info) {
window.alert("item '" + info.getItem().getText() + "' clicked!");
}
</script>[/b]
(The script is just a test to get anything on the screen...)
<table style="width:100%;">
<tr>
<td class="style1">
<asp:Label ID="Label1" runat="server" Text="Logged in as:"></asp:Label>
</td>
<td class="style2">
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</td>
<td>
<asp:Label ID="Label3" runat="server" Text="Participants:"></asp:Label>
</td>
<td>
</td>
</tr>
<tr>
<td class="style1">
</td>
<td class="style2">
<eo:Grid ID="Grid1" runat="server" BorderColor="#7F9DB9" BorderWidth="1px"
ColumnHeaderAscImage="00050104" ColumnHeaderDescImage="00050105"
ColumnHeaderDividerImage="00050103"
FixedColumnCount="1" Font-Bold="False" Font-Italic="False" Font-Names="Tahoma"
Font-Overline="False" Font-Size="8.75pt" Font-Strikeout="False"
Font-Underline="False" GridLineColor="220, 223, 228" GridLines="Both"
Height="200px" Width="499px" GoToBoxVisible="True" KeyField="ID"
SelectedItemIndex="0" ClientSideOnItemSelected="on_item_click">
<ItemStyles>
<eo:GridItemStyleSet>
....
All I really need is a way to activate a Sub that refreshes the textboxes. As there is no normal:
SelectedIndexChanged Handler
The links that were provided in other posts only showed the demo's in which it DID work, not how it works..
Please help
Thanks in advance.