Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
107 views

Hello,

We are facing this issue currently in chrome browser wherein, whenever the font-size/font-family is changed from dropdown, it is not reflected for the text we enter thereafter rather penultimate font-size/font-family is considered. This works fine whenever we select the text first and apply the changes.

To add to this, we have recently upgraded to Telerik ASP.Net Editor v.2015.2.729.45. This seems to be common issue across community, but none of the proposed solutions worked for us.

Also, same issue is reproduced at http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx demo page.

Can you please look into this issue?

Thanks,

Muktesh

Danail Vasilev
Telerik team
 answered on 25 Aug 2015
6 answers
3.2K+ views
Hello

I want to execute a javascript function, after a button click

It's easy to execute javascript and after postback  on the same button, but not postback and after javascript !

Please help me !

Anne
pedrotti
Top achievements
Rank 1
 answered on 25 Aug 2015
1 answer
109 views

Hi 

i Have a Raddockzone with raddock with in the dock how can i place the usercontrol .

In  usercontrol i have a radhtmlchart how can i dynamically create the radchart with in the raddock any suggestions.

 

Thakns.

Slav
Telerik team
 answered on 25 Aug 2015
1 answer
156 views

I have wasted almost 20 hours over this. 

My grid was not binding data when I used NeedDataSource. When I used Basic DataBinding on PageLoad/PreRender, My Item command event fired, but Delete Command event handler didn't and showed this error:

"" Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. ​
Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.​  ""

For that I had to use NeedDataSource as I read on forum that we need to use NeedDataSource for that. When I used NeedDataSource my grid didnt show any data.

My grid is in a RadTabStrip. At first when the page is loaded, the grid tab is not selected. However the NeedDataSource executes & sets DataSource to null because a reuired queryString value is not present on first page load. Then I append a queryString value and press enter, again NeedDataSource gets called & this time binds the grid with the queryString parameter, however the RadTabstrip that contains the grid is still not selected and some other tab is selected on page load. Now when select the tab that contains the grid, NeedDataSource doesnt get called, and there s nothing in place of the grid (The grid is not bound to any data).  

 

I wasted so many office hours on this, but to no avail. I created a separate sample project for you to assess, however the issue did not occur in that sample. And trust me when I say this, I replicated each and everything in that sample, each and every property was exactly the same as was in my initial project, but in the sample the Grid showed data, I even replicated the RadTabStrip process to ensure that the events get called in exactly that same manner.

 

The Soultion:

Just 5 minutes ago I set MasterTableView's EnableViewState property to false. This solved the problem, Grid gets bond with data, NeedDataSoruce gets called everytime, Delete & Item Command event handler execute just fine. BUT in my sample project, I did not set EnableViewState=false of MasterViewTable tag. 

Why wasnt the issue replicated in that project & why is this absurd behavior happening? Too much time wasted for just a petty issue, setting one property made it work in one project, however in another project the issue didnt occur at all. What is the possible reason kindly elaborate. What is the drawback of using EnableViewState = false of masterViewTable other than hitting the DB every time & is there any other way than setting ViewState to false.

 

Regards,

Zepp.

Kostadin
Telerik team
 answered on 25 Aug 2015
3 answers
97 views

I need the FileExplorer control to handle encrypted files. Since all access to the files needs a encryption/decryption key is there an easy way to accomplish this?

If the only way is to override all the controls functionality is there a same project of overriding everything out there?

Vessy
Telerik team
 answered on 25 Aug 2015
1 answer
204 views

I am trying to work with the HTMLChart negative numbers while setting the Min & Max values on the Y axis.  Logic works fine with all dollar/percentages whose values are greater than 0 (zero).  The X-axis is all the way in the middle and I have implemented the code suggested here

Any other suggestions on how I can get the X-axis to remain at the bottom even for negative numbers?  I have included the code below

<telerik:RadScriptBlock runat="server">
        <script>
            function BottomXAxisLabels() {
                var chart = $find("<%=RadHtmlChart1.ClientID%>").get_kendoWidget();
            var axis = $telerik.$.extend(true, {}, chart.options.categoryAxis);
            axis.line.visible = false;
            chart.setOptions({ categoryAxis: [{}, axis] });
            chart.options.valueAxis.axisCrossingValues = [0, -99999999999];
            chart.redraw();
            }
 
            function onRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("_btnXLSExport") >= 0) {
                    args.set_enableAjax(false);
                }
            }
            function OnSeriesClick(args) {
                var kendoWidget = args.sender;
                alert("You clicked on a series item with value '" + args.value + "' from category '" + args.category + "'.");
            }
 
    </script>
    </telerik:RadScriptBlock>
 
                    <telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" Visible="false" Legend-Appearance-Position="Top" Width="95%">
                        <ClientEvents OnLoad="BottomXAxisLabels" OnSeriesClick="OnSeriesClick" />
                        <PlotArea>
                            <Series>
                                <telerik:ScatterLineSeries DataFieldY="ReturnedValue" DataFieldX="cycle_Date">
                                    <TooltipsAppearance Color="White" >
                                    </TooltipsAppearance>
                                    <LabelsAppearance Visible="false">
                                    </LabelsAppearance>
                                </telerik:ScatterLineSeries>
                            </Series>
                            <YAxis>
                                <LabelsAppearance>
                                    <TextStyle Bold="true" />
                                </LabelsAppearance>
                                <MinorGridLines Visible="false"></MinorGridLines>
                                <MajorGridLines Visible="false"></MajorGridLines>
                            </YAxis>
                            <XAxis DataLabelsField="cycle_Date" BaseUnit="Years" MajorTickSize="1" >
                                <LabelsAppearance Visible="true" RotationAngle="90" DataFormatString="Year {0:yyyy}">
                                    <TextStyle Bold="true" />
                                </LabelsAppearance>
                                <TitleAppearance Text="Dates">
                                    <TextStyle Bold="true" />
                                </TitleAppearance>
                                <MinorGridLines Visible="false"></MinorGridLines>
                                <MajorGridLines Visible="true"></MajorGridLines>
                            </XAxis>
                        </PlotArea>
                        <ChartTitle>
                            <Appearance>
                                <TextStyle Bold="true" />
                            </Appearance>
                        </ChartTitle>
                        <Legend>
                            <Appearance Visible="true" Position="Bottom"></Appearance>
                        </Legend>
                    </telerik:RadHtmlChart>

 

