Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hi

We are having lots of trouble with trying to set labels for a stacked bar chart.
Here is the C# code to generate the chart.

foreach (var jItem in jobsViewModels)
{
RadHtmlChartJobsProgress.Visible = true;
for (var i = 0; i < jItem.JobStepsBreakdownList.Count; i++)
{
var newSeries1 = new BarSeries();
newSeries1.GroupName = jItem.JobName;
foreach (var jItem in jobsViewModels)
{
RadHtmlChartJobsProgress.Visible = true;
for (var i = 0; i < jItem.JobStepsBreakdownList.Count; i++)
{
var newSeries1 = new BarSeries();
newSeries1.GroupName = jItem.JobName;
newSeries1.DataFieldX = newSeries1.GroupName;
if (i == 0)
{
newSeries1.Stacked = true;
// var newAxis = new AxisItem();
// newAxis.LabelText = jItem.JobName;
// RadHtmlChartJobsProgress.PlotArea.XAxis.Items.Add(newAxis);
                        
                    }
// newSeries1.Name = jItem.JobName;
RadHtmlChartJobsProgress.PlotArea.Series.Add(newSeries1);
var item = new CategorySeriesItem();
item.BackgroundColor = Color.Green;
item.Y = 1;
if (jItem.JobStepsBreakdownList[i].RagStatusName == "Red")
{
item.BackgroundColor = Color.Red;
}
else if (jItem.JobStepsBreakdownList[i].RagStatusName == "Amber")
{
item.BackgroundColor = Color.Orange;
}
else if (jItem.JobStepsBreakdownList[i].RagStatusName == "Complete")
{
item.BackgroundColor = Color.LightBlue;
}
else
{
item.BackgroundColor = Color.Green;
}
newSeries1.TooltipsAppearance.ClientTemplate = "Milestone: " +
jItem.JobStepsBreakdownList[i].WorkflowStepName;
newSeries1.SeriesItems.Add(item);
newSeries1.LabelsAppearance.Visible = false;
// RadHtmlChartJobsProgress.PlotArea.Series[i].Items.Add(item);
}
RadHtmlChartJobsProgress.PlotArea.XAxis.LabelsAppearance.Visible = true;
RadHtmlChartJobsProgress.DataBind();
}
if (i == 0)
{
newSeries1.Stacked = true;
// var newAxis = new AxisItem();
// newAxis.LabelText = jItem.JobName;
// RadHtmlChartJobsProgress.PlotArea.XAxis.Items.Add(newAxis);
newSeries1.DataFieldX = newSeries1.GroupName;
}
// newSeries1.Name = jItem.JobName;
RadHtmlChartJobsProgress.PlotArea.Series.Add(newSeries1);
var item = new CategorySeriesItem();
item.BackgroundColor = Color.Green;
item.Y = 1;
if (jItem.JobStepsBreakdownList[i].RagStatusName == "Red")
{
item.BackgroundColor = Color.Red;
}
else if (jItem.JobStepsBreakdownList[i].RagStatusName == "Amber")
{
item.BackgroundColor = Color.Orange;
}
else if (jItem.JobStepsBreakdownList[i].RagStatusName == "Complete")
{
item.BackgroundColor = Color.LightBlue;
}
else
{
item.BackgroundColor = Color.Green;
}
newSeries1.TooltipsAppearance.ClientTemplate = "Milestone: " +
jItem.JobStepsBreakdownList[i].WorkflowStepName;
newSeries1.SeriesItems.Add(item);
newSeries1.LabelsAppearance.Visible = false;
// RadHtmlChartJobsProgress.PlotArea.Series[i].Items.Add(item);
}
RadHtmlChartJobsProgress.PlotArea.XAxis.LabelsAppearance.Visible = true;
RadHtmlChartJobsProgress.DataBind();
}


If we enable the Add Axis code, we get all of the series items stuffed into 1 axis item. If we do not we cannot get a stacked series to have an X-Axis name but the series do display correctly.
How can we can do this? Help please!
Danail Vasilev
Telerik team
 answered on 16 Jan 2015
1 answer
40 views
Hi,

Can someone please explain how can I create Line Chart that will contain multiple series, BUT with customized ClientTemplate.
I've read that customization of ClientTemplate is possible if HtmlChart is bind to datasource, but if I bind it, the result is ONE single line, not multiple sets...

Thanx in advance,
Stefan
Danail Vasilev
Telerik team
 answered on 16 Jan 2015
3 answers
186 views
Hi,
     I would like to change the rad editor typing format as per Language  selection change or a Globalization concept.

For Example:-

If I select  English Language then editor support English format to type
else i select Arabic Language then editor Support Arabic format to type

so how can implement it.

Please provide Demo Source code.
Ianko
Telerik team
 answered on 16 Jan 2015
3 answers
179 views
Hi,

Is it possible to fire the "init insert" command when there are no rows in the coupled datasource of the dataform object?

For now I created a button and in it's click event I put the following code:

Radform1.Items(0).FireCommandEvent("InitInsert", "")

But when the coupled datasource has no rows, it fails (because of the empty itemscollection).

Is there a workaround for inserting the "first row"?

Regards
Lennart Burkels
Top achievements
Rank 1
 answered on 16 Jan 2015
0 answers
160 views
Hello,

