Good morning,
I'm using an ODataDataSource to bind data to a RadComboBox. Currently the data source is retrieving all of the fields for each record whereas I'd like to only retrieve the fields I need for binding. I specified the fields (see code below) in the model declaration, which I would've expected to be passed on to the service call but that doesn't seem to be the case.
Can you please let me know if this is a bug or if there is a way I can inject a $select clause to the service call?
Thanks, Jason
Markup:
Codebehind:
I'm using an ODataDataSource to bind data to a RadComboBox. Currently the data source is retrieving all of the fields for each record whereas I'd like to only retrieve the fields I need for binding. I specified the fields (see code below) in the model declaration, which I would've expected to be passed on to the service call but that doesn't seem to be the case.
Can you please let me know if this is a bug or if there is a way I can inject a $select clause to the service call?
Thanks, Jason
Markup:
<telerik:RadODataDataSource ID="dsComboBoxes" runat="server" ClientIDMode="Static"></telerik:RadODataDataSource> <telerik:RadComboBox ID="cbxQuickAdd" runat="server" Width="100%" Height="190px" Skin="Simple" EnableLoadOnDemand="true" EmptyMessage="Type to Filter" EnableItemCaching="true" ODataDataSourceID="dsComboBoxes" DataModelID="Resource" DataTextField="Description" DataValueField="ID"></telerik:RadComboBox>Codebehind:
dsComboBoxes.Transport.Read.Url = ConfigurationManager.AppSettings.GetURL("BindingServiceURL");dsComboBoxes.Transport.Read.DataType = ODataSourceResponseType.JSONP; DataModel quickAdd = new DataModel(){ ModelID = groupType.Singularize(), Set = groupType};quickAdd.Fields.Add(new DataModelField() { FieldName = "ID" });quickAdd.Fields.Add(new DataModelField() { FieldName = "Description" });dsComboBoxes.Schema.Add(quickAdd);