The min value may be something like -0.0545423.  I am attempting to create a buffer to the min value and max value. 

Private Sub grdResults_SelectedIndexChanged(sender As Object, e As EventArgs) Handles grdResults.SelectedIndexChanged
     For Each item As GridDataItem In grdResults.SelectedItems
         Dim strID As String = TryCast(item.FindControl("lblRowField"), Label).Text
         Dim strID2 As String = TryCast(item.FindControl("lblRowText"), Label).Text
         Dim strID3 As String = TryCast(item.FindControl("lblRowNumber"), Label).Text
         Me.RadHtmlChart1.Visible = True
         GetData(strID, strID2, strID3)
 
     Next
 End Sub
 
Private Sub GetData(InField As String, InColumnName As String, InRowCount As String)
     Try
         oConn.Open()
 
         Dim ocmd As New SqlCommand("sp_seTrendTracking", oConn)
         ocmd.CommandType = CommandType.StoredProcedure
 
         With ocmd.Parameters
             .Add(New SqlParameter("@charter_num", Session("Charter_Num")))
             '.Add(New SqlParameter("@charter_num", 95778))
             .Add(New SqlParameter("@field", InField))
         End With
 
         reader = ocmd.ExecuteReader
 
         If reader.HasRows Then
             Dim dt As DataTable = New DataTable()
 
             dt.Load(reader)
             RadHtmlChart1.DataSource = dt
             RadHtmlChart1.ChartTitle.Text = InColumnName
 
             Dim dr As DataRow
             dr = dt.Rows(0)
 
             Dim percentage As Double = 0.1D    '10%
             Dim currentValue As Double
 
             If InRowCount <= 6 Then
                 RadHtmlChart1.PlotArea.YAxis.LabelsAppearance.DataFormatString = "{0:c0}"
                 RadHtmlChart1.PlotArea.CommonTooltipsAppearance.DataFormatString = "{0:c0}"
                 'Grab the current value in TextBox1
                 If Double.TryParse(dr("Minvalue"), Globalization.NumberStyles.Number, Nothing, currentValue) Then
                     'Add 10% of the value to it
                     currentValue -= dr("Minvalue") * percentage
                     RadHtmlChart1.PlotArea.YAxis.MinValue = currentValue.ToString
                 End If
 
                 If Double.TryParse(dr("MaxValue"), Globalization.NumberStyles.Number, Nothing, currentValue) Then
                     'Add 10% of the value to it
                     currentValue += dr("MaxValue") * percentage
                     RadHtmlChart1.PlotArea.YAxis.MaxValue = currentValue.ToString
                 End If
                 RadHtmlChart1.PlotArea.CommonTooltipsAppearance.DataFormatString = "{1:c0}<br/>{0:MMM yyyy}"
             Else
                 RadHtmlChart1.PlotArea.YAxis.LabelsAppearance.DataFormatString = "{0:p2}"
                 RadHtmlChart1.PlotArea.CommonTooltipsAppearance.DataFormatString = "{0:p2}"
                 If Double.TryParse(dr("Minvalue"), Globalization.NumberStyles.Number, Nothing, currentValue) Then
                     Dim MinValue As Decimal
                     MinValue = dr("Minvalue")
                     If dr("MinValue") < 0 Then
                         'percentage = -1.5D
                         currentValue += MinValue * percentage
                     Else
                         'Add 10% of the value to it
                         currentValue -= dr("Minvalue") * percentage
                     End If
                     RadHtmlChart1.PlotArea.YAxis.MinValue = currentValue
                 End If
 
                 If Double.TryParse(dr("MaxValue"), Globalization.NumberStyles.Number, Nothing, currentValue) Then
                     'Add 10% of the value to it
                     currentValue += dr("MaxValue") * percentage
                     RadHtmlChart1.PlotArea.YAxis.MaxValue = currentValue
                 End If
                 RadHtmlChart1.PlotArea.CommonTooltipsAppearance.DataFormatString = "{1:p2}<br/>{0:MMM yyyy}"
             End If
             RadHtmlChart1.DataBind()
         End If
     Catch ex As Exception
         MyLabel.Text = ex.Message
     Finally
         oConn.Close()
     End Try
 End Sub

 

 

 