I am trying to develop a chat room on our website. When I was searching, I found this article. I download the project and tried to run it on my local pc. It is working fine until Register When I login, it goes to Chat page,page load event,then it showed 500 error. Does anyone tried to run that project and face the same issues? Can anybody help me?

Thanks in advance.

Best regards,
Ei Wai
Ei Wai
Top achievements
Rank 1
 asked on 16 Jan 2015
3 answers
119 views
Hi
I want to drag a row from a radgrid and drop it in a specific cell of another Radgrid and save it. Is it possible? If possible then please Help me as soon as possible.

 
 
Mostafa
Top achievements
Rank 1
 answered on 16 Jan 2015
7 answers
286 views
Hi all,

I have a requirement is to change the infragistics control to telerik control. As I'm new in the Telerik could anyone help me is there any other control instead of using the menu .ascx. Currently this infragistics control has been used as a menu which is in the menu.ascx.

<%@ Register TagPrefix="iglbar" Namespace="Infragistics.WebUI.UltraWebListbar" Assembly="Infragistics2.WebUI.UltraWebListbar.v6.3, Version=6.3.20063.53, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>

sample code currently using just the format but not  the full code....
<iglbar:ultraweblistbar  ----- >

<Groups>
<iglbar:Group

<iglbar:Item --->

</iglbar:Item>

<HeaderAppearance>

<HeaderAppearance>

</iglbar:Group>
Again the same other group occur as below

<iglbar:Group>

</iglbar:Group>
<Groups>

Could you please let me know is there any possible replacement of this infragistics control to telerik control.  As this ascx been used as user control (actually a menu )in many pages.

​
Ianko
Telerik team
 answered on 16 Jan 2015
3 answers
115 views
Hi

below is my code

 <telerik:RadAjaxManagerProxy ID="proxyManager" runat="server">
            <AjaxSettings>                
                <telerik:AjaxSetting AjaxControlID="treeList">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="treeList" LoadingPanelID="loadingPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>                
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>

 <telerik:RadTreeList ID="treeList" runat="server" ParentDataKeyNames="ParentD"
            OnItemCreated="treeList_ItemCreated" DataKeyNames="WorkID" AutoGenerateColumns="false"
            OnNeedDataSource="taskTreeList_OnNeedDataSource" OnItemDataBound="taskTreeList_OnItemDataBound"
            OnItemCommand="taskTreeList_ItemCommand" OnUpdateCommand="treeList_UpdateCommand"
            OnItemDrop="taskTreeList_ItemDrop" BorderStyle="None" AllowSorting="true" AllowPaging="false"
            EditMode="InPlace" ShowFooter="true" ShowTreeLines="false" Font-Names="Arial"
            Font-Size="8">
            <HeaderStyle Height="30" Wrap="true" Font-Names="Arial" Font-Size="8" />
            <ItemStyle Font-Names="Arial" Font-Size="8" />
            <ClientSettings AllowItemsDragDrop="true">
                <Selecting AllowItemSelection="true" />
                <ClientEvents OnItemDragStarted="OnItemDragStarted" OnItemDragging="OnItemDragging"
                    OnItemDropping="itemDropping" OnTreeListCreated="function(sender) { treeList1 = sender; }" />
            </ClientSettings>
            <Columns>
 <telerik:TreeListEditCommandColumn UniqueName="EditCommandColumn" ShowAddButton="false"
                    ButtonType="ImageButton" HeaderStyle-Width="50px" >
<telerik:TreeListTemplateColumn UniqueName="TaskColumn" ItemStyle-Width="20px"
                    ItemStyle-HorizontalAlign="Left" >
                    <ItemTemplate>
                        <asp:Label ID="LableID" runat="server" Text='<%#Eval("DisplayData") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <ComboSelector EmptyMessage="{:Select.Owner}" EnableLoadOnDemand="true"
                            DataTextField="Name" DataValueField="MyID" Property="MyID" SelectedText='<%#Eval("DisplayData") %>'
                            ID="selector" runat="server" Width="20px">
                            <WebServiceSettings Path="~/Services/myService.asmx" Method="GetDetails" />
                        </ComboSelector>
                    </EditItemTemplate>
                </telerik:TreeListTemplateColumn>
       </Columns>
        </telerik:RadTreeList>

I have rad tree with edit to be "in place ", when i click on Edit icon to edit combobox, webservice is not picking data, meaning if i remove the bold line in RadAjaxManagerProxy  it is working but when i have ajax control it is not working

Thanks
Senthil
Angel Petrov
Telerik team
 answered on 16 Jan 2015
1 answer
79 views
I have a grid where I need to create custom filtering, but I am not sure exactly how or where to modify the MasterTableView.FilterExpression.

The grid has multiple columns - each of which can be filtered. The final column is a status column controlled by a DropDownList that is dependent on several of my object properties. I need to add one of the following to the filter expression: (Property1 == null), (Property2 == null) or (Property1 != null && Property2 != null). I can add the proper filtering text to the FilterExpression in response to the DropDownList's OnSelectedIndexChanged and the filtering works fine.However, when I change the filtering for one of the other columns, my custom filter expression is lost.

First, is there a way of setting just the additional filter expression to let the grid include it in the FilterExpression?

If not, what event should I be using to make sure the custom part of the filter expression is included when another column's filtering changes?
Kostadin
Telerik team
 answered on 16 Jan 2015
3 answers
221 views
How can I get task id on selection of task in server side code? 
Bozhidar
Telerik team
 answered on 16 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?