Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
154 views

Can we programatically add a TextBlock to a ChartTitle?

The reason is to display a multiline title, with a different style applied to each line so that I could display something like,

MAIN TITLE
Sub Title

Where the font size of "Sub Title" is smaller than "MAIN TITLE".  I tried declaring new textblocks separately, then adding them to a charttitle, but it gives me a null object error when creating the textblock like,

TextBlock newBlock1 = new TextBlock(chartName);
Petar Marchev
Telerik team
 answered on 05 Dec 2011
2 answers
101 views
We have a line chart that uses a stored procedure for data. There is a combo box that allows the user to select a different category, and to view the chart for that category. When the chart first loads, it has the expected line colors for the selected theme. When the combo box value is changed the chart reloads properly, but the line colors change. Here's the definition for the chart.
<telerik:RadChart ID="RadChartCategory" runat="server" DataSourceID="dsChartData" Width="950" Height="650" Skin="Vista">
        <PlotArea>
        <YAxis>
            <Appearance CustomFormat="#,#">
            </Appearance>
        </YAxis>
        <XAxis DataLabelsColumn="StringDate" LabelStep="4">
        </XAxis>
    </PlotArea>
    <Series>
        <telerik:ChartSeries DataYColumn="Scenario1" DefaultLabelValue="" Name="Scenario 1"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="Scenario2" DefaultLabelValue="" Name="Scenario 2"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="Scenario3" DefaultLabelValue="" Name="Scenario 3"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="Theoretical" DefaultLabelValue="" Name="Theoretical Capacity"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="NetEffective" DefaultLabelValue="" Name="Net Effective Capacity"
            Type="Line">
        </telerik:ChartSeries>
    </Series>
    <ChartTitle>
        <TextBlock Text="Labour Demand">
        </TextBlock>
    </ChartTitle>
</telerik:RadChart>

The only other code affecting the chart is to update the chart title when the selected value changes.
Protected Sub RadComboBoxCategory_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBoxCategory.SelectedIndexChanged
    RadChartCategory.ChartTitle.TextBlock.Text = "Labour Demand - " & RadComboBoxCategory.SelectedItem.Text
End Sub

I've attached a before and after image of how the chart appears. This seems to occur with any Skin. Subsequent reloads keep the same colors as the first reload.

Any ideas?
Derek
Top achievements
Rank 1
 answered on 05 Dec 2011
1 answer
178 views
Hello,

I have zip file on my machine. in which i have csv file.

i need to unzip that file and read the data from csv file.

Is there any way in Telerik to unzip , zip file on machine.

Thanks
Princy
Top achievements
Rank 2
 answered on 05 Dec 2011
3 answers
130 views
I have a rad combo box which is being databound as follows...

'Now populate the Managers Drop down
           rsMain = GeneralDataMethod.GetAllApprovedManagers
           While rsMain.Read
               cboManager.Items.Add(New RadComboBoxItem(rsMain("Manager"), rsMain("ManagerID")))
 
           End While
           cboManager.Items.Insert(0, New RadComboBoxItem("- Please select -", ""))

I would like to add a 3rd item from the database into the combo box (email address, the sp gives me this) but not display in the drop down but have it available to me when the user selects a manager from the drop down.

Is this possible using code behind?

TIA.

S


Dimitar Terziev
Telerik team
 answered on 05 Dec 2011
2 answers
127 views
Hi all,
I am using RADGRiD to develop my Web App.
In my RadGrid I use "radio button" in it. => every row in Grid, We have a radio button.

When I click on a radio button=> this radio button is checked.
And then I continue click on the other RADIO Button=> tat Radio button is checked too but the previous Radio button is still Check.

What I want: WHen I click on the second RADIO Button=> the First Radio button will be unchecked.

Please view the image in attached file.

Please help me to do it.
Thanks alot!

Ky
Top achievements
Rank 1
 answered on 05 Dec 2011
4 answers
145 views
Hi,

I was working on Exporting RADGrid data to Excel using ExcelML approach. While exporting I have given and want following name (IncomeStatement_MSFT_xNAS) to the file. I have set this using RadGridFS.ExportSettings.FileName property.

Most of the times, exported file has correct name but randomly it start appending garbage character to it. Given below are different names with random garbage characters appended by grid exporter:
IncomeStatement_MSFT_xNASCAN3IT2H
IncomeStatement_MSFT_xNASCAJPY7HM

What could be the issue? Any help/fix?

Thanks in anticipation.
Daniel
Telerik team
 answered on 05 Dec 2011
1 answer
167 views
I have a splitter control within a User control on a page containing two panes with a grid in each and am trying to size the splitter control on load to fit the available space. I have added a hook to the javascript function with OnClientLoaded="sizeSplitter".

The javascript I'm using is:

function sizeSplitter(sender, args) {
                var w = browserWidth() - 10;
                var h = browserHeight() - 200;
                alert('height=' + h + ' width=' + w);
                sender.get_element().style.height = h;
                sender.get_element().style.width = w;
            }

This returns the browser width and height fine and displays them using the alert, but the splitter seems to be stubbornly remaining the same size as defined.
Dobromir
Telerik team
 answered on 05 Dec 2011
1 answer
92 views
When will the Metro skin be available as a base skin in the Skin Builder?
Thanks!
Bill
Ivan Zhekov
Telerik team
 answered on 05 Dec 2011
1 answer
52 views
Hi,

I am using the RADEditor SharePoint version and also got the fullpledged tool from the telerik URL but when trying to apply the "Apply CSS" option page is going to "No Reponse" mode and never coming up

Do we need to have some pre-defined classes in places ?

Regards
-Roopesh
Rumen
Telerik team
 answered on 05 Dec 2011
1 answer
76 views
Hey guys, i know this one might be a bit wierd.  I have a client who is trying to design an html page using the RadEditor (upgraded to the latest internal build this week).  The HTML has some IE tags enclosed in html comment fields.  they do some browser detection and then write out the <HTML> tag with the appropriate style tags added.  They want the code to look like this:

<!doctype html>
<!--[if IEMobile 7]><html class="no-js iem7 oldie"><![endif]-->
<!--[if lt IE 7]><html class="no-js ie6 oldie" lang="en"><![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js ie7 oldie" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js ie8 oldie" lang="en"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html class="no-js" lang="en"><!--<![endif]-->

but when i insert this into the RadEditor it comes out looking like this:

<html class="no-js" lang="en"><!--<![endif]--><!--[if (gte IE 9)|(gt IEMobile 7)]><!--><!--<![endif]-->

How can i configure, or what can i add to my editor code to prevent this re-write from occurring?

Thanks!
-Mark
Rumen
Telerik team
 answered on 05 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?