Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
I have a need where when I 'typeahead' to load the combobox... each time an item is selected it is automatically added to another listbox on the page (not removed from the combobox list collection). I don't really want it to remain selected in the combobox. Or displayed in the text field.

Dimitar Terziev
Telerik team
 answered on 24 Apr 2012
5 answers
142 views
Hello,

I'm trying to create "virtual" directories for our file-system and then display them using the fileexplorer from Telerik.

I have a table called FILES that looks something like this:

id int (key)
filename varchar(50)

A table calle VERZEICHNIS that looks like this
id int (key)
directoryname varchar(50)
vorgaengerid int

and a many to many connection between them

FILES_VERZEICHNIS

filesid int  (key)
verzeichnisid int (key)

I've got it to display everything just fine using a custom file provider, but I've run into two problems.

One, because the files come from Internet users we've created a system where the filename displayed can exist more than once in a directory (the id is the key). When the Fileexplorer Itemcommand is fired, it only passes the path. I can probably append an id to some part of the filename, but this is unsightly and exposes information to the user they don't need. Perhaps there's a way I can get at the source node and destination node and the underlying dataitems, but I can't find it.

Two, I've probably set up the page wrong, because when the treeview attempts to refresh the wait indicator never goes away and I get four javascript errors. Three say "a is undefined" and the fourth says "Fehler: $get(this._currentDirectoryInputID) is null
Quelldatei: http://aspnet-scripts.telerikstatic.com/ajaxz/2011.1.315/FileExplorer/RadFileExplorer.js
Zeile: 674 "

Any help with either of these matters would be most appreciated.
Paul Herzberg
Top achievements
Rank 1
 answered on 24 Apr 2012
3 answers
118 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
145 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
126 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
213 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
397 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
292 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
116 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
147 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?