Danail Vasilev
Telerik team
 answered on 25 Aug 2015
2 answers
164 views

Hi

In my grid, when I used Grouping, how do we remove the first row which it was a sort button. Please see attachment.

This is my code

 <telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true" CssClass="RadGrid RadGrid_Silk" OnItemCommand="itemClickRadGrid" Visible="true" OnItemDataBound="RadGrid1_ItemDataBound"                AllowSorting="True" AllowPaging="True" PageSize="100" ShowGroupPanel="True" AutoGenerateColumns="false" AllowFilteringByColumn="false" OnNeedDataSource="RadGrid1_NeedDataSource1">                <MasterTableView GroupLoadMode="Client" TableLayout="Fixed" EnableGroupsExpandAll="false" DataKeyNames="FilingIdentifier" ShowHeader="false">                    <GroupByExpressions>                        <telerik:GridGroupByExpression>                            <SelectFields>                                <telerik:GridGroupByField HeaderValueSeparator=" " HeaderText=" " FieldName="Name"></telerik:GridGroupByField>                            </SelectFields>                            <GroupByFields>                                <telerik:GridGroupByField FieldName="Name" SortOrder="None"></telerik:GridGroupByField>                            </GroupByFields>                        </telerik:GridGroupByExpression>                    </GroupByExpressions>                    <Columns>                        <telerik:GridBoundColumn DataField="TaxYear" HeaderText="Year" UniqueName="TaxYear"></telerik:GridBoundColumn>                        <telerik:GridBoundColumn DataField="PreviousFiling" Visible="false" UniqueName="PreviousFiling"></telerik:GridBoundColumn>                        <telerik:GridBoundColumn DataField="ForwardFiling" Visible="false" UniqueName="ForwardFiling"></telerik:GridBoundColumn>                        <telerik:GridButtonColumn Text="Launch" UniqueName="lauchrow" CommandName="launchRow" ButtonType="PushButton" HeaderStyle-Width="70px"></telerik:GridButtonColumn>                        <telerik:GridButtonColumn Text="Add tax year" UniqueName="addTaxYear" CommandName="cf" ButtonType="PushButton" HeaderStyle-Width="110px"></telerik:GridButtonColumn>                    </Columns>                </MasterTableView>                <GroupingSettings />                <ClientSettings AllowDragToGroup="false">                    <Selecting AllowRowSelect="true" />                </ClientSettings>            </telerik:RadGrid>

 

 

Thanks

Charles
Top achievements
Rank 1
 answered on 24 Aug 2015
6 answers
160 views
            <telerik:RadTreeView ID="rtvQuickshop" 
                                 runat="server" 
                                 LoadingMessage="Loading ... " 
                                 CheckBoxes="true" 
                                 PersistLoadOnDemandNodes="false" 
                                 EnableViewState="false" 
                                 ShowLineImages="false" 
                                 EnableEmbeddedScripts="false" 
                                 OnNodeDataBound="rtvQuickshop_OnNodeDataBound" 
                                 OnClientNodeChecking="NodeChecking" 
                                 OnClientNodePopulating="NodePopulating" 
                                 Skin="Web20"
                <WebServiceSettings Path="~/QuickShop.asmx" Method="GetNodes" /> 
             
            </telerik:RadTreeView> 

I have the following RadTreeView and in the client NodeChecking event I have the following

function NodeChecking(sender, eventArgs) 
    var node = eventArgs.get_node(); 
    if(node.get_checked()) 
    { 
        node.set_text('<img src="/Images/Refreshing.gif" alt="Removing from basket, please wait..." class="qs_refresh" /> <span class="qs_normal">Removing from basket, please wait...</span>'); 
    } 
    else 
    { 
        node.set_text('<img src="/Images/Refreshing.gif" alt="Adding to basket, please wait..." class="qs_refresh" /> <span class="qs_normal">Adding to basket, please wait...</span>'); 
    } 

But node.set_text does not work??????????????????????????????????????
Ivan Danchev
Telerik team
 answered on 24 Aug 2015
3 answers
88 views

    I have an ASP form which includes a Menu in the master page. In the attached image you will see it as a mobile-mode control with the "burger", to the left of the page title "LulaVision".

 I have a problem with one page based on this master, which includes a databound Panel control.

 The menu expands, but contents appear behind the Panel control even after adjusting the z-order settings.

 I have pushed the Panel down by 100px so that you can see it expand, yet additional items render BELOW the Panel, which is contrary to the defined layering in z-order.

Looking for suggestions on how to fix.

 Using v2015.2.623.45

Ivan Danchev
Telerik team
 answered on 24 Aug 2015
4 answers
105 views
Is there a way to add a custom button to the ImageGalllery toolbar that calls a javascript function?
Cheri Verdend
Top achievements
Rank 1
 answered on 24 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?