Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
272 views
Is there a way to showing extra label on Pie Chart?
I'm looking for solution for this woe.
I wish to make a pie chart like  attaching image.

From the Attaching image, the outside labels indicate "MonthCount" fields from datasource
and Inside labels indecate "Month" field

here is my datasource and definition pie chart control on aspx. thank you.
Dim dataTablePieData As New DataTable()
        dataTablePieData = New DataTable()
        dataTablePieData.Columns.Add("Year")
        dataTablePieData.Columns.Add("Month")
        dataTablePieData.Columns.Add("MonthCount")
 
        dataTablePieData.Rows.Add(New Object() {"2009", "1", "20"})
        dataTablePieData.Rows.Add(New Object() {"2009", "2", "20"})
        dataTablePieData.Rows.Add(New Object() {"2009", "3", "70"})
        dataTablePieData.Rows.Add(New Object() {"2009", "4", "143"})
        dataTablePieData.Rows.Add(New Object() {"2009", "5", "210"})
        dataTablePieData.Rows.Add(New Object() {"2009", "6", "250"})
        dataTablePieData.Rows.Add(New Object() {"2009", "7", "252"})
        dataTablePieData.Rows.Add(New Object() {"2009", "8", "396"})
        dataTablePieData.Rows.Add(New Object() {"2009", "9", "406"})
        dataTablePieData.Rows.Add(New Object() {"2009", "10", "470"})
        dataTablePieData.Rows.Add(New Object() {"2009", "11", "472"})
        dataTablePieData.Rows.Add(New Object() {"2009", "12", "431"})
 
        GetPieData = dataTablePieData

<telerik:RadChart ID="RadChartPieChart" SkinsOverrideStyles="true" runat="server" Width="800" Height="500" >
    <ChartTitle>
        <TextBlock Text="Pie Chart">
        </TextBlock>
    </ChartTitle>
    <PlotArea>
        <Appearance Dimensions-Margins="0px 0px 0px 0px"></Appearance>
    </PlotArea>
    <Series>
        <telerik:ChartSeries DataYColumn="MonthCount" Type="Pie">
            <Appearance LegendDisplayMode="Nothing" ShowLabelConnectors="true" >
                <TextAppearance TextProperties-Color="Red">
                </TextAppearance>
                <LabelAppearance Distance="70"></LabelAppearance>
            </Appearance>
        </telerik:ChartSeries>
    </Series>
</telerik:RadChart>
Evgenia
Telerik team
 answered on 30 Sep 2011
5 answers
384 views
I am creating an HTML editor using the RadEditor and I am running into an issue. I cannot upload files to the server that the control will be run on. Instead, when a user needs to add an image to an HTML page, they will need to reference a local file, i.e., <img src="file://c:/some_path/some_image.jpg />. Is there any way at all to use the image manager to look at files on the local computer and insert a reference to the local file instead of something on the remote server? If not, is there another way to easily do this?
Stanimir
Telerik team
 answered on 30 Sep 2011
1 answer
667 views
I have standard asp textbox as template column in radgrid and I change value of that text box through client side. This textbox is disabled but I can see value getting updated in textbox on grid. When I  click save and loop through data items of grid, value for that textbox is empty.

 <Columns>     
               <telerik:GridTemplateColumn HeaderText="Amount" UniqueName="Amount">                     <ItemTemplate>                         <asp:textbox ID="txtamount" runat="server" enabled="false" >  </asp:textbox>                     </ItemTemplate>                 </telerik:GridTemplateColumn>             </Columns>
Is there any other alternative to this? I need to save this value for each row in grid.

Princy
Top achievements
Rank 2
 answered on 30 Sep 2011
2 answers
325 views
Hi,
how to translate below from asp:dropdownlist to telerik:radcombobox

asp
<asp:DropDownList ID="ddlSupplier" runat="server" Width="140px"  Enabled="True" onselectedindexchanged="ddlSupplier_SelectedIndexChanged" AppendDataBoundItems="True" AutoPostBack="True" TabIndex="1">
          <asp:ListItem>--- abc ---</asp:ListItem>
</asp:DropDownList>

telerik
<telerik:RadComboBox ID="RadComboBox_Supplier" runat="server" Width="140px"
       AppendDataBoundItems="true" AutoPostBack="true">
</telerik:RadComboBox>

How to write/add following line (asp) <asp:ListItem>--- abc ---</asp:ListItem> to telerik syntax?

Rgds,
Jesper
Jesper
Top achievements
Rank 1
 answered on 30 Sep 2011
1 answer
93 views
Hello,

I have a master page in which I use too Rad Menus. For each, I create a custom skin. In a page that inherite from this Master page, I have a Grid with a embedded skin "WebBlue".

The Grid don't respond to the skin affection when I refere in the master page the two Radmenu Skins. But there is no problem when just one of these two Radmenu skins is refered in the master page.

 _sCssStyle += "<link rel = \"stylesheet\" type=\"text/css\" href=\"" + this._sApplicationPath + "Skins/" + "ProjectsMenu/" + "Menu.ProjectsMenu.css\" >\r\n";

  _sCssStyle += "<link rel = \"stylesheet\" type=\"text/css\" href=\"" + this._sApplicationPath + "Skins/" + "AppMenu/" + "Menu.AppMenu.css\" >\r\n";

