Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
118 views
Hi,

I couldn't achieve of exporting a pdf file with my web service binding scheduler.

Isn't it possible?

I would like to know whether it is possible to do it with a JS code in my aspx page. If it doesn't work, I don't have any binding criteria in my back end code. How could be possible to do that ?

thank you
Marin Bratanov
Telerik team
 answered on 04 Jun 2018
3 answers
139 views

We have a few custom tools added into the editor that we've decided need to be enabled while in preview mode.

Using the steps here, we've had that working for a while now. Recently though we updated to version 2018.2.516.45, and while the buttons still enable they no longer function while in preview mode. They work fine in both other modes, and they're not disabled (at least their state is set to 0).

We're setting a timeout to make the tools available after the page finishes initializing:

function OnClientModeChange(sender, args) {
    setTimeout(function () { MakeToolsAvailable(sender) }, 500);
};

 

And in the timeout we set the state of each of the tools to 0:

function MakeToolsAvailable(sender) {
    var editor = sender;
    editor.getToolByName('example').setState(0);
    // etc
}

 

Both of these are working fine as evidenced by the buttons looking available and the sanity check test I ran by putting console.logs in them. This last bit is the part that breaks.

Telerik.Web.UI.Editor.CommandList["example"] = function (commandName, editor, args) {
     // Everything here runs fine in design mode, but not in preview mode
};

Rumen
Telerik team
 answered on 04 Jun 2018
3 answers
359 views
Together with Telerik components I'm using jQuery 1.6.2

What I'm trying to know is if there is a client event that tells me when does all controls ready, as the page still keeps loading Telerik javascript even after jQuery Document Ready and DOM Ready.

So I can hide the "Loading" div...

Thank you.
Rumen
Telerik team
 answered on 04 Jun 2018
2 answers
144 views

Hi Telerik,

 

I want to know if is it possible to change the cursor when the mouse is over a RadIconTile object ?

I tried to apply a CSS style, but the modification is not considered.

 

Thank you.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 04 Jun 2018
3 answers
316 views

GridCalculatedColumn has a Property called "Expression", what could it contain?

These are valid:

iif(condition, trueResult, falseResult)
{0}*{1}
Convert.ToString({0})

How to format the result of the expression?

e.g. this doesn't work:

iif(condition, String.Format"{0:0.00}%", {0}), "NA")

This Expression doesn't seem to be the same as the .NET Data Column Expression either as I tested it and at least the Len and Convert methods are not supported.

Please help.

Thanks,

Vinh
Top achievements
Rank 1
 answered on 04 Jun 2018
1 answer
118 views

Hi,

I have a Hierarchy Binding raggrid with details table , I would like to change the header text and width from code. I was able to do that on mastertableview but not able to reach the details table.

For Each col As GridBoundColumn In rgTestGrid.MasterTableView.AutoGeneratedColumns
 
col.HeaderStyle.Width = Unit.Pixel(65)
 
Next

Is there any way to change the column header with of details table like this?

Thanks in advance

regards

 

Eyup
Telerik team
 answered on 04 Jun 2018
0 answers
95 views

Telerik UI for ASP.NET AJAX R2 2018.  When I use the AntiXssEncoder as the default encoder...
 web.config 
    <httpRuntime encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary" maxRequestLength="102400"/>

A mistake as a figure

 

gao
Top achievements
Rank 1
 asked on 03 Jun 2018
4 answers
885 views

In the parent page, it had a preview button to prompt a radwindow.

How can I refresh the grid in parent page when user click the Close [X] button of the radwindow.

The radwindow generate in code behind:


Protected Sub rtbMenu_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles rtbMenu.ButtonClick
    If e.Item.Value = "Preview" Then
        Dim url = "~/TrainingAdmin/SIMPER_view.aspx?SIMPER_ID=0&UserID=" & Request.QueryString("UserID") & "&From=" & RadDatePicker_ValidFrom.SelectedDate & "&To=" & RadDatePicker_ValidTill.SelectedDate
 
        Dim windowManager As New RadWindowManager()
        Dim window1 As New RadWindow()
        ' Set the window properties  
        window1.NavigateUrl = url
        window1.ID = "RadWindow1"
        window1.Height = 750
        window1.Width = 740
        window1.Top = 140
        window1.Left = 250
 
        window1.AutoSize = False
        window1.VisibleTitlebar = True
        window1.VisibleStatusbar = False
        window1.VisibleOnPageLoad = True           
 
        ' Set this property to True for showing window from code  
        windowManager.Windows.Add(window1)
        Me.Form.Controls.Add(window1)
 
    ElseIf e.Item.Value = "Refresh" Then
        Response.Redirect("~/TrainingAdmin/SIMPER_details.aspx?userID=" & Request.QueryString("UserID"))
 
    End If
End Sub

Marin Bratanov
Telerik team
 answered on 01 Jun 2018
1 answer
340 views

Dear All,

i need to show a bar graph.

First x-axis - Month like January, February etc. .

Second X axis- every month i need to show two countries  like USA, UK

Y Axis- Total Amount. 

Per country, month expense is Y1 and forecast amount is Y2.

if i can combine Bar chart with bullet charge will achieve my goal. or if Bar chart can show "Target" also will be ok. appreciate your help.

i attached a demo graph for your reference. 

 

Marin Bratanov
Telerik team
 answered on 01 Jun 2018
4 answers
242 views

Hi,

I have a aspx content page which is using a master page. In my content page I have two RadMultiPage controls and a RadTabStrip control. One RadMultiPage is assigned to RadTabStrip through the MultiPageID property. The second RadMultiPage has by default set the SelectedIndex to 1. What i try to do, is to change the second RadMultiPage selected index on RadTabStrip OnClientTabSelected event. Looking at the samples and the documentation i came up with something like that:

function clientTabSelected(sender, args) {
            var multipage = document.getElementById('<%= ribbonMultiPage.ClientID %>');
            var v = multipage.findPageViewByID("accountsView");
            if (v)
                alert('got it');
            else
                alert('null.');
        }

where ribbonMultiPage is the id of the second RadMultiPage. When i run the code i got the exception "Object doesn't support this property or method" on line var v = multipage.findPageViewByID("accountsView");. Could you point me a solution to that?

Peter Milchev
Telerik team
 answered on 01 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?