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

I get following error :

Specified argument was out of the range of valid values. 

When I read RadNumericTextBox like this 

 RadNumericTextBox numTextBox = (RadNumericTextBox)editItem["TextCol1"].Controls[0];

Issue is not occuring When I use old Telrik UI Dll. (2010)

It occurs only with latest dll (2014)

 

Please let us know How to read with the latest dll?

 

Eyup
Telerik team
 answered on 01 May 2015
1 answer
204 views

Hi

I am struggling to filter data in Scheduler. Currently i am populating appointment data with station name. I am using two  dataSource ID. One is use to bind appointment data . Another datasource ID is use to populate Station Name(<telerik:ResourceType>). Things are working fine. Now i would like to apply a filter. My requirement is by default i need to populate all stations with appointments. In my page, i am having text box. When user enters any station name in the textbox, i should filter data accordingly. (All my code is in client side now). Can you please help me.

Regards

Arima

 

Plamen
Telerik team
 answered on 01 May 2015
1 answer
5.7K+ views
Hi,
how to get the datetime value using javascript by combining the values of RadDatePicker and RadTimePicker

thanks in advance
Jiju
Eyup
Telerik team
 answered on 01 May 2015
3 answers
275 views

Hi Team,

   I'm using Telerik.Web.UI 2010.3.1317.20 on my web page. I would like to add two date picker on grid filter. I can add with below code. I don't see filter menu beside the date picker after i added. I saw Filter Menu if i does not use "Filter Template". How may i archive get my gold.

 

Best Regards,

Here is my code snap.

<telerik:GridBoundColumn DataField="Order_Date" DataType="System.DateTime" FilterControlAltText="Filter Order_Date column"
                            HeaderText="Order Date" SortExpression="Order_Date" UniqueName="Order_Date" DataFormatString="{0:dd-MMM-yyyy}"
                            HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" AllowFiltering="true">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                            <FilterTemplate>
                                From:
                                <telerik:RadDatePicker ID="dtpOrdDateFrom" runat="server" Width="140px" MinDate="01-01-1753" />
                                To:
                                <telerik:RadDatePicker ID="dtpOrdDateTo" runat="server" Width="140px" MinDate="01-01-1753" />
                            </FilterTemplate>
                        </telerik:GridBoundColumn>

Eyup
Telerik team
 answered on 01 May 2015
3 answers
85 views

We are experiencing an issue where, when right clicking on a file in the RadFileExplorer, the file is sometimes deleted immediately. No confirmation dialog is displayed, as is usually the case when deleting files.

It only seems to happen in Safari and seems to happen intermittently. We have reproduced it on both Mac and Windows platforms.

I'm just wondering if this has been reported before or if you have any suggestions.

Any help you can offer will be appreciated.

Thanks

Vessy
Telerik team
 answered on 30 Apr 2015
12 answers
366 views
Hi all how can I disable edit option in radgrid. I would like to disable edit option for all the rows except first row. I would like to hide the edit icon or I would like to show alert as you can edit the old record 

My design is as follows for edit icon

<telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="images/Edit.gif"
                    UniqueName="EmpID" />
Stacy
Top achievements
Rank 1
 answered on 30 Apr 2015
2 answers
214 views

We have several pages where we have successfully exported RadGrid contents to Excel using the ExportToExcel() method.  However, we now have a situation where we have a multi-page wizard using a MultiView controls and one of the View controls has a RadGrid on it with a preview of some results.  The users would like to be able to export this RadGrid to Excel.  However, the typical code does not work:

 

        protected void ExportToExcelButton_Click(object sender, EventArgs e)
        {
            PreviewGrid.ExportSettings.IgnorePaging = true;
            PreviewGrid.ExportSettings.OpenInNewWindow = true;
            PreviewGrid.MasterTableView.ExportToExcel();
        }

The RadGrid is fairly simple:

 

<telerik:RadGrid ID="PreviewGrid" AutoGenerateColumns="False" 
                    OnNeedDataSource="PreviewGrid_NeedDataSource" 
                    runat="server" Width="730px" Height="362px">
    <ClientSettings>
        <Selecting EnableDragToSelectRows="false"/>
        <Scrolling AllowScroll="true" UseStaticHeaders="True"></Scrolling>
    </ClientSettings>
    <MasterTableView DataKeyNames="Key" NoMasterRecordsText="Nothing would be generated." CommandItemDisplay="Top" >
        <CommandItemTemplate>
            <div class="floatRightDiv" style="margin-top: 3px;margin-left: 700px;display:none;">
                <asp:Button ID="ExportToExcelButton" runat="server" CssClass="rgExpXLS" OnClick="ExportToExcelButton_Click" Visible="false"/>
            </div>
        </CommandItemTemplate>  
        <Columns>
            <telerik:GridBoundColumn UniqueName="Field1" DataField="Field1" HeaderText="Field1"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Field2" DataField="Field2" HeaderText="Field2"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Field3" DataField="Field3" HeaderText="Field3"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Field4" DataField="Field4" HeaderText="Field4"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Field5" DataField="Field5" HeaderText="Field5"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Amount" DataField="Amount" HeaderText="Amount" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

