Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
191 views
Am using rad grid in web application.
Grid display rows with 3 colors (red,green,yellow)
While export to excel it shows the colors, but i need to add header rows programatically.
So i used  <Excel Format="ExcelML" />, but it display rows without colors.

1. How to achieve it while export to excel, i need rows with colors and header rows
2. Also i need to add header in each page

Help me

Thank you
Jayanthi
Osismii
Top achievements
Rank 1
 answered on 09 Aug 2013
1 answer
81 views
I am  using  Telerick AJAX - Q2 2013 SP1  .
I have attached the desing which was designed with using  ListView control of Win Form .
I need the same desing using RadListView .
How to achieve it ?
Venelin
Telerik team
 answered on 09 Aug 2013
1 answer
183 views
Hi

I cannot find a click event handler for the radorgchart node.but i have an urgent requirement, on clicking a node I want to fetch the index and store it in a hidden field. Any work around?

Thanks
Freddy
Princy
Top achievements
Rank 2
 answered on 09 Aug 2013
1 answer
221 views
Hi,

I am using telerik Grid View and telerik RadAjaxPanel to display records in grid. But the description column is not displaying the records in new line where as when I click edit button the text is in new line. However I changed the text and pressed Enter Button from keyboard and then again typed some text. After clicking Update button. The text I entered is still appearing in single line.

It tried creating Functions and then called it on label. But i did n't worked.

Here is the code:
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"   CssClass="TabGrid">
<td style="width: 270px;" class="details" colspan="3">
                                                <asp:TextBox ID="txt_description" runat="server" TextMode="MultiLine" Height="50" Width="500" AcceptsReturn="False" CssClass="inputtype" ></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="req_first_name" runat="server" ControlToValidate="txt_description"
                                                    ValidationGroup="_basic" Display="Dynamic" ErrorMessage="<br>Description Required"></asp:RequiredFieldValidator>
                                                <asp:Label ID="lbl_description" runat="server" Text='<%# FixCrLf(Eval("postEventFeedback")) %>' ></asp:Label>
                                                </td>
                    </telerik:RadAjaxPanel>



The Function I have used :

  
Protected Function FixCrLf(value As String) As String
        If String.IsNullOrEmpty(value) Then Return String.Empty
        Return value.Replace(Environment.Newline, "<br />")
    End Function

Angel Petrov
Telerik team
 answered on 09 Aug 2013
0 answers
59 views
Hello,
I want to find those particular values from resources which is multi-selectable. is there any way to find them or on which event i can find out them. please help me.
Kalpna
Top achievements
Rank 1
 asked on 09 Aug 2013
6 answers
126 views
Hi all,

I have a tabstrip that has tabs dynamically added client-side.
Each tab has a close icon attached - this is working absolutely fine.

However, if for whatever reason the window containing the tabstrip is scrolled, the tabs move but the icons are fixed in place and left "floating".
Is there a way to ensure the close img always moves with the tab?

Cheers
Rich
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2013
1 answer
238 views
I've some files with long filename.
RadAsyncUpload does not load when fileName is grather than 158 characters.
Where I can change this?

this is my code
<body>
    <form id="form1" runat="server">
    <div>  <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"  LoadScriptsBeforeUI="true"
                                  EnablePartialRendering="true" />
   <telerik:RadAsyncUpload id="RadAsyncUpload1" runat="server" OnFileUploaded="RadAsyncUpload1_FileUploaded1" />
<asp:Button runat="server" ID="Button1" Text="Submit" OnClick="Button1_Click" />
    </div>
    </form>
</body>
</html>

I attach an image where show extended filename does not load it.

regards
Princy
Top achievements
Rank 2
 answered on 09 Aug 2013
4 answers
155 views
 Hello Community,

I am using the asyncUpload Control to upload a single file.

After the user selects their file I want to get the filename to show them their choice. Now the File is uploaded to the Temporary Folder and the File is renamed.

At the moment I can only get the FileName after the file is uploaded to the TargetFolder, but actually I need the Temporary FileName.

Is there any way to do that?

This is my function:

function OnClientFileSelected(sender, args) {
    var currentFileName = args.get_fileName();
    var fullPath = "C:/TempUpload/" + currentFileName;
    $("#LogoAuswahlPre").attr("href", fullPath);
    $('#LogoAuswahlPre').attr('data-lightbox', 'LogoAuswahl');
}

Thanks for reading

Daniel
Top achievements
Rank 1
 answered on 09 Aug 2013
3 answers
339 views
Hello,

