Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
66 views
Hi,
if you try to d&d a file or a link to a file from a website (not from LocalSystem) asyncUpload functionality is being broken with
"file is undefined" exception
var fileApi = function (asyncUpload) {
$.extend(this, {
_processFiles:
...
$.each(files, function (index, file) {
var row = index == 0 ? context.initialRow : module._appendRow(context.initialRow.id);
module.trigger("FileSelected", row, input, file.name, (index + 1) == context.progress.totalFiles);
context.map.push({ file: file, row: row });
});
...
}
}
Plamen
Telerik team
 answered on 24 Apr 2012
1 answer
105 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
97 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
172 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
253 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
230 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
83 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
108 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
57 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
143 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?