How can we export from a grid in a window?

Richard
Top achievements
Rank 1
 answered on 30 Apr 2015
3 answers
118 views

hi,
im using control rahhtml chart telerik in my project this is my code 

SqlConnection con = new SqlConnection(@"Data Source=.;Initial Catalog=DB_WEB_Q_TEL;Integrated Security=True");
string req = "select time_tag,[ain_sebou|Niveau] as AIN_SEBOU_NIVEAU from QTSW_DATA1 where time_tag between ('01/01/2015') AND ('10/01/2015')";
DataSet DS = new DataSet();
con.Open();
if (DS.Tables.Contains("TRChart"))
{
DS.Tables.Remove("TRChart");
}
SqlDataAdapter da = new SqlDataAdapter(req, con);
da.Fill(DS, "TRChart");
con.Close();

RadHtmlChart chart = new RadHtmlChart();

chart.DataSource = DS.Tables["TRChart"];
chart.DataBind();

LineSeries LS = new LineSeries();
LS.DataFieldY = "AIN_SEBOU_NIVEAU";
LS.TooltipsAppearance.DataFormatString = "{0} at {1}";

chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "{0:dd-MM-yyyy HH:mm}";
chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 90;

chart.PlotArea.XAxis.BaseUnit = Telerik.Web.UI.HtmlChart.DateTimeBaseUnit.Days;
chart.PlotArea.XAxis.DataLabelsField = "time_tag";
chart.PlotArea.Series.Add(LS);

PlaceHolder3.Controls.Add(chart);


<asp:PlaceHolder ID="PlaceHolder3" runat="server">
</asp:PlaceHolder>


i want to display for example ( 230 at 01/01/2015 00:00 ) 
plzz i need help

EssMus
Top achievements
Rank 1
 answered on 30 Apr 2015
3 answers
175 views

I'm having issues with the rad editor buttons overlapping at smaller window sizes.  In attached image, look at the buttons to the right of the "Aa" button.  Code is below.

 

                                            <telerik:RadEditor ID="rtbBannerHtml" runat="server" 
                                                Skin="Silk"
                                                ToolbarMode="Default"
                                                Height="300px" 
                                                Width="100%" 
                                                ToolsFile="/ets/radcontrols/Editor/config/AdvancedBaseTools.xml"
                                                ShowSubmitCancelButtons="false">
                                            </telerik:RadEditor>

Lisa
Top achievements
Rank 1
 answered on 30 Apr 2015
1 answer
114 views

We have recently upgraded the telerik controls from v2010.2.1029.35 to v2014.3.1209.35. With old version, when we paste the HTML content shown below in the 'HTML' mode and then switch to the 'Design' mode, the editor removes the duplicate 'HEAD', 'TITLE', 'BODY' tags automatically. But when the same thing is done with the upgraded  one, the editor removes all the content  with the duplicate tags except the last one.

Any suggestion why it is behaving differently? Thanks in advance for the suggestions.

=====================================================
<html><head><body topmargin=0 leftmargin=0> <html><head></head><body topmargin="0" leftmargin="0" style="height: 291px; color: black; font-family: times new roman; font-size: 12pt; background-color: white;" jquery111105915575585243771="3"><p><title></title><span style="color: rgb(0, 0, 0);">desc12333</span></p><p><span style="color: rgb(0, 0, 0);">asasa</span></p><p><span style="color: black;"><DIV style="PAGE-BREAK-INSIDE: avoid"><html><head><body topmargin=0 leftmargin=0> <html>

    <head>
        <title></title>
    </head>
    <body style="font-family: times new roman; font-size: 12pt;" leftmargin="0" topmargin="0">
        <span style="color: #000000;">220 220</span> <br />
        -----------<br />
        <br />
    </body>
</html>
</body></head></html></span></p><p><span style="color: rgb(0, 0, 0);">&nbsp;</span></p></body></html></body></head></html>
============================================================

      

Ianko
Telerik team
 answered on 30 Apr 2015
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?