I am using ASP.NET 3.5 with C#, telerik version 2012.1.515.35.

I have a RadTimepicker inside an UserControl.

I want to restrict entering of future time. Suppose I have 7:00 AM on my computer then user can select / insert maximum time 7:00 am, not more than that.

I also I need to show the RadTimepicker's time as per logged-in user's timezone. For that I am taking DateTime.UTCNow and converting it to user's time with some extension method.

The ascx page's RadTimepicker control's configuration is :

<telerik:RadTimePicker ID="rtpVitals" runat="server" Width="85" DateInput-DateFormat="HH:mm"
    TimeView-TimeFormat="HH:mm" Skin="Hay">
    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
    </Calendar>
    <TimeView CellSpacing="-1" TimeFormat="HH:mm" OnClientTimeSelected="OnClientTimeSelected">
    </TimeView>
    <TimePopupButton CssClass="" ImageUrl="" HoverImageUrl="" onblur="hideTimePopup('rtpVitals');">
    </TimePopupButton>
    <DatePopupButton Visible="False" CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton>
    <DateInput CssClass="txtbox txtBack-Color" BorderColor="#D0D1AE" BorderStyle="Solid"
        BorderWidth="1" ForeColor="#333333" onblur="enterDateTime();">
    </DateInput>
</telerik:RadTimePicker>


And in Page_PreRender() event of UserControl i call following method to set the RadTimePicker's property :

private void setTimePicker()
{
    try
    {
        TimeZoneInfo t = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");
        DateTime d = DateTime.UtcNow.ToUserTime(t);
 
        rtpVitals.TimeView.StartTime = new TimeSpan(0, 0, 0);
 
        if (d.Hour < 1)
        {
            rtpVitals.TimeView.Interval = new TimeSpan(0, d.Minute/2, 0);
 
            if (d.Minute <= 1)
            {
                rtpVitals.TimeView.Interval = new TimeSpan(0, 0, d.Second/2);
            }
        }
        else if (d.Hour < 12)
        {
            rtpVitals.TimeView.Interval = new TimeSpan(0, 30, 0);
        }
        else
        {
            rtpVitals.TimeView.Interval = new TimeSpan(1, 00, 0);
        }
 
        rtpVitals.TimeView.EndTime = new TimeSpan(d.Hour, d.Minute, d.Second);
    }
    catch (Exception ex)
    {
        throw ex;
    }
}


The extension method to convert time is as below :

public static DateTime ToUserTime(this DateTime utcTime, TimeZoneInfo toUserTimeZone)
{
    try
    {
        utcTime = DateTime.SpecifyKind(utcTime, DateTimeKind.Unspecified);
        //Create the userTime object
        //Set it to UTC time by default. It would be changed later
        DateTime userTime = utcTime;
 
        //Convert the time
        TimeZoneInfo fromTimeZone = TimeZoneInfo.Utc;
        userTime = TimeZoneInfo.ConvertTime(utcTime, fromTimeZone, toUserTimeZone);
 
        //Return the TimeZone
        return userTime;
    }
    catch
    {
        throw;
    }
}


FYI : My computer's timezone is "(UTC+5:30) Chennai, Kolkata, Mumbai, New Delhi".

Set your PC's time between 8:30 AM to 10:30 AM, and run the project. The time-view will show you time upto 23:00 hours with 1 hour interval, but selection of any time will give you the error icon i.e. invalid time inside RadTimePicker.

You have any idea why it is happening?

Thanks..







Vasil
Telerik team
 answered on 09 Aug 2013
1 answer
287 views
Hey,
I have a code of a radComboBox which is bind to a table with only 2 columns : agentID & agentName.
I set up dataTextField to agentName, and dataValueField to agentID. 
The user can select in the comboBox the name of the agent, but when submitting the form the selectedValue returns null.

Any Ideas why ?

Thank you!
<telerik:RadComboBox ID="agentID_cmb" Runat="server" AutoPostBack="True"
                                    DataSourceID="SqlDataSource1" DataTextField="agentName" DataValueField="agentID"
                                    onselectedindexchanged="agentID_cmb_SelectedIndexChanged"
                                    ontextchanged="agentID_cmb_TextChanged" Skin="Office2007">
                                </telerik:RadComboBox>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                                    ConnectionString="<%$ ConnectionStrings:1122ConnectionString %>"
                                    SelectCommand="SELECT [agentID],[agentName] FROM [tblagents]"></asp:SqlDataSource>

Nencho
Telerik team
 answered on 09 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?