Oct 24, 2008, 8:38 PM
[CLOSED] GridPanel Datasource from Code Behind
Hi,
I have been trying to update a grid panel on click of button. However, I receive and error saying Bad Response Syntax Error.
The following is my code :
Thanks,
I have been trying to update a grid panel on click of button. However, I receive and error saying Bad Response Syntax Error.
The following is my code :
-----Grid.aspx----
<ext:Store runat="server" ID="store_conditions" DataSourceID ="conditions_linq">
<Reader ><ext:jsonReader >
<Fields ><ext:RecordField Name ="conditions" />
<ext:RecordField Name ="conditionsid" /></Fields>
</ext:jsonReader></Reader>
</ext:Store>
<ext:Gridpanel runat ="server" ID="chkconditions" height="200px"
AutoScroll ="True" StoreID ="store_conditions" Title ="Conditions">
<ColumnModel id="con_col_model" runat="server" >
<Columns>
<ext:Column ColumnID ="condition" DataIndex ="conditions" Header ="Conditions" ></ext:Column>
<ext:Column ColumnID ="conditionid" DataIndex ="conditionsid" Header="conditionsid"></ext:Column>
</Columns>
</ColumnModel>
</ext:Gridpanel>
<ext:button ID="btnconditions" runat="server" Text="Add / Search">
<AjaxEvents >
<Click OnEvent ="btnconditions_Click">
<EventMask ShowMask ="true" />
</Click>
</AjaxEvents>
</ext:button>
--------Grid.aspx.vb----------
Public Sub btnconditions_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim conditions_linq = From items In db.conditions_masters Select items.conditions, items.conditionsid Take (10)
Me.store_conditions.DataSource = conditions_linq
Me.store_conditions.DataBind()
Me.chkconditions.DataBind()
End Sub
Any help would be much appreciated. If I specify a HTTPProxy, I get an error saying "b is undefined".Thanks,