Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
612 views

Hi,

I am using the slider in an asp.net webforms environment. 

At the start of the page, the handle is on the middle of the slider, and both side of the sliders are greyed out.

Let say the slider has a maximum range of 10. By default the handle is displayed at 5.

To select 6, the user slide to the right, and to select 4 the user slide to the left. 

When the user slides the handle, then the left part of the handle change to green.

 

If the user wants to select 5, the only way to do it at the moment is to either select 4 or 6 and then back to 5, which is not great at all.

Question 1:

Is it possible to create a onclientclick event on the handle, so when the user click on the handle it register that change as 5.

 

Question 2:

Is it possible to change the colour of the handle depending on the value selected

 

Question 3:

I am using the 'Telerik' skin which display a green colour for the slider selection, would it be possible to change the colour to red, depending on the user selection.

To illustrate my question, in the attachment below I would like to have:

First slider: The handle in a dark grey

Second slider: Has been used, would be great to have  green handle

Third slider: the slider has not been used and the handle is sitting on the middle, clicking on the handle would select the value 3, and the left side of the handler would become green.

 

Thank you for your help.

 

Peter Milchev
Telerik team
 answered on 29 Jan 2021
0 answers
136 views

Hi,

    I am using RadAsyncUpload with custom handler in my application. Once the file is chosen the upload begins. When clicking on cancel the uploading is cancelled on all browsers, except chrome.

    The cancelling works as expected, when testing the application locally. When trying to upload the file to the web server only this problem occurs.

    I can see the file uploading progress in the bottom of chrome status bar, even after clicking on 'Cancel' button. I want the file upload to be cancelled immediately when user clicks on cancel. I've searched in telerik forums for the same issue, unfortunately no luck. Any help would be much appreciated.

   Some points to note:

  •     File saving process is happening in the custom handler.
  •     Not using temp folder.
  •     There is no javascript error in the console.
  •     Browsers where cancel of file upload working fine: Firefox, IE 11, Microsoft Edge.

    Thanks in Advance.

Thirumoorthi
Top achievements
Rank 1
 asked on 29 Jan 2021
3 answers
226 views

Hi, i want to have a similar control like RichText box (winfroms) in Webforms.

I tried using the RadText editor with which i can able to copy paste images and format the text but the problem is unable to drag and drop files (text,word,exce..) to the Text editor.

is there any way i can achieve this in webforms.

 

Thanks 

Chakradhar

Rumen
Telerik team
 answered on 29 Jan 2021
0 answers
199 views

I'm trying to conditionally hide the Edit and Destroy command buttons in my Grid but I haven't had much luck figuring out how to do that. Below is the code I currently have. I saw an example on the Telerik UI ASP.NET Core forum for how to do this and it involves using the Visible() method with a handler. However, that is apparently not available in Telerik UI ASP.NET AJAX. Is there something similar that will let me accomplish this?

