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

Hello,

I have a bar chart (attached) the labels need to be moved outside the chart on the left so they are not covering the bars.

I have seen this as an issue going back to 2012 in the forums.. Its 2017 so I cant imagine this is still an issue.

If it is still an issue what is the work around? Is there a hack? I looked to see if I could use CSS but it does not seem so.

I tried AxisCrossingValue... it moves the bars so they don't line up with the correct X-Axis Labels... so that does not work.

 

I really need this to work.

Thanks,

Charles

 

Stamo Gochev
Telerik team
 answered on 20 Jan 2017
2 answers
273 views

I have a RadAsyncUpload somewhere on a page and a RadGrid in the same page.The RadGrid has a column for every row that is a LinkButton which executes a grid ItemCommand. The ItemCommand fetches the ID associated to the row and stores it in a session variable. I want the item command to also then bring up the RadAsyncUpload window so the user could select files.

 

The way I tried to achieve this so far is by calling a javascript function which finds the RadAsyncUpload control and performs a button click. This does not happen after postback, however. 

 

It is crucial to me that each file I upload is associated with a row ID. Is there a way I can achieve this scenario or am I limited by the RadAsyncUpload controls functionality?

Ivan Danchev
Telerik team
 answered on 20 Jan 2017
0 answers
166 views

I am trying to change the background colors of individual bars to red and green

TryCast(RadHtmlChart1.PlotArea.Series(0), BarSeries).SeriesItems(0).BackgroundColor = System.Drawing.Color.Red.

Chart works great and I am binding to a datatable

RadHtmlChart1.DataSource = DifferenceDT
RadHtmlChart1.DataBind()

 

The error is on SeriesItems (Out of Range) and count is 0 when I inspect. 

Am I  doing something wrong?

Here is my .aspx code

<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" Style="width: 100%; height: 98%;">
    <PlotArea>
        <Series>
            <telerik:BarSeries DataFieldY="Count" Name="Count" >
                <LabelsAppearance>
                    <TextStyle Color="White" />
                </LabelsAppearance>
            </telerik:BarSeries>
        </Series>
        <XAxis DataLabelsField="Name"  >
            <LabelsAppearance>
                <TextStyle Color="White" />
            </LabelsAppearance>
            <MinorGridLines Visible="false" />
        </XAxis>
        <YAxis AxisCrossingValue="0" Step="1"  >
            <MinorGridLines Visible="false" />
            <LabelsAppearance>
                <TextStyle Color="Blue" />
            </LabelsAppearance>
        </YAxis>
    </PlotArea>
</telerik:RadHtmlChart>
Charles
Top achievements
Rank 1
 asked on 19 Jan 2017
5 answers
589 views
SOS -----  SOS.

I have a RadGrid with FormTemplate having approx 30 controls including ASP.NET validation controls.
I have a ClientSide CustomValidator which needs to access other control on the form using Javascript/JQuery to read its value  and also enable or disable some of Other validation controls.

I tried to write following line on a clientside in a CustomValidation Control

ValidatorEnable($(

 

'RequiredFieldValidator4'), value);

 

But that does not work and returns error "Microsoft JScript runtime error: 'null' is null or not an object"
I also want to access other controls like textbox, RadmaskedTextbox etc inside CustomValidator control.

Please tell me how to I get a successfull access to these controls.

Regards
JD


<EditFormSettings EditFormType="Template" PopUpSettings-Width="900px" 
CaptionFormatString="Edit Property: {0}"
CaptionDataField="PropertyName"
InsertCaption="Add New Property"
PopUpSettings-Modal="true"
PopUpSettings-Height="500px"
PopUpSettings-ScrollBars="Vertical">
    <FormTemplate >
  
      ASP:RadTextBox  ......
       
   ASP:RadCombobox
  
  ASP:RequiredFieldValidator
  
 ASP:CustomValidator
  
   etc..... (approx 30 other controls)
    </FormTemplate >
MV
Top achievements
Rank 1
 answered on 19 Jan 2017
9 answers
162 views

W.r.t to Excel like filtering in radgrid. I am trying to call a webservice using -

ADMIN: Code removed upon OP request.

Requirement : To use Webservice , I have 40 columns so planning to send Column name as a context to WS method and reuse the select query for all..
eg)

 

ADMIN: Code removed upon OP request.

Marin Bratanov
Telerik team
 answered on 19 Jan 2017
3 answers
115 views

I have map with two layers (shapes and bubbles).

Seems i can use tooltips only on active layer

Any recommendations?

Thank you

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 19 Jan 2017
7 answers
417 views
Is there a way to get the RadAsyncUpload work in a modal jQuery ui dialog?