Pleaze, Could You help  me to know why the Grid didn't take any skin in the case i noticed before?

Thank You,

Hind
Peter
Telerik team
 answered on 30 Sep 2011
7 answers
355 views

i writed method for fill data to Scheduler

private
void loadData(int ResourceID) {

DataTable dtSource = RegistrationDB.GetWithStatusAndResource("A", ResourceID);

RSFilm.DataSource = dtSource;

RSFilm.DataStartField = "Registration_From";

RSFilm.DataEndField = "Registration_To";

RSFilm.DataKeyField = "Registration_ID";

RSFilm.DataSubjectField = "Film_Title";

RSFilm.DataBind();

}

then how i can set backcolor for Appointment of RsFilm(Scheduler)? example : when i have '007' film, it will display backcolor is yellow on scheduler or 'titanic' Film is red, 'Death Dealers' is green ..... , thanks

Stuart Hemming
Top achievements
Rank 2
 answered on 30 Sep 2011
3 answers
178 views

Basically when a user runs an old browser or IE8 in compatiblity mode, my RadButtons at the top of one of my RadPanels appear to hover on the right as you scroll down and then when you move your mouse over them they disappear and don't come back.  It works completely correct in IE8 and if it is not in a RadSplitter.  I am running the 2011.2.915.35 version of the tools.  To demonstrate this, I have created the following ASPX page to demonstrate:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head id="Head1" runat="server">
    <title>Playground Page</title>
</head>
<body class="BODY">
    <form runat="server" id="mainForm" method="post">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%" 
    ResizeWithBrowserWindow="true" ResizeWithParentPane="true" Orientation="Vertical" >
        <telerik:RadPane ID="SearchPane" runat="server" Width="280" BackColor="#DDDDDD" >
            <asp:Panel ID="SearchResultGroup" runat="server" Height="100%" >
                Some stuff here
            </asp:Panel>
        </telerik:RadPane>
        <telerik:RadPane ID="ContentPane" runat="server" Scrolling="Both" >
            <asp:Panel ID="ContentGrouping" runat="server" >
        <table width="100%">
            <tr>
                <td align="center">Page Header Here</td>
                <td align="right" width="350px" style="padding-top:5px;">
                    <telerik:RadButton ID="testButton" Text="Test Button" runat="server" >
                       <Icon PrimaryIconCssClass="rbHelp" />
                    </telerik:RadButton><br />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <% for (int i=0; i < 80; i++) { %>
                        ROW <%= i %> ADDED TO CREATE SCROLL<br />
                    <% } %>
                </td>
            </tr>
        </table>
</asp:Panel>
</telerik:RadPane>
</telerik:RadSplitter>
    </form>
</body>
</html>

Thanks, I would like to resolve this since IE8 runs intranet sites by default in compatiblity mode and thus most of my users are effected by this.
Shane
Shane
Top achievements
Rank 1
 answered on 30 Sep 2011
2 answers
170 views
Hi

<table width="100%">
          <tr>
              <td width="75%">
<telerik:RadScheduler ID="RadScheduler1" runat="server" 
          DataDescriptionField="Description" DataEndField="EndTime" DataKeyField="keyid" 
          DataRecurrenceField="Recurrence" 
          DataRecurrenceParentKeyField="RecurrenceParentKey" 
          DataReminderField="Reminders" DataSourceID="SqlDataSource1" 
          DataStartField="StartTime" DataSubjectField="Subject" 
          EnableDescriptionField="True" FirstDayOfWeek="Monday" SelectedView="MonthView" 
          Skin="Sitefinity"  OverflowBehavior="Expand" 
          EnableCustomAttributeEditing="False" 
          onappointmentinsert="RadScheduler1_AppointmentInsert" 
          StartEditingInAdvancedForm="False" onload="RadScheduler1_Load"   >
            
          <Reminders Enabled="True" />
      </telerik:RadScheduler>
              </td>
              <td width="25%" valign="top" bgcolor="#FFFFA6" >
              <asp:Label ID="RadTextBox1" Runat="server" Text="Select an entry to view its description." ></asp:Label>
           </td>
          </tr>
          <tr>
              <td>
                   </td>
              <td>
                   </td>
          </tr>
      </table>


This is the simple layout, a table with 2 columns and 1st column has RadScheduler.  Inspite of simple layout,  it does not render properly on screen.

As you can see on first image (rs-ErrorScreen1.jpg),  that inspite of specifying 75% width, its occupying more.  

By just switching between day and month view, it resets itself as per given 75%.   See second image (rs-ErrorScreen2.jpg),  
so I do not understand why on inital load the scheduler  is not in its given boundries?

More worse case is when I switch to "edit mode"  The controls simply expand its width too much, that it goes beyond boundries
Save and cancel button are far off the screen. 