@(Html.Kendo().Grid<MyViewModel>()
  .Name("MyGrid")
  .Columns(columns =>
  {
    ...
    columns
      .Command(command =>
      {
        command.Edit()
        .Text("Edit Me")
        .Visible("IsEditVisible"); // this is not supported
      }
    )
    .Width("125px");
  }
)
...
<script>
function IsEditVisible(dataItem){
  return dataItem.CanEdit;
}     
Mirza
Top achievements
Rank 1
Iron
 asked on 29 Jan 2021
2 answers
151 views

Hi, im facing a issue.All my series are showing all information from all series.

I know probably it's a basic question, but could someone help me to solve this?

01.<telerik:RadHtmlChart runat="server" ID="CompetencyByParticipant" Width="80%" Height="300" Transitions="true">
02.    <ChartTitle Text="Competências por tipo de participante">
03.    </ChartTitle>
04.    <PlotArea>
05.        <YAxis>
06.            <LabelsAppearance DataFormatString="{0:0.0}">
07.            </LabelsAppearance>
08.            <MinorGridLines Visible="false" />
09.        </YAxis>
10.        <XAxis DataLabelsField="ProfileName">
11.            <TitleAppearance Text="Participantes">
12.            </TitleAppearance>
13.            <LabelsAppearance Step="3">
14.            </LabelsAppearance>
15.            <MajorGridLines Visible="true" />
16.            <MinorGridLines Visible="false" />
17.        </XAxis>
18.    </PlotArea>
19.</telerik:RadHtmlChart>

 

01.var profileGroup = from k in evaluationData
02.group k by new { Profile = k.Profile, ProfileName = k.ProfileName, CompetencyId = k.Competency, CompetencyName = k.CompetencyName } into g
03.select new
04.{
05.    Profile = g.Key.Profile,
06.    ProfileName = g.Key.ProfileName,
07.    Competency = g.Key.CompetencyId,
08.    CompetencyName = g.Key.CompetencyName,
09.    Score = g.Average(x => x.Score)
10.};
11.var chart = CompetencyByParticipant;
12.var competencies = profileGroup.Select(x => x.CompetencyName).Distinct();
13.foreach (var p in competencies)
14.{
15.    var serie = new ColumnSeries();
16.    serie.Name = p;
17.    serie.DataFieldY = "Score";
18.    chart.PlotArea.Series.Add(serie);
19.}
20.chart.PlotArea.XAxis.DataLabelsField = "ProfileName";
21.chart.PlotArea.XAxis.LabelsAppearance.Step = 3;
22.chart.DataSource = profileGroup.ToList();
23.chart.DataBind();

 

Is there a way to bind an specific dataset to each serie?

Thanks.

Vessy
Telerik team
 answered on 28 Jan 2021
2 answers
154 views

Hi Telerik team,

We have an issue with table caption in the table wizard, this issue can be reproduce on demo site. 

How to reproduce :

1. create a table using table wizard

2. go to "Accessibility tab" and add caption

3. close the table wizard 

4. bold the table caption and switch to <HTML> mode, you will see "<caption><strong>table caption</strong></caption>"

5. right click mouse and open "Table Properties"

6. caption textbox is empty if you format caption

 

Is there any solution to fix this issue?

Thanks in advance,

Lan

Judy.Wang
Top achievements
Rank 1
Veteran
 answered on 28 Jan 2021
7 answers
247 views

Sometimes the "EmptyMessage" will not show up completely (it appear cut); then if you click into the box and then click out it will show up fine after to refresh itself. Unfortunately there is not a way of reproduce this problem consistently as it happens randomly.

I would like to know if someone else has seen the problem and figured a consistent way of workaround it. I am planning a 'dirty' solution that includes to NOT use the EmptyMessage property and instead to superimpose a label over the box.

 

 

NOTE: Searching online I realized that this is an old bug that apparently was never actually fixed. I found this 6 years old thread reporting the bug: As you may see the support insisted to not have been able to see the problem. So instead to dig deeper Telerik just seated over this. Apparently the bug reporter gave up.

Vessy
Telerik team
 answered on 28 Jan 2021
0 answers
184 views

Hey all!

I am playing with a RadGrid. I bound formatted HTML to the second column so when I mouse it over it gets "selected" and when I click it page navigate for the proper url. I need the very same behavior but I'd like to select the whole row instead only one cell. Please see attached...

My current grid setup:

<telerik:RadGrid ID="RadGrid1" style="visibility:hidden;display:none;" runat="server" autopostback="true" Width="60%">
            <MasterTableView AutoGenerateColumns="false">
                <Columns>
                    <telerik:GridBoundColumn DataField="Description"  HeaderText="Description" ReadOnly="True" UniqueName="Description"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ConditionsAndOptions"  HeaderText="Details" ReadOnly="True" UniqueName="ConditionsAndOptions"></telerik:GridBoundColumn>
                    <telerik:GridMaskedColumn DataField="RetailPrice" HeaderText="Price" ReadOnly="True" UniqueName="RetailPrice" Mask="##,###.##"></telerik:GridMaskedColumn>
                    <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="PartPic" DataImageUrlFormatString="" ImageAlign="Middle" ImageHeight="" ImageWidth="100px" HeaderText="Part Pic"></telerik:GridImageColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

 

Any idea?

Yan Moura
Top achievements
Rank 1
Veteran
Iron
 asked on 27 Jan 2021
5 answers
295 views

Hello Team,

I have an issue with sorting the Items in the RadListBox. When i try to move the Items from Source List box to the destination box, everything here works fine. But when i move the selected Items from the Destination Box to the Source Box, the items that has been moved, falls at the bottom of the box. Instead this should be at the top of the box. How can i fix this..? Please help me with some ideas. 

 

The First images describes the Items that has been selected and to be moved in the Destination Box.
The Second image has the items moved successfully to the destination box.
The Third image describes that the items has been moved to source box , but items moved to the bottom , instead it has to be at the top of the box

 

<telerik:RadListBox RenderMode="Lightweight" runat="server" SelectionMode="Multiple" ID="lstSysPrin" Height="200px" Width="200px"
                                            AllowTransfer="true" TransferToID="lstSysPrinDestination" Sort="Ascending" 
                                            ButtonSettings-AreaWidth="35px">
  </telerik:RadListBox>
 <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="lstSysPrinDestination" SelectionMode="Multiple" Height="200px" Width="160px"
                                            ButtonSettings-AreaWidth="35px">
 </telerik:RadListBox>

Vessy
Telerik team
 answered on 27 Jan 2021
20 answers
542 views
Link : http://www.customink.com/lab/#shared

Hi..!

I need to create a web based Image Editor with the options available in above link.
Could anyone help me out..? 
Doncho
Telerik team
 answered on 26 Jan 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?