Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
267 views
Hi Telerik,
I designed a chart (RAD Chart - HTML5)

What i want is I need to give separate color for every seriesitems
I am taking the value from DataSource.

(ex: Having 5 items in X-axis, i need each item to be in different color)

Here is the sample code,

<telerik:RadHtmlChart runat="server" Height="600px" ID="RadChart1" DataSourceID="DataSource1">
      <PlotArea>
          <Series>
               <telerik:ColumnSeries DataFieldY="Count" Name="">
               </telerik:ColumnSeries>
  </Series>
    <XAxis DataLabelsField="Status">
    <TitleAppearance Text="">
    </TitleAppearance>
    </XAxis>
    <YAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickSize="1" MajorTickType="Outside"
                       MaxValue="100" MinorTickSize="1" MinorTickType="Outside" MinValue="0" Reversed="false"
                       Step="10">
    </YAxis>
 </PlotArea>
</telerik:RadHtmlChart>


Please help me.!

Thanks in Advance
-Alex
Alex
Top achievements
Rank 1
 answered on 06 Apr 2013
1 answer
77 views
Is anyone aware of any way to add a Directory to the ViewPaths, but remove a specific set of sub-directories from the tree?

For instance, my web application will be deployed to multiple web servers that may have different sub-directories in the root of D.  To account for those variances, I want to be able to just add D:\ to the ViewPath so the FileExplorer will automatically account for sub-directories that may be on one server but not another, but I want to remove "D:\Source" on all servers.

Does anyone know of a way to achieve this?
Matt DiPietro
Top achievements
Rank 1
 answered on 05 Apr 2013
1 answer
89 views
Hello guys, I'm here facing a problem.
In a project we have 3 developers working in the same solution, only one is using the Telerik Controls the other two, one is working on Webservices and the other on business logic. I was alerted for the fact that there were three developers working on the same solution and when the tests are made (the web app is launched in the browser) the telerik assemblies will be loaded into memory and so we are not complying with license terms.

Is this correct? Would we need to purchase two more developer seats?
Thank you
Caleb
Telerik team
 answered on 05 Apr 2013
2 answers
81 views
When the RadDatePicker popup opens up I would like to display dates that are different from what is already selected. For example the selected date could be 1/1/1900 but when the popup opens up I want to display the calendar for April 2013. How can I do this? Thanks.
Darren
Top achievements
Rank 1
 answered on 05 Apr 2013
1 answer
105 views
Using 2013 Q1 3.5 in visual studio 2008. The Configuration Wizard for RadChart is not effecting the chart appearance. Are there any issues? I changed the properties in the HTML and the chart will not respond. What I want is the columns to have its value rotated 90 degrees.
Petar Kirov
Telerik team
 answered on 05 Apr 2013
7 answers
105 views
Hi Telerik,

I have found a bug in the RadDock. It was working in a previous version of the telerik controls but not the new version.

See my two example projects in the solution I have uploaded to my webspace. (I have deleted the telerik DLLs from the bin folder so you will need to re-reference them)

http://www.revilloc.com/FocusProofSln.zip

The project FocusProof uses telerik version 2013.1.319.40
The project FocusWorks uses telerik version 2011.1.519.40

However, as 2011 doesn't work properly in IE 10, we need the later version.

I have proved that the project using 2013 fails and the one using 2011 works in Chrome, so please use chrome as the test browser.

How to prove the problem.

Run FocusWorks.

Edit the textbox on the left side. IMPORTANT... Leave the cursor in the textbox. Do not move, click or tab out of it. Now, grab the dock item from the right hand side and drag below the dock on the left.

You will then see a change on the screen in the case of the label showing what is in the text box.

Now... repeat with FocusProof.

You will NOT see the label.

The text changed event does not fire.

You will note that both projects are identical except for the namespaces and the referenced versions of telerik.

(Incidentally, I did also have the issue with the earlier version of telerik released this quarter).

I look forward to hearing from you. I really need a way to make this work as it was working in the previous version of telerik.
Slav
Telerik team
 answered on 05 Apr 2013
