Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
119 views
I have three resources added and when someone creates and saves an appointment I want the resource to be required, is there and easy way to do this? Is this functionality built in?
Peter Milchev
Telerik team
 answered on 16 Feb 2021
1 answer
265 views
Hi,

   I am responsible for a web forms applications which has  been working fine for quite  a while. We've gotten to IE 11 and we've started having problems. So we changed to edge and found other problems. IE 11 was sending an enter key on a save of screen which caused problems with the applications. Once we changed to Edge we encountered even weirder problems:
1. We have a number of telerik dropdowns (radComboBox). There are a few that, if they are changed to the non default  values, shift back to the default value when save button is clicked. The weird thing is that this is only happening on two of the dropdowns, always the same two. The other drop downs that are working fine (which is most of them, as many as fifty). So these two that aren't working are "random". This is the second time we've found something like this. This is happening on two web forms
2. We switched to the same web form and used IE 11. The problem went away. 

In both cases where this happened this has happened with random dropdowns. However it always happens with the same two dropdown. Just to clarify, all the dropdowns, the ones that work and the one's that don't,  have exactly the same two values in them:
"GO"
"No GO".

Any help would be appreciated.

Thanks,
Neil Newton
Doncho
Telerik team
 answered on 16 Feb 2021
11 answers
655 views
Hi

I'm a few days trying to solve a strange behavior with radmultiselect, but without success.

I have a page works fine for very years, but now I added a new control, the radmultiselect. When I use in production Redis with distributed session/cache provider, the page crash. Many strange behaviors occurs. When I use inproc, everything works fine. 

I added the radmultiselect dinamicaly like this example:

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);


The problem occurs when I try to add the database value.

I tried some formats:

1 - Dynamic list

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;


2 - Fixed Class

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

Peter Milchev
Telerik team
 answered on 16 Feb 2021
2 answers
218 views

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>

 

 

 

Vessy
Telerik team
 answered on 15 Feb 2021
1 answer
318 views
Hi,

Wound like to check whether Telerik.Web.UI.dll 2009 version is affected by CVE-2019-18935 or CVE-2017-11317?

Our application is using Telerik.Web.UI.dll 2009 version and please let us know if any vulnerabilities with this version?

Please advise.
Vessy
Telerik team
 answered on 15 Feb 2021
1 answer
106 views

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

Doncho
Telerik team
 answered on 15 Feb 2021
3 answers
194 views
Team,

  Can anybody let me know if how can I set my paging to the right alignment in the RadGrid. Currently with this code below the grid is not diaplsying the pager with right alignment.

in Code-Behind i wrote

 

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;

 



Thanks
Vijay
Doncho
Telerik team
 answered on 12 Feb 2021
5 answers
125 views
Is there a way to reorder a LayoutRow, in a RadPageLayout, depending on device?  In my scenario I have multiple rows (each containing a DIV with various other controls), and when the page is being viewed by a mobile device, I'd like to have the 1st and 2nd row switch positions.
Rumen
Telerik team
 answered on 12 Feb 2021
28 answers
1.0K+ views
Hi,
I'm using the RadEditor on our website.  When I browse to it on an iPad and I try to enter text the onscreen keyboard doesn't pop up.

The iPad uses Safari which is listed as supported for RadEditor...

Anyone solved this problem?
Rumen
Telerik team
 answered on 12 Feb 2021
3 answers
117 views

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>
Vessy
Telerik team
 answered on 11 Feb 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?