Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
168 views
Hi there,

I am trying to make the exact demo as http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/group-footers/defaultcs.aspx for a nestedviewtemplate , however, it doesnt work. 
I do basically have a grid and another grid as a nested one into the master, and I would like to make a footer total calculation in the nested grid template.
Any idea ?
thank you
Princy
Top achievements
Rank 2
 answered on 15 Jul 2014
12 answers
651 views
Hello! 

I'm currently using Radcontrols with version 2012.2.724.40

I have a login page, and when the page is loaded, the radtextbox used for the login input becomes automaticly filled with text by the browser memory with the last login used. When i do a postback the radtextbox returns empty string on the server side. Also in the server side when using requiredfiledvalidator it fires the error message indicating the field is empty.

Another way to test this problem is to fill any radtextbox in the form, then redirecto to another page, and then with the browser return button go back to the same page, see the previous filled text in the radtexbox's and confirm that they keep returning empty values both on client side or server side.

This problem only occurs in this current version. With 2012 Q1 or older releases it works fine.
Emre
Top achievements
Rank 1
 answered on 15 Jul 2014
4 answers
294 views
Hi,

Below describes my page:
A ValidationSummary control at the top of my page.
A RadComboBox with a RadTreeView as the ItemTemplate.
A password textbox with a RequiredFieldValidator to validate this textbox(validation group = save )
An input type='file' control
A RadToolBar with submit button with validation group = save

Because the RadTreeView will cause a full postback(which will clear the file control), i'm setting the OnClientNodeClicking event to raise the ajax Request.
This works fine(file control will not be cleared) but there is a problem with this. Whenever i select a node in the TreeView and the password textbox is empty, the error messages is appended to the validation summary control rather than overweriting it.

This reproduces the problem:

1) Leave the password textbox empty
2) Select the tree view node(3 times)
3) While the password textbox is still empty, click on the submit
4) You will see the error messages showing three times. If step 2 is repeated 10 times, then the message will have 10 duplicates.

Why is this happening?

I hope someone can help.

Regards,
Dexter
Shinu
Top achievements
Rank 2
 answered on 15 Jul 2014
10 answers
643 views
I have a RadComboBox with CheckBoxes="true". Everything is working fine. However, the user has to click exactly on the checkbox to check/uncheck the item. How to enable the item to toggle checked state when the user clicks anywhere within the item?

I have also set the AutoPostBack="true" for this combobox. In the earlier version, the user could check/uncheck as many items as they want and the postback would occur on taking focus out of the combobox. I updated the project to use Telerik.Web.UI.dll v2011.3.1305.40. But now the control does a postback every time an item is checked/unchecked. How to revert it back to the old behavior?

Thanks,
Raghu
Hristo Valyavicharski
Telerik team
 answered on 15 Jul 2014
1 answer
253 views
Does anyone have a way of adding a onmouseover/onmouseout event to the x axis labels in a bar chart?  I was able to add a click event to the x axis labels using the axisLabelClick event.  From what i've read there is no built in event for the hover of the x axis labels.  Does anyone have a custom way to do this?

I'd like the x axis labels to look and act like a hyperlink (cursor pointer and underline upon onmouseover)

<telerik:RadHtmlChart runat="server" ID="BarChart" Height="400" Transitions="true" DataSourceID="ChartsDataSource" OnClientSeriesClicked="OnClientSeriesClicked">
            <PlotArea>
                <Appearance>
                    <FillStyle BackgroundColor="#c5d291"></FillStyle>
                </Appearance>
                 <Series>
                    <telerik:BarSeries DataFieldY="PercentPaid">
                        <Appearance FillStyle-BackgroundColor="#729021"></Appearance>
                        <LabelsAppearance Position="InsideBase" Color="White">
                            <ClientTemplate>
                                $#=dataItem.PaidToDate#
                            </ClientTemplate>
                        </LabelsAppearance>
                    </telerik:BarSeries>
                </Series>
                <XAxis DataLabelsField="CustomerName" Reversed="false" >
                    <TitleAppearance Text="Customer Name" Visible="false">
                        <TextStyle Margin="20" />
                    </TitleAppearance>
                    <MajorGridLines Visible="false" Width="0" />
                    <MinorGridLines Visible="false" />
                </XAxis>
                <YAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickSize="1" MajorTickType="Outside"
             MinorTickSize="1" MinorTickType="Outside" MinValue="0" MaxValue="100" Reversed="false">
                   <LabelsAppearance DataFormatString="{0}%" RotationAngle="30" Skip="0" ></LabelsAppearance>
                   <MajorGridLines Color="#EFEFEF" Width="0"></MajorGridLines>
                   <MinorGridLines Color="#F7F7F7" Width="0"></MinorGridLines>
                   <TitleAppearance Position="Center" RotationAngle="0" Text="Percent Paid" ></TitleAppearance>
                </YAxis>             
            </PlotArea>
        </telerik:RadHtmlChart>
