Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
324 views
protected void RadGrid1_ItemUpdated(object sender, GridUpdatedEventArgs e)
        {
            if (Label19.Text != null && Label18.Text != null)
            {
                System.Net.Mail.MailMessage msgMail = new System.Net.Mail.MailMessage();
 
                msgMail.Body = (" Dear  ") + "<br/>" + "<br/>" + (" Kindly Be Noted That There Is a New Request Has Been Add From : ") + Label19.Text + "<br/>" + "<br/>" + ("Kindly Check  ");
 
                msgMail.From = new MailAddress("");
 
                msgMail.To.Add(DropDownList5.SelectedItem.Attributes.ToString());
 
                msgMail.CC.Add("");
 
                msgMail.Subject = (" Your Request Had Been :  ") + Label18.Text;
 
                msgMail.IsBodyHtml = true;
 
                SmtpClient smtp = new SmtpClient("");
 
                smtp.UseDefaultCredentials = false;
 
                NetworkCredential crdntl = new NetworkCredential("");
 
                smtp.Credentials = crdntl;
 
                smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
 
                smtp.Send(msgMail);
 
            }

Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Mar 2013
16 answers
797 views
Hi there,

I am wondering if it is possible to perform an AJAX postback to the server when the user changes the month or year on the calendar popup?  Please see screenshot.

Thanks
John
Peter
Top achievements
Rank 1
 answered on 04 Mar 2013
2 answers
254 views
When a user closes the RadWindow I need to refresh the grid on the page where the RadWindow was opened to reflect the changes the user made in the RadWindow.  How do I do that?
Princy
Top achievements
Rank 2
 answered on 04 Mar 2013
3 answers
387 views
I have a radgrid and a user has made a choice in a radcombobox in a row.  I have then set the row selected to true (in javascript) and I also have reference to the rows index (if needed).  Anyway,  now I need to change a asp:image control and a asp:label controls values based on the combobox choice...

I was trying something like this (see script below) but it continues to return null... I would like to leverage the fact that I have the row set as selected if that would help actually find the image control

function getControl(rowIndex) {
var masterTable = $find("<%=RadGridAudits.ClientID%>").get_masterTableView();
var imageState = masterTable.get_dataItems()[rowIndex].findControl('ImageState');
// change the img to another image at this point...
 }

Here is the GridTemplageColumn:
<telerik:GridTemplateColumn DataField="TagAuditState" HeaderText="Audit State" SortExpression="TagAuditState"
                     UniqueName="TagAuditState">
                     <ItemTemplate>
                         <asp:Image ID="ImageState" runat="server" />
                         <asp:Label ID="LabelTagAuditState" runat="server" SkinID="EditForms" Text='<%# Eval("TagAuditState") %>' />
                     </ItemTemplate>
                 </telerik:GridTemplateColumn>
Shinu
Top achievements
Rank 2
 answered on 04 Mar 2013
2 answers
170 views
Hi,

I have a  radgrid in an user conrol, every time when the grid is in edit mode, the GridHTMLEditorColumn is rendered not correctly in Chrome, trigger the edit mode again (by clicking on Add New or Edit button), then it looks OK. the below is the screen shot.

I am using .Net framework 3.5, Rad Control version is 2012.1.411.35.

Thanks in advance,

Jason
Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 02 Mar 2013
10 answers
195 views
Hi,

I have a RadScheduler on a page and when I try to delete an appointment by either clicking on the little red cross, or right click on the appointment and select delete from the context sensitive menu I get a javascript error in the Telerik javascript generated code saying 
"Object doesn't support this property or method" at the line 
var l=$telerik.$.modal("#"+this.get_element().id+">.rsTopWrap")

This is happening at the confirm delete check in the code

I have checked the value of this.get_element().id and it is returning "RadScheduler1"

Is this a bug in the telerik code or have I done something that would cause this?
My Scheduler is set up as follows and I am using the version from Q2 2010 under ASP.Net 3.5

<telerik:RadScheduler ID="RadScheduler1" runat="server" ShowFooter="false" SelectedDate="2010-10-12"
                                    TimeZoneOffset="00:00:00" DayStartTime="00:00:00" DayEndTime="23:59:59" WorkDayStartTime="08:00:00"
                                    WorkDayEndTime="18:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"
                                    ShowAllDayRow="false" AppointmentStyleMode="Default" OnNavigationComplete="RadScheduler1_NavigationComplete"
                                    OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                                    OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
                                    onResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated" ShowNavigationPane="true"
                                    OnFormCreating="RadScheduler1_FormCreating" StartEditingInAdvancedForm="false" 
                                    EnableDatePicker="true" MinutesPerRow="30" DataSourceID="LinqDataSource2" DataKeyField="BookingInReference"
                                    DataSubjectField="BookingSubject" DataStartField="StartDate" DataEndField="EndDate"
                                    DataDescriptionField="BookingDetails" Style="position: absolute; top: 215px;
                                    left: 300px; height: 524px;">
                                    <AdvancedForm Modal="true" />
                                    <ResourceTypes>
                                        <telerik:ResourceType KeyField="MachineID" Name="Machine" TextField="MachineName"
                                            ForeignKeyField="MachineID" DataSourceID="LinqDataSource3"  />
                                    </ResourceTypes>
                                    <ResourceHeaderTemplate>
                                        <asp:Panel id="pnlResourceHeader" runat="server" style="background:green">
                                           <asp:Label ID="lblMachineName" runat="server" Text="Label"></asp:Label>
                                           <br />Containers: <asp:Label id="lblContainers" runat="server" /> of <asp:Label id="lblMaxContainers" runat="server" />
                                        </asp:Panel>
                                    </ResourceHeaderTemplate>
                                    <TimelineView UserSelectable="false" />
                                    <TimeSlotContextMenuSettings EnableDefault="false" />
                                    <AppointmentContextMenuSettings EnableDefault="true" />
                                </telerik:RadScheduler>

Stuart Watton
Markus Hopfenspirger
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
276 views
Hello,

I have an AutoCompleteBox and am trying to clear the client-side value using a javascript function.

I have given an example below with a comment at where I am unsure of what property to use. When the button is clicked any user inputted text should be cleared and the EmptyMessage appears.

function ClearBox()
{
    var box = $("#<%= ctrlBox.ClientID %>");
    //what do I put here to clear the value??
    //I tried box.text('') but it doesn't work
}
 
<input type='button' onclick='ClearBox();' />
<telerik:RadAutoCompleteBox ID="ctrlBox"
       runat="server"
       InputType="Text"
       AllowCustomEntry="false"
       Filter="Contains"
       Delimiter=" "
       Width="630px"
       DropDownWidth="660px"
       EmptyMessage="Type here"
       OnClientDropDownOpening="openingDropdown"
       OnClientLoad="loadingAutoComplete"
       OnClientRequesting="requesting" >
</telerik:RadAutoCompleteBox>
Princy
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
111 views
Hi
     How can I make the gridcheckboxcolumn clickable in view mode.
Thanks in advance
Savyo
Shinu
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
177 views
Hi there

I want to disable the color change in the column when the grid column header text is clicked for sorting. Please somebody guide me to accomplish this one.
thanks and regards
Allen
Shinu
Top achievements
Rank 2
 answered on 02 Mar 2013
8 answers
411 views
Hello All,
 I'm trying to create a custom skin for RadChart and am having some trouble. I was following the instructions here: http://www.telerik.com/help/aspnet-ajax/createcustomskin.html , but got stuck on #2. I can't find a chart folder in any of the skin folders, and I can't find any css file for Chart (Chart.[Skin].css). Is that right? Am I missing something? Also, when I go here: C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Skins I only see 14 skin folders, yet when I open the RadChart smart tag in my aspx page, I see many more skins listed. Can anyone tell me if I'm doing something wrong or am in the wrong place?

Thanks,
Ben
Princy
Top achievements
Rank 2
 answered on 02 Mar 2013
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?