Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
Hi all:
I have a page created that has a RadEditor on it, with ImageManager enabled.  When a user finds the image they want to insert, it pulls the site name along with the file path.  Here are my settings for the editor:
 

myEditor.ImageManager.ViewPaths =

 

New String() {"~/i"}

 


This works fine as the user is directed to this folder.  On insert, however, the src to the image holds details further back like this:
<img alt="" src="/mysite/i/Atlas_48.png" />

Is there a way to NOT have the '/mysite/' show up?  I have this on a test server, and when I push it live my site name usually changes (ex. mysitedev turns to mysite), so I need to do a mass update with find and replace.  I'm guessing I'm missing something.  Any help is greatly appreciated.

Thanks,
TL
Stanimir
Telerik team
 answered on 30 Sep 2011
1 answer
130 views
I want to hide the filter icon and default the filtering to equals to function. But ShowFilterIcon is giving error stating that ShowFilterIcon is not a valid attribute of telerik radgrid.

Please help.
Thanks in advance.
Pavlina
Telerik team
 answered on 30 Sep 2011
2 answers
176 views
Hi,

I use RadAsyncUpload along with custom handler to upload files to FTP but occasionally got the following errors and really don't understand how this happened. The stack trace of the error is as follows.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index


at System.Collections.ArrayList.get_Item(Int32 index)
at Telerik.Web.UI.AsyncUpload.RequestData..ctor(HttpContext context)
at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()
at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Any ideas?

Thanks,
Charlie
Charlie
Top achievements
Rank 1
 answered on 30 Sep 2011
1 answer
215 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
276 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
608 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
250 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
51 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
302 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
130 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?