Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 views
My scenario:

I have a RadGrid where each item has a link that will open a RadWindow. Inside each radwindow, I have a textbox that will add comments, and once a comment is added, a grid will show in it's place with comment details inside. We only allow one comment, so when a user comes back to that item and clicks the link again, the radwindow will open and only show the comments grid. My issue is everything works fine until I close the radwindow, and open a new window where a comment hasn't been added. I see the comment box (as I should), but when I close this window and go back to the window where I just added the comment, it shows the comment box instead of the comments grid (even though it hits the logic in the codebehind), until I right-click and choose refresh. I'm using IE8. I've tried DestroyOnClose=true and that worked, except after it builds the initial RadWindow, if I close it and I click a new link to open a new window none of the properties from the rad window manager are saved and a default radwindow is opened in it's place. 

Any help on this would be greatly appreciated. If I haven't been descriptive enough I can provide more details
Derek
Top achievements
Rank 1
 answered on 24 Apr 2012
5 answers
114 views
I'm a little surprised there is no way to default this information.  I can understand letting the user edited what is being sent but in my case what is being shared is the result of tasks they have completed and the user really doesn't have easy access to all the data.

I hope that this functionality is being considered. ( or that I'm wrong and it can be defaulted )

Andy
Marin Bratanov
Telerik team
 answered on 24 Apr 2012
0 answers
200 views
I have a radgrid bind to a list of object A which contains another object B as below

Class B
{
   string name;
}
class A
{
   B b;
}

for one of the GridBoundColumn, it is bind to b.name with DataField and SortExpression, however some of object A had null vaue for field b, so the page is throwing exception.

how can I config it so that if field b is null for the object A, it just uses empty string "", otherwise bind to b.name?

thanks.
Henry
Top achievements
Rank 1
 asked on 24 Apr 2012
2 answers
368 views
Hello,

I would like to display RSS feeds on an ASP.Net page, similar to an RSS Reader. I don't want any animation as in Rad Rotator or Ticker.
Is there any control that would allow me to achieve this?
Please advise.

Regards,
M.R.
M. R.
Top achievements
Rank 1
 answered on 24 Apr 2012
2 answers
269 views

I am getting the following Exception:

"Input string was not in a correct format" on DataBind() line.

I believe what is happening is that the poll is being created with numbers/integers and Telerik is being clever and treating them as ints instead of as strings.

Is there a way to tell the telerik RadChart to either treat everything as strings or format things on a per entry basis?

These two people have encountered a similar problem;

http://www.telerik.com/community/forums/aspnet-ajax/chart/x-axis-values-mixed-strings-and-ints.aspx

http://www.telerik.com/community/forums/wpf/chart/error-binding-string-value-to-x-axis-using-mvvm.aspx

private void PopulatePollResults(int pollID)
   
{
       
SqlHelper sql = new SqlHelper();
       
DataSet dsResults = sql.ExecuteDataSet("ReturnPollResults", pollID);

        dsResults
.Tables[0].DefaultView.Sort = "AnswerID DESC";

        trcResults
.DataSource = dsResults.Tables[0].DefaultView;
        trcResults
.DataBind();

        trcResults
.PlotArea.Appearance.Dimensions.Margins.Top = 10;
        trcResults
.PlotArea.Appearance.Dimensions.Margins.Right = 5;
        trcResults
.PlotArea.Appearance.Dimensions.Margins.Bottom = 10;
        trcResults
.PlotArea.Appearance.Dimensions.Margins.Left = 177;


        lblNoOfVotes
.Text = dsResults.Tables[1].Rows[0]["Count"].ToString() + " vote(s)";
   
}
<telerik:RadChart ID="trcResults" runat="server"
       
ChartTitle-Visible="false"
       
Legend-Visible="false"
       
SeriesOrientation="Horizontal"
       
Height="160px"
       
Width="240px" >
       
<Series>
           
<telerik:ChartSeries DataYColumn="Votes"
               
DefaultLabelValue="#%">
               
<Appearance FillStyle-FillType="Solid"
                   
FillStyle-MainColor="#660066"
                   
Border-Visible="false"
                   
TextAppearance-TextProperties-Font="Arial" >
                   
<FillStyle FillType="Solid" MainColor="102, 0, 102">
                   
</FillStyle>
                   
<TextAppearance TextProperties-Font="Arial, 9pt">
                   
</TextAppearance>
                   
<Border Visible="False" />
               
</Appearance>
           
</telerik:ChartSeries>
       
</Series>
       
<Appearance Border-Visible="False" FillStyle-FillType="Solid"
           
FillStyle-MainColor="Transparent" Dimensions-AutoSize="false"
           
Dimensions-Width="220px" Dimensions-Height="160px" >
           
<FillStyle MainColor="Transparent">
           
</FillStyle>
           
<Border Visible="False" />
       
</Appearance>
       
<PlotArea>
           
<YAxis2>
               
<AxisLabel>
                   
<Appearance RotationAngle="0">
                   
</Appearance>
               
</AxisLabel>
           
</YAxis2>
           
<Appearance FillStyle-FillType="Solid" FillStyle-MainColor="Transparent"
               
Border-Visible="False" >
               
<FillStyle FillType="Solid" MainColor="Transparent">
               
</FillStyle>
               
<Border Visible="False" />
           
</Appearance>
           
<XAxis DataLabelsColumn="AnswerText" IsZeroBased="False">
               
<Appearance MajorTick-Color="#333333"
                   
TextAppearance-TextProperties-Color="#333333"
                   
TextAppearance-TextProperties-Font="Arial" >
                   
<TextAppearance TextProperties-Color="51, 51, 51"
                       
TextProperties-Font="Arial, 8pt">
                   
</TextAppearance>
               
</Appearance>
               
<AxisLabel>
                   
<Appearance RotationAngle="270">
                   
</Appearance>
               
</AxisLabel>
               
<Items>
                   
<telerik:ChartAxisItem>
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
                   
<telerik:ChartAxisItem Value="1">
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
                   
<telerik:ChartAxisItem Value="2">
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
                   
<telerik:ChartAxisItem Value="3">
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
                   
<telerik:ChartAxisItem Value="4">
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
                   
<telerik:ChartAxisItem Value="5">
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
                   
<telerik:ChartAxisItem Value="6">
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
                   
<telerik:ChartAxisItem Value="7">
                       
<TextBlock>
                           
<Appearance TextProperties-Font="Arial, 8.25pt">
                           
</Appearance>
                       
</TextBlock>
                   
</telerik:ChartAxisItem>
               
</Items>
           
</XAxis>
           
<YAxis>
               
<Appearance Visible="false" />
               
<AxisLabel>
                   
<Appearance RotationAngle="0">
                   
</Appearance>
               
</AxisLabel>
           
</YAxis>
       
</PlotArea>
       
<ChartTitle Visible="False">
           
<Appearance Visible="False">
           
</Appearance>
       
</ChartTitle>
       
<Legend Visible="False">
           
<Appearance Visible="False">
           
</Appearance>
       
</Legend>
   
</telerik:RadChart>

I have mocked the db data as follows and the same issue is present.

List<PollContainer> pcl = new List<PollContainer>();
        pcl.Add(new PollContainer(111, "1", 0));
        pcl.Add(new PollContainer(112, "2", 0));
        pcl.Add(new PollContainer(113, "3", 0));
        pcl.Add(new PollContainer(114, "4", 0));
        pcl.Add(new PollContainer(115, "5 - 10", 0));
        pcl.Add(new PollContainer(116, "10+", 0));
        trcResults.DataSource = pcl;
trcResults.DataBind();
///////////////////////////////////////////////////////////////////
List<PollContainer> pcl = new List<PollContainer>();
        pcl.Add(new PollContainer(111, "1d", 0));
        pcl.Add(new PollContainer(112, "2d", 0));
        pcl.Add(new PollContainer(113, "3", 0));
        pcl.Add(new PollContainer(114, "4", 0));
        pcl.Add(new PollContainer(115, "5 - 10", 0));
        pcl.Add(new PollContainer(116, "10+", 0));
        trcResults.DataSource = pcl;

It seems Telerik doesn't like the strings "1" and "2"?!

I have tried adding 
Appearance-ValueFormat="General"
to <XAxis>

ref http://stackoverflow.com/questions/10177548/telerik-radchart-input-string-was-not-in-a-correct-format 

Thanks,
Sam
Top achievements
Rank 1
 answered on 24 Apr 2012
1 answer
103 views
Good afternoon, my name is John and I work in Brazil. I'm doing a project and use some components of Telerik, but I doubt that this is a difficult problem.
The problem is that I can not leave my GridDataTimeColumn in an empty field, I mean, is not required the user to select a specific date.
Only I would like the field of my GridDataTimeColumn stay empty if the user selects not the date on RadDataPicker.

The lower image is an example that you reported, I could not understand what the code that makes this event. How you guys managed to leave the column blank DataTimeColumn, if I do not select a specific date?









Thank you for your attention!


Jayesh Goyani
Top achievements
Rank 2
 answered on 24 Apr 2012
0 answers
141 views
I need to create grid control having the same UI as that of Query Filter grid control in Microsoft CRM dynamics. That can support grouping of filter in the same way as well.


Arif
Top achievements
Rank 1
 asked on 24 Apr 2012
1 answer
68 views
Hi;

I am having a problem rad editor within radpanelbar only when i am using Firefox 11 . When i expand radpanel-bar item, rad editor(s)'s content are not showing. When i click html and then design view it is showing up (when i switch to html view , it starts showing up) .

i am using Telerik 2009.3.1208.20

I also tried 

  function OnClientLoad(editor) {
        setTimeout(function () { editor.onParentNodeChanged(); }, 1000);
    }


But no luck. Any help
Rumen
Telerik team
 answered on 24 Apr 2012
1 answer
169 views
Hi,

I am using the rad editor with a ribbon bar tools file.
I have taken the default ribbon tools.xml file and am in the process of removing any unwanted options.

I am currently using the tool PasteStrip, however I would like to simplify the menu to remove the options for pasting as HTML and paste HTML.

Is this possible?

Here is a section of my tools file:
<root>
    <modules>
        <module name="RadEditorStatistics" dockingZone="Bottom"/>      
    </modules>
    <tools name="Save" tab="Home">
        <tool name="SaveSubSection" size="large" shortcut="CTRL+S" />
    </tools>
    <tools name="Clipboard" tab="Home">
        <tool name="PasteStrip" size="large"/>
        <tool name="Cut" size="medium"/>
        <tool name="Copy" size="medium" shortcut="CTRL+C"/>
        <tool name="Print" size="medium" shortcut="CTRL+P"/>
    </tools>
</root>
Rumen
Telerik team
 answered on 24 Apr 2012
3 answers
280 views
Hello,

I need help with a Telerik stacked bar chart.

I have used a separate data source to get the data. Moreover, I'm passing in  parameter values to get the chart which is absolutely working fine.

I have 4 columns in my table. With Column "A" as X-axis which is to be grouped and "TaskTime" as Y-axis. 

I have to display column "Tasktime" again in the chart with the label names of column "B" and "C" on them. And the length of the stacked bar should vary according to the "TaskTime". I hope you will have a better understanding if you look at the attached files.I'm expected to produce a chart exactly or almost similar to the "Expected" Chart that I have attached.

I have attached two files where one is the "Expected" chart and the other one is the "Resulted" chart which was obtained so far. I have made changes to the data of the " Expected" chart to help you understand better(since the "Resulted" data is not that good for understanding). I have also attached my piece of code for your reference. I managed to produce a chart slightly similar to the "Expected" one. But, I am struck halfway and I don't have any clue how to proceed further. So, I request you to help me.

The issues to be sorted out in the "Resulted" chart are

  1. The X-Axis values should be grouped.
  2. The stacked bar should be differentiated in their colour.
  3. Make the column values of "B and C" appear on their respective "TaskTime" bars in the format "B-C".
  4. Show the sum of the "TaskTime" values appear on the top of their respective bars in case of any stacked bars or just their values.

 I would be glad if this chart can be done in Telerik report chart (Without using Radchart). But, if not possible, I wouldn't mind switching over to Radchart. But, I wanted to get this chart done, somehow. I would be really grateful if you could help me to proceed further. Thank you!!!
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports Telerik.Reporting
Imports Telerik.Reporting.Drawing
Imports Telerik.Web.UI
Imports Telerik.Charting
 
Partial Public Class Report1
    Inherits Telerik.Reporting.Report
    Public Sub New()
        InitializeComponent()
  End Sub
 
   
  Private Sub Report1_NeedDataSource(sender As System.Object, e As System.EventArgs) Handles MyBase.NeedDataSource
    Dim ttasktime As New tasktime
 
    Dim tasktime As New Telerik.Reporting.Charting.ChartSeries("tasktime")
    Chart1.Series.Clear()
    tasktime.DataYColumn = "tasktime"
    tasktime.Name = "tasktime"
    tasktime.DataLabelsColumn = "B"
    tasktime.DataXColumn = "A"
    tasktime.Type = Charting.ChartSeriesType.StackedBar
    Chart1.Series.Add(tasktime)
 
    Chart1.PlotArea.XAxis.DataLabelsColumn = "A"
 
 
    Chart1.DataSource = ttasktime
  End Sub
End Class
Evgenia
Telerik team
 answered on 24 Apr 2012
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?