Hi,
is this scenario possible?
To refresh the sqldatabound listbox without postback?
<asp:HiddenField runat="server" ID="IDValue" Value="" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:_____ConnectionString %>" SelectCommand="_____Select" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="IDValue" Name="ID" PropertyName="Value" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<ej:ListBox ID="listboxInfo" runat="server" DataTextField="Text" DataSourceID="SqlDataSource1"></ej:ListBox>
on the grid is
<ClientSideEvents RowSelected="ShowAdditionalInfo" />
function ShowAdditionalInfo() {
var obj = $("#Grid1").ejGrid("instance");
$("#IDValue").val(obj.getSelectedRecords()[0].ID);
$("#listboxInfo").ejListBox("refresh", true);
}
After the row is selected in the grid the listbox would show additional info.
This doesn't refresh the listbox.
It does however work if i do this
function ShowAdditionalInfo() {
var obj = $("#Grid1").ejGrid("instance");
$("#IDValue").val(obj.getSelectedRecords()[0].ID);
__doPostBack('UpdatePanel1',null);
}
but it is very slow and lagging after each row click on the grid.
And i want to avoid server side.