MultiSelect Control values not getting selected
Hi,
I am using multiselect control. My declaration code is
Code:
<ext:MultiSelect ID="mlProdPlace" PaddingSpec="0 50 0 50" runat="server" MultiSelect="true"
DisplayField="Field1" ValueField="Field2" FieldLabel="Production Places"
Width="500" Height="200" AllowBlank="false">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Field1">
</ext:ModelField>
<ext:ModelField Name="Field2">
</ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:MultiSelect>
i want to select a value at server side based on the data.I have written code like this in direct event
Code:
mlProdPlace.SelectedItems.Add(new Ext.Net.ListItem { Text = objProjLoc.Field1, Value = Convert.ToString(objProjLoc.Field2) });
mlProdPlace.UpdateSelectedItems();
but it is not getting selected.
Please help.
Regards
Rashid siddique