Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
97 views
I have o datagrid with fields named "Start" and "Duration" like the rows drag and drop shipped orders one.
 When I add a new record I would like it to autopopulate the "Start" field with the "Start+Duration" value from the previous record (Start2=Start1+Duration1)

Example Recordset
Record 1, Start=0, Duration=500
Record 2, Start=500, Duration=1000
Record 3, Start=1500, Duration = 100
Record 4, Start=1600, Duration = 1500
...

How could i achieve this?

Thank you very much.


George
Top achievements
Rank 1
 answered on 30 Sep 2011
1 answer
104 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
162 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
232 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
266 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
374 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
662 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
320 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
91 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
351 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?