13 answers
1.0K+ views
Hi,

Can you help me figure out how to retrieve a grid column value from GridTemplateColumn in code behind? I have a grid template column that uses a DataBinder.Eval but for some reason I can't figure how to retrieve the value in code behind. Here is the script...
<telerik:GridTemplateColumn DataField="Amount" HeaderText="Amount" UniqueName="Amount" >
                            <ItemStyle CssClass="ItemsGridAmount" BorderStyle="Solid" BorderColor="Black" BorderWidth="1" />
                            <HeaderStyle Width="85px" HorizontalAlign="Center" />
                        <ItemTemplate >
                            <asp:Label runat="server" style="position:relative; top:2px; margin-right:8px" ID="lblAmount" Text='<%# DataBinder.Eval (Container, "DataItem.Amount", "{0:F}") %>'>></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:Label runat="server" style="margin-right:10px" ID="lblAmount" Text='<%# DataBinder.Eval (Container, "DataItem.Amount", "{0:F}") %>'>></asp:Label>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
and here is the code behind...
ry
        {
            foreach (GridDataItem item in grdInvoiceItems.Items)
            {
                int id = (int)item.OwnerTableView.DataKeyValues[item.ItemIndex]["Id"];
                string lineItem = (item["Items"].FindControl("ddlItems") as RadComboBox).Text;
                string description = (item["Description"].FindControl("txtDescription") as RadTextBox).Text;
                double? price = (item["Price"].FindControl("txtPrice") as RadNumericTextBox).Value;
                double? qty = (item["Qty"].FindControl("txtQty") as RadNumericTextBox).Value;
                double? discount = (item["Discount"].FindControl("txtDiscount") as RadNumericTextBox).Value;
                //double tax = double.Parse(lblTaxes.Text);
                Label amount1 = (item["Amount"].FindControl("lblAmount") as Label);
                string amount = item["Amount"].Text;
 
                Invoice.UpdateInvoiceItems(id, lineItem, description, Convert.ToInt32(price),
                    Convert.ToInt32(qty), Convert.ToDouble(discount), 0, 100);
            }
        }
        catch (Exception ex)
        {
            lblErrorMsg.Text = ex.Message;
            this.Master.FindControl("ErrorContentPlaceHolder").Visible = true;
        }
Nothing I've tried seems to work thus far. Any help would be greatly appreciated.

Thanks,
Ron.
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Apr 2013
3 answers
429 views
Hi,
I am using Export to Excel in RadGrid control and i need to change the format of the Grid data that exported to the Excel file and I try to put my code in the event  'ExcelMLExportRowCreated', this event should fired when the grid export the rows to Excel but this not happened with me!! this event never fired I try to trace the project and this event not fired at all !!
Please help me to know where is the problem.
Thanks
Ban
Luke
Top achievements
Rank 2
 answered on 05 Apr 2013
9 answers
117 views
Hi,

I am getting following error while uploading files. To reproduce the issue, select multiple files and make sure that one of the file is open.

Please help me in handling this issue.

Microsoft JScript runtime error: Unhandled Error in Silverlight Application [IO.IO_SharingViolation_File]
Arguments: up-5.docx
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.51204.0&File=mscorlib.dll&Key=IO.IO_SharingViolation_File   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
   at System.IO.FileInfo.OpenRead()
   at UploadPrototype.UploadContext.GetCurrentChunk()
   at UploadPrototype.MainPage.UploadRequest(StreamWriter writer, UploadContext context, Stream requestStream)
   at UploadPrototype.MainPage.ProcessRequest(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass9.<InvokeGetRequestStreamCallback>b__7(Object state2)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Hristo Valyavicharski
Telerik team
 answered on 05 Apr 2013
2 answers
191 views
I have a RadGridView where I would like the following behavior:
- only 1 or 0 rows can be selected at any given time
- if I click on a row that is unselected, then make only this row selected
- if I click on a row that is already selected, should be deselected

Can i get this behavior using client methods. 
Sunil
Top achievements
Rank 1
 answered on 05 Apr 2013
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?