Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
198 views
Alright, I'm trying to create a pie chart that shows Locations in the Legend so that each location as a designated color, and the values assigned to each location is TotalSales. I thought it would be an easy thing to implement, but I'm running into issues.

When I implement the code below, it shows the TotalSales all around the pie chart (I know that's because of LabelLocation="Auto") but the legend on the right would just say "Series xx". I know how to get the name to change, but I don't know how to get it to create a new item for each location.

Can someone help me out with this?

Here's my code:

<telerik:RadChart ID="radSales" AutoLayout="true" runat="Server" Width="900px" Skin="Web20"
        Style="margin: 0px auto;">
        <Legend Visible="true">
            <Appearance GroupNameFormat="#VALUE">
            </Appearance>
        </Legend>
        <ChartTitle TextBlock-Text="Total Sales">
            <TextBlock>
                <Appearance TextProperties-Font="Verdana, 20px, style=Bold" TextProperties-Color="#00529B">
                </Appearance>
            </TextBlock>
        </ChartTitle>
        <PlotArea>
            <Appearance Dimensions-Margins="18%, 22%, 12%, 14%">
            </Appearance>
            <XAxis DataLabelsColumn="Location">
                <Appearance>
                    <TextAppearance TextProperties-Font="Verdana, 8pt, style=Bold">
                    </TextAppearance>
                </Appearance>
            </XAxis>
        </PlotArea>
        <Series>
            <telerik:ChartSeries DataXColumn="Location" DataYColumn="TotalSales" DefaultLabelValue="#Y{C}"
                Type="Pie">
                <Appearance>
                    <LabelAppearance LabelLocation="Auto">
                    </LabelAppearance>
                    <TextAppearance TextProperties-Font="Verdana, 11pt, style=Bold" TextProperties-Color="#00529B">
                    </TextAppearance>
                </Appearance>
            </telerik:ChartSeries>
        </Series>
    </telerik:RadChart>

Peshito
Telerik team
 answered on 02 Sep 2011
3 answers
162 views
hi,

i used RadScheduler control got an dll problem, when clicking the  "Week" tab in the top right side corner , it shows the all the week days bellow,we have an option to click the particular day tab on top , it shows the all the schedules on the day.    

using the telerik dll (2010.1.519.40) version
my problem is 
 when click the week tab  its not working  ( select the  Browser mode : IE7,IE8,IE9  and Document Model (Quirks ,IE7,IE8 )
 but its working at the time of ( select the  Browser mode : IE7,IE8,IE9  and Document Model (IE9 Standards (default) )

I took the latest dll (2011.1.413.40) ,  using this its working fine at all Document model ( Quirks ,IE7,IE8 and (IE9 Standards (default)) 

As per the client requirement  doesn't replace the  existing dll. 

How to solve this problem with out change the dll. 



Ivan Zhekov
Telerik team
 answered on 02 Sep 2011
2 answers
265 views
Hi i am using Terik.web.ui.dll


on the exporttoexcel option i want to dispaly loading image .

could you please help me.
Vibhor
Top achievements
Rank 1
 answered on 02 Sep 2011
7 answers
469 views

Hi,

I have one Rad Window, inside the rad window am calling an aspx page with some controls.  I am getting border for Rad window and also for the aspx page. I want to display the Rad window without any border.

Is it possible for me to hide the border of the rad window.?

i tried to give BorderStyle="None" But still border is comming.

Please help me to sort it out.

Thanks & Regards,
Sushanth Mathew

loowool
Top achievements
Rank 2
 answered on 02 Sep 2011
2 answers
287 views
Hello,
I have a page, which opens a dialog window (Window1). In Window1 there's a custom AJAX control with button which in turn opens new dialog window (Window2). When Window2 closes, a page must handle Window2's OnClientClose event, and Window2 must pass some data to my custom control on WIndow1. To avoid stack overflow, as you adviced here, I put handler on main page.
And now I want to get data sent by Window2 and put them to my control on Window1. This is how I'm doing that now:

 function referenceWindowClose(sender, args) {
            sender.remove_close(referenceWindowClose);
            var arg = args.get_argument();
            if (!arg) return;
            var ctl = $find(arg.TargetControlID);
            if (ctl == nullreturn;
            ctl.set_text(arg.Caption);
            ctl.set_value(arg.RefID);
        }
Variable named ctl is my custom AJAX control. Problem is ctl is always null. I know this happens because Window1 is in IFRAME. But how do I find it from main page? Using sender parameter? Please help.
Dmitry
Top achievements
Rank 1
 answered on 02 Sep 2011
1 answer
138 views
Hello,

I'm looking for code to drag and drop an image from a listbox to another listbox or another solution to achieve this functionality. The usecase is that a user can select from a list of images and drag & drop one or more images to another "placeholder". The next step is that I can save the dropped images to a database of filesystem. Can anyone point me to some examples or solution?

Thanks in advance

Patrick
Peter Filipov
Telerik team
 answered on 02 Sep 2011
15 answers
653 views
I have a RadAsyncUpload control on my page and I want to test all of my functionality for those clients that can't/don't have either Flash or Silverlight installed.

Using code found in this forum I have this in my markup just before the definition of the AsyncUpload control ...
  <script type="text/javascript">
    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }
  </script>
</para>

Now, when testing, I was expecting to:
  1. Not be able to select multiple file
  2. See an Add button to add a new file

So, I'm doing something wrong, it's broken or my expectations are wrong.

Which is it?

-- 
Stuart

Peter Filipov
Telerik team
 answered on 02 Sep 2011
1 answer
100 views
So I'm using the grid to manage a number of reference tables.  Most just have the identity and a text field, one has several text fields.  I'm doing it as generically as possible, with one grid and one SQLDataSource on the page, and 4 stored procs with generic parameters for insert, update, delete and select.  I have corresponding params for each action defined declaratively in the datasource.
<SelectParameters>
            <asp:Parameter Name="itemType" Type="String" />
        </SelectParameters>
        <InsertParameters>
            <asp:Parameter Name="itemType" Type="String" />
            <asp:Parameter Name="itemValue" Type="String" />
            <asp:Parameter Name="itemValue2" Type="String" />
            <asp:Parameter Name="itemValue3" Type="String" />
        </InsertParameters>
        <DeleteParameters>
            <asp:Parameter Name="itemID" Type="Int32" />
            <asp:Parameter Name="itemType" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="itemID" Type="Int32" />
            <asp:Parameter Name="itemType" Type="String" />
            <asp:Parameter Name="itemValue" Type="String" />
            <asp:Parameter Name="itemValue2" Type="String" />
            <asp:Parameter Name="itemValue3" Type="String" />
        </UpdateParameters>


I'm handling the Updating, Selecting etc... events for the datasource, and set the value of the datasource params there before it runs each command.
protected void dsActivity_Deleting(object sender, SqlDataSourceCommandEventArgs e)
        {
            int paramcount = e.Command.Parameters.Count;
  
            e.Command.Parameters["@itemID"].Value = e.Command.Parameters["@" + lstReference.Items[lstReference.SelectedIndex].Value + "ID"].Value.ToString();
            e.Command.Parameters["@itemType"].Value = lstReference.Items[lstReference.SelectedIndex].Value;
  
            while (e.Command.Parameters.Count > 2)
                e.Command.Parameters.RemoveAt(e.Command.Parameters.Count - 1);
        }


The problem I had to work around was that although the grid appends the field values to the params in the datasource events, the order of them is not consistent.  So that makes it hard to handle them in a generic manner since I can't use the index to reference them, not knowing what param might be in a given position.

I've worked around this since I ran into it, but it would have been a lot cleaner if I could depend on the parameters to be added in the same order.  This would be handy for certain scenarios like this if it would build that with the params in the corresponding order they were originally retrieved.

Marin
Telerik team
 answered on 02 Sep 2011
2 answers
80 views
Hi,

I am having two radtreeview, i want to do cut and paste the items between the trees. I can do mulitple select. I search for the cut and paste in radtree view. Is it available ?. If not please tell me how can i perform that.

Regards,
Xavier
Xavier
Top achievements
Rank 1
 answered on 02 Sep 2011
1 answer
115 views
Hi,

I have a radgrid with some smileys which had been inserted from radEditor.
Now when I export the grid to word, it exports it well but throws the below bug:

Error Info:Object reference not set to an instance of an object.
Error URL path:http://www.xtz.com/Smiley/haha.gif
Stack trace: at Telerik.Web.UI.RadCompression.Compress(HttpApplication application) at Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

The Smiley's path is correct, and I am able to see the image on loading the URL path.
But why I get the RadCompression bug?
Daniel
Telerik team
 answered on 02 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?