~ Matt

 

 

 

    <script type="text/javascript">  
        $(document).ready(function () {  
            $("#uploadImageDialog").dialog({  
                autoOpen: false, modal: false, resizable: false, height: 200, width: 450,  
                title: 'Bild hochladen'  
            });  
 
            $('#uploadImageDialogOpener').click(function () {  
                $("#uploadImageDialog").dialog('open');  
            });  
        });  
    </script> 
    <div id="uploadImageDialog" style="width: auto;">  
          
        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions="jpg" 
                            ControlObjectsVisibility="None" Culture="German" EnableFileInputSkinning="False" 
                            MaxFileInputsCount="10"  AutoAddFileInputs="False">  
                            <Localization Remove="Entfernen" Select="Auswählen" /> 
                        </telerik:RadAsyncUpload> 
          
    </div> 
Veselin Tsvetanov
Telerik team
 answered on 19 Jan 2017
4 answers
139 views

Hi,

I have added  RadPivotGrid to my vb.net page and RadPersistenceManager . I managed to save and load the user current state with the following:
 RadPersistenceManager1.StorageProviderKey = fileId
  RadPersistenceManager1.SaveState()

However, I need to get the XML and save the XML in the db and then load the xml when user clicks the load button.
How do I load and save XML from database?

Thanks

newp
Top achievements
Rank 1
 answered on 19 Jan 2017
1 answer
349 views

Hi

 

I am looking to write a custom aggregate that sums a column but excludes certain rows.

On this grid there are 2 groups applied. I have the sum working for the first level of groups but not the total of the second group level or the total of the whole grid

They just seem to show the values of the row above

 

Any ideas? 

 

 Private Sub grid_CustomAggregate(sender As Object, e As GridCustomAggregateEventArgs)
        Dim total As Decimal = 0
        if TypeOf (e.item) is GridGroupFooterItem then
            If TryCast(e.Column, GridBoundColumn).DataType = GetType(Decimal) Then
                For Each groupHeader As GridGroupHeaderItem In _grid.MasterTableView.GetItems(GridItemType.GroupHeader)
                    Dim children As GridItem() = groupHeader.GetChildItems()
                    total = 0
                    For Each gridDataItem As GridItem In children
                        Dim item As GridDataItem = TryCast(gridDataItem, GridDataItem)
                        If TypeOf (item) Is GridDataItem Then
                            If item("exclude").Text <> "True" Then
                                total = total + CDec(item(e.Column.UniqueName).Text)
                            End If
                        End If
                    Next
                Next
            End If
        End If
        e.Result = total
    End Sub

Konstantin Dikov
Telerik team
 answered on 19 Jan 2017
3 answers
152 views

Hey, I'm having trouble getting a grid to popup inside the radwindow. getting the error- Object reference not set to an instance of an object.

I have a button that upon being clicked rebinds the chart and sets the popBlueBoxSales.VisibleOnPageLoad = true;

The controls are all properly updated in the AjaxSettings.

Here is the radwindow and grid. Thanks for the help!

<telerik:RadWindow ID="popBlueBoxSales" runat="server" Width="300px" Modal="true" Height="300px" Title="Description">
            <ContentTemplate>
                <telerik:RadGrid runat="server" ID="grdBlueBoxSalesQ" Height="270px" Width="90%" AllowPaging="true" OnItemCommand="grdBlueBoxSalesQ_ItemCommand" AllowSorting="true" Font-Size="Small" OnNeedDataSource="grdBlueBoxSalesQ_NeedDataSource" Visible="true" style="height:auto; margin-bottom:2%; margin-left:5%">
                    <ClientSettings AllowColumnsReorder="true" AllowExpandCollapse="true" Selecting-AllowRowSelect="true" ReorderColumnsOnClient="true">
                        <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                        AllowColumnResize="True"></Resizing>
                    </ClientSettings>
                        <MasterTableView CommandItemDisplay="Bottom" PageSize="5" AutoGenerateColumns="false">
                            <CommandItemTemplate>
                              <div style="float: right">
                              <asp:LinkButton ID="btnExportExcel" runat="server" CommandName="Export" >
                              <asp:Image runat="server" BorderStyle="None" ImageUrl="~/Images/Export.png" Width="16px" />&nbsp;Excel Export</asp:LinkButton>
                              </div>
                            </CommandItemTemplate>
                        <PagerStyle Mode="NextPrevAndNumeric" PageSizes="3,5,10" />
                   <Columns>
                                <telerik:GridBoundColumn DataField="ProjectDescription" HeaderText="Project Description" AutoPostBackOnFilter="True"
                                SortExpression="" CurrentFilterFunction="StartsWith"  />
                             </Columns>
                     </MasterTableView>
                 </telerik:RadGrid>
            </ContentTemplate>
        </telerik:RadWindow>

Vessy
Telerik team
 answered on 18 Jan 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?