Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
533 views

I have 3 buttons on my page and when I hover over them I want to return a service that pops up the information via a service.  Is it possible to hover over and asp button and then return a special Id to the service to then look up information or is this a bridge to far.

 

<tr>
                                <td style="font-size: 12px; border: 1px inset lightgray; border-right: none; font-weight: bold; font-family: Arial">UTA</td>
                                <td style="border: 1px inset lightgray; border-left: none">
                                    <asp:ImageButton ID="imgUTA" runat="server" Height="28px" Width="28px" /></td>
                                <td style="font-size: 12px; border: 1px inset lightgray; border-right: none; font-weight: bold; font-family: Arial">APFT</td>
                                <td style="border: 1px inset lightgray; border-left: none">
                                    <asp:ImageButton ID="imgAPFT" runat="server" Height="28px" Width="28px" /></td>
                                <td style="font-size: 12px; border: 1px inset lightgray; border-right: none; font-weight: bold; font-family: Arial">Admin</td>
                                <td style="border: 1px inset lightgray; border-left: none">
                                    <asp:ImageButton ID="imgAdmin" runat="server" Height="28px" Width="28px" /></td>
                            </tr>

Danail Vasilev
Telerik team
 answered on 25 Aug 2015
1 answer
93 views

Hi,

I'm experiencing a weird problem related to RadAjaxManager on a SharePoint 2103 layout page. From time to time (it seems quite random) "ajaxified" buttons (i.e. the ones under control of RadAjaxManager) issue a full postback instead of a partial AJAX request. As a result, values entered on a form (in text boxes, drop-down lists etc) are lost because the entire page is pull out from the server. This is a really bad user experience.

I did my research and it seems that disabling Forms Authentication in IIS of my SharePoint web application fixes the issue. The question is why does it fix the problem? I don't understand how RadAjaxManager can be related to Forms Authentication. I have to explain that to my client.

Thanks,
Leszek

Maria Ilieva
Telerik team
 answered on 25 Aug 2015
2 answers
197 views

Anyone have any experience with integrating Google fonts available from http://fonts.googleapis.com with Telerik's AJAX controls?  I've got a client who's wants to use these fonts instead of the fonts built into the various skins. Tips would be welcome.

Kelvin
Top achievements
Rank 2
 answered on 25 Aug 2015
4 answers
120 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.3K+ 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
120 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
172 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
108 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
216 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
169 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?