I just don;t understnad where things are wrong.   I can upload the video using screen capture (if you allow).

Regards
JD






Ivan Zhekov
Telerik team
 answered on 30 Sep 2011
1 answer
87 views
Hi Guys,

Here is the video with the issue: http://screencast.com/t/gmZ3lVcpP

So, when you paste image using "Insert Media" it works good but there is an error with "Image Manager".

Do you have any ideas?

Best regards,
Anton
Dobromir
Telerik team
 answered on 30 Sep 2011
5 answers
374 views
I'm using one of the older css (green) for the new RadGrid.  The css shows up fine (I've turned off the EnableEmbeddedSkins)

I've set the css path to:

<

link href="css/Green/Grid.Green.css" rel="stylesheet" type="text/css" />

In my master page -- the grid shows up green, but the images are not showing up AND it does not update all of the image paths.

I've set the image path to:

css\green\grid

and the css is in
css\green

It will update some of the images but not all in the grid.  It also does not show the images for the one's it has updated.  Have I missed somthing? (grid below).

Also, when I try to use the filter drop down, it appears to not know what skin to apply (its has no style).

What is needed for that to appear?

(BTW -- the images are in the web path and are named the same:
css\green\grid\)

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" DataSourceID="SqlDataSource1" ShowGroupPanel="True" Skin="Green" EnableEmbeddedSkins="False" ImagesPath="css\green\grid">

<MasterTableView AutoGenerateColumns="False" DataKeyNames="part_id" DataSourceID="SqlDataSource1" >

<RowIndicatorColumn Visible="False" FilterImageUrl="css\green\grid\Filter.gif" SortAscImageUrl="css\green\grid\SortAsc.gif" SortDescImageUrl="css\green\grid\SortDesc.gif">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn Resizable="False" Visible="False" CollapseImageUrl="css\green\grid\SingleMinus.gif" ExpandImageUrl="css\green\grid\SinglePlus.gif" FilterImageUrl="css\green\grid\Filter.gif" SortAscImageUrl="css\green\grid\SortAsc.gif" SortDescImageUrl="css\green\grid\SortDesc.gif">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<EditFormSettings>

<PopUpSettings ScrollBars="None" />

<EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif" FilterImageUrl="Filter.gif"

InsertImageUrl="Insert.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif"

UpdateImageUrl="Update.gif">

</EditColumn>

</EditFormSettings>

<Columns>

<telerik:GridBoundColumn DataField="part_id" DataType="System.Int32" HeaderText="part_id"

ReadOnly="True" SortExpression="part_id" UniqueName="part_id" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="part_nbr" HeaderText="part_nbr" SortExpression="part_nbr"

UniqueName="part_nbr" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="part_msuf" HeaderText="part_msuf" SortExpression="part_msuf"

UniqueName="part_msuf" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="part_nm" HeaderText="part_nm" SortExpression="part_nm"

UniqueName="part_nm" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="program_cd" HeaderText="program_cd" SortExpression="program_cd"

UniqueName="program_cd" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="site_cd" HeaderText="site_cd" SortExpression="site_cd"

UniqueName="site_cd" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="type_cd" HeaderText="type_cd" SortExpression="type_cd"

UniqueName="type_cd" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="hert" HeaderText="hert" SortExpression="hert"

UniqueName="hert" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridCheckBoxColumn DataField="is_active" DataType="System.Boolean" HeaderText="is_active"

SortExpression="is_active" UniqueName="is_active" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridCheckBoxColumn>

<telerik:GridCheckBoxColumn DataField="is_reported" DataType="System.Boolean" HeaderText="is_reported"

SortExpression="is_reported" UniqueName="is_reported" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridCheckBoxColumn>

<telerik:GridBoundColumn DataField="part_group" HeaderText="part_group" SortExpression="part_group"

UniqueName="part_group" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="part_group_text" HeaderText="part_group_text"

SortExpression="part_group_text" UniqueName="part_group_text" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridCheckBoxColumn DataField="is_new" DataType="System.Boolean" HeaderText="is_new"

SortExpression="is_new" UniqueName="is_new" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridCheckBoxColumn>

<telerik:GridBoundColumn DataField="full_name" HeaderText="full_name" ReadOnly="True"

SortExpression="full_name" UniqueName="full_name" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PartName" HeaderText="PartName" ReadOnly="True"

SortExpression="PartName" UniqueName="PartName" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif">

</telerik:GridBoundColumn>

</Columns>

<CommandItemSettings AddNewRecordImageUrl="AddRecord.gif" RefreshImageUrl="Refresh.gif" />

<PagerStyle FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif"

NextPageImageUrl="PagingNext.gif" PrevPageImageUrl="PagingPrev.gif" />

</MasterTableView>

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True">

<Selecting AllowRowSelect="True" />

</ClientSettings>

<PagerStyle FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif"

NextPageImageUrl="PagingNext.gif" PrevPageImageUrl="PagingPrev.gif" />

</telerik:RadGrid>



-Thanks! 
-Don
Saumil
Top achievements
Rank 1
 answered on 30 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?