

Telerik.Web.UI.RadMultiSelect rms;rms = new RadMultiSelect();rms.ID = "xyz";rms.DataTextField = "text";rms.DataValueField = "value";rms.Filter = RadMultiSelectFilter.Contains;rms.MinLength = 3;rms.Font.Size = FontUnit.Small;rms.Width = Unit.Percentage(70);rms.AutoBind = false;rms.AutoPostBack = true;rms.WebServiceClientDataSource.PageSize = 20;rms.WebServiceClientDataSource.AutoSync = true;rms.WebServiceClientDataSource.AllowPaging = true;rms.WebServiceClientDataSource.EnableServerPaging = true;rms.WebServiceClientDataSource.EnableServerFiltering = true;rms.WebServiceClientDataSource.EnableViewState = true;rms.WebServiceClientDataSource.WebServiceSettings.Select.DataType = ClientDataSourceDataType.JSON;rms.WebServiceClientDataSource.WebServiceSettings.Select.ContentType = "JSON";rms.WebServiceClientDataSource.WebServiceSettings.Select.Url = f.FixupUrl("~/dal/webservices/service.asmx/getTags");rms.Enable = true;"name of placeholder".Controls.Add(rms);List<dynamic> selected = new List<dynamic>();foreach (DataRow dr_rms in dt_rms.Rows) { MultiSelectItem msi = new MultiSelectItem(); msi.Value = dr_rms["value"].ToString(); msi.Text = dr_rms["text"].ToString(); rms.Items.Add(msi); var item = new { text = dr_rms["text"].ToString(), value = dr_rms["value"].ToString() }; selected.Add(item);}rms.Value = selected;public class RadMultiSelectClass { public int value { get; set; } public string text { get; set; }}List<RadMultiSelectClass> selected = new List<RadMultiSelectClass>();foreach (DataRow dr_rms in dt_rms.Rows) { selected.Add(new RadMultiSelectClass { value = Convert.ToInt32(dr_rms["value"].ToString()), text = dr_rms["text"].ToString() });}rms.Value = selected;webconfig:
Everything works fine:
The radmultiselect get the value from database and the page flow are totaly normaly. With many postbacks, everything works fine.
<sessionState mode="InProc" cookieless="false" timeout="120" />
Page with strange behaviors, loosing sessions.
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="xxx.cache.amazonaws.com" port="6379" accessKey="" ssl="false" retryTimeoutInMilliseconds="60" throwOnError="false" />
</providers>
</sessionState>
If I comment the "// rms.Value = selected;" The page works fine, with or without redis. The problem only occurs when I put some value to rms.value.
The RadMultiSelect.Value have any problem with Redis or distributed session provider?
Thanks

Hi I am trying change to change the color of the bar chart and databinded using sql datasource. the
Here's the code behind
Page load code behind
Dim barColors As Color() = New Color(7) {Color.Purple, Color.SteelBlue, Color.Aqua, Color.Yellow, Color.Navy, Color.Green, Color.Blue, Color.Red}
GraphIncoming.ChartTitle.Text = "Number of Incoming request per Area for the Year " + dpdYearWKPerArea.SelectedValue.ToString + ""
GraphIncoming.DataBind()
Dim k As Integer = 0
GraphIncoming.PlotArea.Series(0).Name = "Value"
For Each item As ChartSeriesItem In GraphIncoming.PlotArea.Series(0).Items
item.Appearance.FillStyle.MainColor = barColors(System.Math.Max(System.Threading.Interlocked.Increment(k), k - 1))
Next
######
aspx Page
<telerik:RadHtmlChart ID="GraphIncoming" runat="server" DataSourceID="SqlDataSource2" Font-Underline="False" Skin="Office2010Blue" Width="100%">
<PlotArea>
<Series >
<telerik:ColumnSeries DataFieldY="Value" >
<Appearance FillStyle-BackgroundColor="#337ab7"></Appearance>
<TooltipsAppearance Color="White" />
</telerik:ColumnSeries>
</Series>
<XAxis DataLabelsField="Area">
<LabelsAppearance RotationAngle="45">
</LabelsAppearance>
<TitleAppearance Text="">
<TextStyle Bold="true" Color="Red" FontFamily="Verdana" FontSize="12px" Italic="true" />
</TitleAppearance>
</XAxis>
<YAxis>
<TitleAppearance Text="Number of Incoming request">
<TextStyle Bold="true" Color="Red" FontFamily="Verdana" FontSize="12px" Italic="true" />
</TitleAppearance>
</YAxis>
</PlotArea>
<Legend>
<Appearance Visible="True">
</Appearance>
</Legend>
<ChartTitle >
<Appearance Visible="True">
<TextStyle Bold="true" Color="Blue" FontFamily="Verdana" FontSize="12px" Italic="true" />
</Appearance>
</ChartTitle>
<Zoom Enabled="False"></Zoom>
</telerik:RadHtmlChart>


Users reported a problem in a very old application using Telerik RadComboBox v2017.2.711.45 and I'm trying to find a solution for it, without having to upgrade the telerik controls (we don't have any active subscription or support):
Problem is, that when the user selects some text on a page, and releases the left mouse button over a RadComboBox control, then the dropdown opens. E.g:
- user presses left mouse button in a textbox for example
- user moves the mouse to select text
- while the left button is still pressed, the mouse is moved out of the textbox and over a RadComboBox
- user releases the left mouse button (while over the RadComboBox)
--> the dropdown list opens/expands, which is not desired (since the mouse-button down was not over that control)
Does anyone have an idea how to approach and fix this problem globally?
Is there for example a way to find a RadComboBox at the current mouse position, so that I could do something in the mousedown/up events?
Thanks a lot for any help

this.RadGrid1.MasterTableView.PagerStyle.AlwaysVisible = true;
this.RadGrid1.MasterTableView.PagerStyle.ShowPagerText = false;
this.RadGrid1.MasterTableView.PagerStyle.HorizontalAlign = HorizontalAlign.Center;
this.RadGrid1.MasterTableView.PagerStyle.PrevPageText = "Previous";
this.RadGrid1.MasterTableView.PagerStyle.NextPageText = "Next";
this.RadGrid1.MasterTableView.PagerStyle.Mode = Telerik.Web.UI.GridPagerMode.NextPrevAndNumeric;



I would like to fix the spacing in between my AsyncUpload and the previous object. I tried adding it to a table and doesn't seem to matter. From the code you can see that I have set "HideFileInput" to true. I am just wanting the "Select" button.
Attached is two images. If I put the AsyncUpload in the same cell it goes under the RadTextBox and I don't want that as I would like it next to. If they are in different cells then the spacing is too far apart. How do get them closer w/o throwing it under the RadTexBox.
<tr> <td class="LabelStyle-Right" style="vertical-align: top;">Subject:</td> <td style="vertical-align: top;"> <telerik:RadTextBox ID="_subject" runat="server" MaxLength="100" Width="200"></telerik:RadTextBox> </td> <td style="vertical-align: top; text-align: left;"> <telerik:RadAsyncUpload ID="_FaxFile" runat="server" Width="100%" AllowedFileExtensions=".pdf" MaxFileInputsCount="1" Visible="true" ToolTip="Select PDF" HideFileInput="true" MaxFileSize="15728640" Localization-Select="Select PDF"> </telerik:RadAsyncUpload><%-- <span class="allowed-attachments" style="font: italic 10px arial, verdana; color: blue;"> <asp:Label runat="server" ID="FileTypes" Visible="true" Enabled="false"></asp:Label></span>--%> </td> </tr>