Apr 03, 2013, 8:43 AM
[CLOSED] Selectbox setvalue on Page_Load problem 2.1
Hi from istanbul..
I have new problems with using 2.1 .. I have a select box that under code. and a store. I'm setting store datasource on Page_Load. and I try to set selectbox value with. "cmbRoomId.Setvalue(3);" function. but it is not working . if I use this code on a button click event it is working. but on Page_load not working..
also try to set panel title not working on Page_Load event.
pnlTitle.Title = "YENI TOPLANTI KAYDI";
Thanks....
I have new problems with using 2.1 .. I have a select box that under code. and a store. I'm setting store datasource on Page_Load. and I try to set selectbox value with. "cmbRoomId.Setvalue(3);" function. but it is not working . if I use this code on a button click event it is working. but on Page_load not working..
<ext:SelectBox runat="server" ID="cmbRoomID" Width ="150px" StoreID="storeRooms" DisplayField="RoomName" ValueField="RoomID" > </ext:SelectBox>
<ext:Store ID="storeRooms" runat="server">
<Model>
<ext:Model runat= "server">
<Fields>
<ext:ModelField Name= "RoomID"></ext:ModelField>
<ext:ModelField Name= "RoomName"></ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
cmbRoomID.SetValue(drGet["RoomID"]);
also try to set panel title not working on Page_Load event.
pnlTitle.Title = "YENI TOPLANTI KAYDI";
Thanks....
Last edited by Daniil; Apr 09, 2013 at 4:10 AM.
Reason: [CLOSED]