Danail Vasilev
Telerik team
 answered on 15 Jul 2014
8 answers
277 views
I have a RadTree controls in a single page divided by tabs, 1st tab two radtrees, 2nd tab three, 3rd tab   three.
Child nodes are expanding LoadOnDemand event.

I gonna maintain Tree view state(without session) though user refresh the page. If user expands parent node and press F5 button we have to show expanded nodes as it is. 

Private Shared dictOriginTree As New Dictionary(Of String, Boolean)

Protected Sub rtvOriginTree_NodeExpand(sender As Object, e As RadTreeNodeEventArgs)        
        If Not dictOriginTree.ContainsKey(e.Node.UniqueID) Then
            dictOriginTree.Add(e.Node.UniqueID, e.Node.Expanded)
        End If
    End Sub

Protected Sub ramMasterDocumentsAjaxManager_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)
Dim node As RadTreeNode
                For Each node In rtvOriginTree.GetAllNodes()
                    If dictOriginTree.ContainsKey(node.UniqueID) Then
                        node.ExpandParentNodes()
                        node.ExpandChildNodes()
                        node.Expanded = dictOriginTree.Item(node.UniqueID.ToString())
                        node.ExpandMode = TreeNodeExpandMode.ServerSide
                    End If
                Next
End Sub
Hristo Valyavicharski
Telerik team
 answered on 15 Jul 2014
5 answers
125 views
Hello,
how to change the names of the fonts in dropdown  in french  language,  without changing the names of their font file (English)

Thanks,
walid2013
Top achievements
Rank 1
 answered on 15 Jul 2014
1 answer
152 views
I am using a RadHtmlChart that calls a javascript method when a series is clicked:

<telerik:RadHtmlChart runat="server" ID="SBarChart1" Transitions="false" EnableTheming="true" CssClass="Chart"
                    OnClientSeriesClicked="OnBarClientSeriesClicked" > ...

The chart is bound to a DataTable.  The first row in the table has the data:

- resultsTbl.Rows[0].ItemArray {object[5]} object[]
[0] "Jan '13" object {string}
[1] "012013" object {string}
[2] 5510.83 object {decimal}
[3] 0 object {decimal}
[4] 0 object {decimal}

As you can see the second item is a STRING with a value of "012013".  The column name for this field is "CategoryID.  Take note of the leading zero in the string!

When a user clicks on a chart series, the Javascript OnClientSeriesClicked method is called and I retrieve the data from the series using the args.get_dataitem() method:

function BarClientSeriesClicked(sender, args) {
    var theDataItem = args.get_dataItem();
    ...

The data I get back in the VAR theDataItem is:
CategoryText   "Jan '13"
CategoryID      12013
Domestic          5510.83
International      0

As you can see the Type of the CategoryID field has changed from STRING to an INTEGER (the value is no longer quoted). A side effect of this TYPE change is that my string value has changed (the leading zero has been removed)! Somewhere after the databind of the chart to the DataTable, and before the Javascript method call occurs, something is reinterpreting my STRING field as an INTEGER and changing the type.  

I want my bound STRING fields to remain as STRING types when I retrieve the data in the Javascript BarClientSeriesClicked method.  A side effect of changing the field type is the leading zero is truncated and my string comparison no longer works (my later code is expecting a string containing a two-digit month and four digit year which is no longer the case).

I believe this is a bug somewhere deep in the RadHtmlChart code.  As you can see I am binding a STRING field to the chart and I have nothing else to do with the data until the chart calls the OnClientSeriesClickedEvent where the data type has magically changed.

I have a work around where I can force a non-numeric character at the start of my string (e.g. prepend the letter 'a' to my original CategoryID value, e.g. 'a012013'). After I get the data value with args.get_dataItem(), my value remains as a STRING type (as you can see the value is now quoted indicating it is a STRING type):

CategoryText   "Jan '13"
CategoryID      "a012013"
Domestic          5510.83
International      0

I can then strip off the leading 'a' character and I have a CategoryID of type STRING that is properly formatted with my leading zero intact.

Even though I have a work around I am bringing this up because it seems to be a bug somewhere in the RadHtmlChart code.

Thanks

Courtney


Danail Vasilev
Telerik team
 answered on 15 Jul 2014
1 answer
77 views
I have two Radcombobox which the first one is binding to a dataTable. when the Item is selected from the first radcombobox according to that the second one Items maybe populated or if not we have to be able to type in it. when I click in the second one to type (for example:5555) the drop down collapses and 5555 is removed and it shows the default text so fast and the user oblige to open it again. I want the Radcombobox doesn't get refresh.
Shinu
Top achievements
Rank 2
 answered on 15 Jul 2014
1 answer
124 views
using a standard radgrid with an editform template when I look at the popup it does have the same look as a radwindow. I'm using the metro skin and would expect flat icons but the close window icon is not. also the window title bar is white but the radwindow title bar is blue. shouldn't they match?
Venelin
Telerik team
 answered on 15 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?