Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
165 views
When clicking on a button on toolbar its posting back twice code is:

<rad:RadToolbar ID="RadToolbarCustomer" style="position:absolute; left: 790px; top: 130px;" runat="server" skinspath="/XLogix/RadControls/ToolBar/Skins/" skin="XLogixBlue" AutoPostBack="true"

ImagesDir="/XLogix/RadControls/ToolBar/Skins/XLogixBlue/img/" OnOnClick="RadToolBar_OnClick">

<Items>

<rad:RadToolbarButton id="CreateButton" commandname="Create" DisplayType="TextImage" ButtonText="Create" ButtonImage="add_24.gif" tooltip="Create new order for this customer" width="90px" runat="server"/>

<rad:RadToolbarButton id="UpdateButton" commandname="Update" DisplayType="TextImage" ButtonText="Update" ButtonImage="add_24.gif" tooltip="Update order for this customer" width="90px" runat="server"/>

</Items>

</rad:RadToolbar>

this other toolbar on the same page does not have the same problem both using the same onclick event handler 
<
rad:RadToolbar ID="RadToolbarProduct" style="position:absolute; left: 570px; top: 620px;" runat="server" skinspath="/XLogix/RadControls/ToolBar/Skins/" skin="XLogixBlue" AutoPostBack="true"

ImagesDir="/XLogix/RadControls/ToolBar/Skins/XLogixBlue/img/" OnOnClick="RadToolBar_OnClick" Enabled="False" >

<Items>

<rad:RadToolbarButton id="DeleteBtn" commandname="Delete" DisplayType="TextImage" ButtonText="Delete" ButtonImage="remove_24.gif" tooltip="Delete item from order" width="90px" Enabled="False" Hidden="False" runat="server"/>

<rad:RadToolbarButton id="AddBtn" commandname="Add" DisplayType="TextImage" ButtonText="Add" ButtonImage="add_24.gif" tooltip="Add item to order" width="90px" Enabled="False" Hidden="False" runat="server"/>

<rad:RadToolbarButton id="NewBtn" commandname="New" DisplayType="TextImage" ButtonText="New" ButtonImage="add_24.gif" tooltip="Create item to add to order" width="90px" Enabled="False" Hidden="False" runat="server"/>

<rad:RadToolbarButton id="DoneBtn" commandname="Done" DisplayType="TextImage" ButtonText="Done" ButtonImage="add_24.gif" tooltip="Complete Order" width="90px" Enabled="False" Hidden="False" runat="server"/>

</Items>

</rad:RadToolbar>

This problem occurs if i have ajax on or off toolbar dll version is 1.6.5.0

Simon
Telerik team
 answered on 04 Jan 2011
2 answers
418 views
Hi, I am using "RadControls for ASP.NET AJAX Q3 2009" version and for RadGrid Item selection, I want to display cursor as pointer (hand),
I mean when user moves cursor over grid rows to select, it should show cursor as pointer so that user can know that they can select row.

How do I achieve this irrespective of applied skin? I am using Vista skin at present but I want to apply some code which should work even if I change skin.

Thanks in advance,
Nirav
Top achievements
Rank 1
 answered on 04 Jan 2011
2 answers
121 views
Hello,

It seems that RadGrid is using 'Datetime sql type'. (I mean it's lower year accepted is 1753.)
Is there a way to make it compatible with 'Datetime2 sql type' ?


Thank you.
Xrcr
Top achievements
Rank 1
 answered on 04 Jan 2011
3 answers
258 views
Hello,
        I have a RadAsyncUpload in my web page and it works well in internet explorer but it doesnt work in Google chrome. Please check the code below.

<telerik:RadAsyncUpload   id="radupload1" MaxFileInputsCount="1" AllowedFileExtensions=".pdf, .doc" MultipleFileSelection="Disabled"  MaxFileInputsCount="1"  MaxFileSize="12000000">

In google chrome, when I upload a file, it comes up with an exclamation mark and thats it. If I click on remove link, select file dialog opens up.
I tried without AllowedFileExtensions and MaxFileSize but still of no use. Is it something I m missing? Please let me know.


Thanks,
Bharani
Bharani Mani
Top achievements
Rank 1
 answered on 04 Jan 2011
1 answer
154 views

hi
Here im having the code.  i need to add a new template column such as combo box or check box inside the pop up and the option pop.. Please help me.


<%

@ Page Title="" Language="C#" MasterPageFile="~/Transactions/Calendar/CalendarMaster.Master"

 

 

AutoEventWireup="true" CodeBehind="Calendar.aspx.cs" Inherits="GemsStandard.Transactions.Calendar.Calendar" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

 

 

<style type="text/css">

 

 

.style1

 

{

 

width: 100%;

 

}

 

.example-panel

 

{

 

width: 870px;

 

 

height: 585px;

 

 

background: transparent url('Images/background.png') no-repeat 0 0;

 

 

padding: 55px 0 0 8px;

 

}

 

.RadSplitter

 

{

 

border: none !important;

 

 

margin: 0 !important;

 

}

 

.RadPanelBar .rootGroup

 

{

 

border-left: none;

 

 

border-right: none;

 

}

 

.calendar-container

 

{

 

width: 220px;

 

 

margin: 0 auto 7px auto;

 

}

 

.calendar-title

 

{

 

height: 26px;

 

 

padding: 6px 5px;

 

 

font-size: 16px;

 

 

font-color: #1e395b;

 

}

 

#RadScheduler1Panel

 

{

 

width: 100%;

 

 

overflow: hidden;

 

}

 

div.RadScheduler

 

{

 

width: 100%;

 

}

 

/* Styles for the appointment Subject */.RadScheduler .rsAptSubject

 

{

 

text-align: left;

 

 

margin: 0 0 3px;

 

 

font-size: 11px;

 

 

font-weight: bold;

 

 

color: #369;

 

 

height: 17px;

 

 

border-bottom: 1px solid #8bf;

 

 

width: 100%;

 

 

overflow: hidden;

 

}

 

/* Remove the Subject underline for all-day appointments */.RadScheduler .rsAllDayRow .rsAptSubject

 

{

 

border-bottom: none;

 

}

 

div.RadScheduler .rsCategoryPattern .rsAptContent, div.RadScheduler .rsCategoryPattern .rsAptIn, div.RadScheduler .rsCategoryPattern .rsAptMid

 

{

 

background: url('Images/pattern.png') repeat-x left top;

 

}

 

</style>

 

</

 

asp:Content>

 

<

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 

 

<table width="100%">

 

 

<tr>

 

 

<td>

 

 

<b>CALENDAR</b>

 

 

</td>

 

 

<td>

 

 

<asp:Label ID="lblAcademiYearID" runat="server" Visible="False"></asp:Label>

 

 

<asp:Label ID="lblInstitutionID" runat="server" Visible="False"></asp:Label>

 

 

</td>

 

 

<tr>

 

 

<td>

 

 

&nbsp;

 

 

</td>

 

 

<td>

 

 

<asp:Button ID="btnViewCalender" runat="server" Text="View Calendar" OnClick="btnViewCalender_Click" />

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<table class="style1">

 

 

<tr>

 

 

<td>

 

Holiday Type

 

<telerik:RadComboBox ID="radHolidayType" runat="server" EmptyMessage="Select Holiday Type"

 

 

Skin="Sunset">

 

 

</telerik:RadComboBox>

 

 

<telerik:RadCalendar ID="radCalendar1" runat="server" OnSelectionChanged="radCalendar1_SelectionChanged1"

 

 

OnDefaultViewChanged="radCalendar1_DefaultViewChanged" Skin="Sunset">

 

 

<dayoverstyle cssclass="rcHover"></dayoverstyle>

 

 

<fastnavigationstyle cssclass="RadCalendarMonthView RadCalendarMonthView_Sunset">

 

 

</fastnavigationstyle>

 

 

<disableddaystyle cssclass="rcDisabled"></disableddaystyle>

 

 

<weekenddaystyle cssclass="rcWeekend"></weekenddaystyle>

 

 

<viewselectorstyle cssclass="rcViewSel"></viewselectorstyle>

 

 

<selecteddaystyle cssclass="rcSelected"></selecteddaystyle>

 

 

<calendartablestyle cssclass="rcMainTable"></calendartablestyle>

 

 

<othermonthdaystyle cssclass="rcOtherMonth"></othermonthdaystyle>

 

 

<outofrangedaystyle cssclass="rcOutOfRange"></outofrangedaystyle>

 

 

</telerik:RadCalendar>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadCalendar ID="radCalendar2" runat="server" OnSelectionChanged="radCalendar2_SelectionChanged1"

 

 

Skin="Sunset">

 

 

<dayoverstyle cssclass="rcHover"></dayoverstyle>

 

 

<fastnavigationstyle cssclass="RadCalendarMonthView RadCalendarMonthView_Sunset">

 

 

</fastnavigationstyle>

 

 

<disableddaystyle cssclass="rcDisabled"></disableddaystyle>

 

 

<weekenddaystyle cssclass="rcWeekend"></weekenddaystyle>

 

 

<viewselectorstyle cssclass="rcViewSel"></viewselectorstyle>

 

 

<selecteddaystyle cssclass="rcSelected"></selecteddaystyle>

 

 

<calendartablestyle cssclass="rcMainTable"></calendartablestyle>

 

 

<othermonthdaystyle cssclass="rcOtherMonth"></othermonthdaystyle>

 

 

<outofrangedaystyle cssclass="rcOutOfRange"></outofrangedaystyle>

 

 

</telerik:RadCalendar>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

<td>

 

 

<telerik:RadScheduler ID="radScheduler" runat="server" DataEndField="ToDate" DataKeyField="CalendarID"

 

 

DataSourceID="SqlDataSource1" DataStartField="FromDate" DataSubjectField="Subject"

 

 

Skin="Sunset" OnAppointmentCreated="radScheduler_AppointmentCreated1" OnAppointmentDataBound="radScheduler_AppointmentDataBound1"

 

 

OnAppointmentDelete="radScheduler_AppointmentDelete1" OnAppointmentInsert="radScheduler_AppointmentInsert1"

 

 

OnNavigationComplete="radScheduler_NavigationComplete1" OnAppointmentUpdate="radScheduler_AppointmentUpdate">

 

 

<advancedform modal="true" />

 

 

<resourcestyles>

 

 

<telerik:ResourceStyleMapping Type="Calendar" Text="Development" BorderColor="#B0CC9B" />

 

 

<telerik:ResourceStyleMapping Type="Calendar" Text="Marketing" />

 

 

<telerik:ResourceStyleMapping Type="Calendar" Text="Work" BackColor="#edd5b7" BorderColor="#cdb597" />

 

 

</resourcestyles>

 

<%

--<inlineinserttemplate>

 

<div>

<asp:LinkButton ID="LinkButton2" runat="server">LinkButton</asp:LinkButton>

</div>

</inlineinserttemplate>

<appointmenttemplate>

<div>

<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>

</div>

</appointmenttemplate>--

 

%>

 

 

</telerik:RadScheduler>

 

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EVISEAZY %>"

 

 

DeleteCommand="DELETE FROM [tblCalendar] WHERE [CalendarID] = @CalendarID" InsertCommand="INSERT INTO [tblCalendar] ([InstitutionID], [Subject], [FromDate], [ToDate], [HolidayTypeID], [AcdamicYearId]) VALUES (@InstitutionID, @Subject, @FromDate, @ToDate, @HolidayTypeID, @AcdamicYearId)"

 

 

SelectCommand="SELECT * FROM [tblCalendar]" UpdateCommand="UPDATE [tblCalendar] SET [InstitutionID] = @InstitutionID, [Subject] = @Subject, [FromDate] = @FromDate, [ToDate] = @ToDate, [HolidayTypeID] = @HolidayTypeID, [AcdamicYearId] = @AcdamicYearId WHERE [CalendarID] = @CalendarID">

 

 

<DeleteParameters>

 

 

<asp:Parameter Name="CalendarID" Type="Int64" />

 

 

</DeleteParameters>

 

 

<UpdateParameters>

 

 

<asp:Parameter Name="InstitutionID" Type="Int64" />

 

 

<asp:Parameter Name="Subject" Type="String" />

 

 

<asp:Parameter Name="FromDate" Type="DateTime" />

 

 

<asp:Parameter Name="ToDate" Type="DateTime" />

 

 

<asp:Parameter Name="HolidayTypeID" Type="Int64" />

 

 

<asp:Parameter Name="AcdamicYearId" Type="Int64" />

 

 

<asp:Parameter Name="CalendarID" Type="Int64" />

 

 

</UpdateParameters>

 

 

<InsertParameters>

 

 

<asp:Parameter Name="InstitutionID" Type="Int64" />

 

 

<asp:Parameter Name="Subject" Type="String" />

 

 

<asp:Parameter Name="FromDate" Type="DateTime" />

 

 

<asp:Parameter Name="ToDate" Type="DateTime" />

 

 

<asp:Parameter Name="HolidayTypeID" Type="Int64" />

 

 

<asp:Parameter Name="AcdamicYearId" Type="Int64" />

 

 

</InsertParameters>

 

 

</asp:SqlDataSource>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<table>

 

 

<tr>

 

 

<td align="center">

 

 

</td>

 

 

</tr>

 

 

</tr>

 

 

</table>

 

</

 

asp:Content>

 

Peter
Telerik team
 answered on 04 Jan 2011
2 answers
116 views
Hello -

I have a RadGrid that I am using to present a custom reporting solution for our clients (they choose columns, column order, format, etc. then results are displayed in a RadGrid).

Everything is working great, except that when someone wants to save the file as a CSV, a "byte order marker" (BOM) appears at the beginning of the file.  This marker does not appear in the ExportOutput returned from GridExportingArgs that is fired in the OnGridExporting event.  The BOM is causing our customers to have to edit the file before they can run it through their automated systems.

My question is: How can I prevent the BOM from being saved into the CSV file?  Is this possible?

Thanks in advance,
-Brendan
Brendan Casey
Top achievements
Rank 1
 answered on 04 Jan 2011
4 answers
238 views
How do I change the tab order of editable fields in a grid that has all fields open for editing (see attached image)?  Specifically, how do I change from horizontal tabbing to vertical tabbing (see red numbers in attached image)?  The text boxes are RadNumeric text boxes?
WCRA Dev
Top achievements
Rank 1
 answered on 04 Jan 2011
1 answer
88 views
Hi everyone,

I am using the scheduler in timeline view. One thing I have noticed and which I am having difficulty in trying to find a solution for is how to ensure the current block of hours displayed in the timeline view get reset when the scheduler is refreshed from an ajax callback. I should clarify that the intention of this callback is to reset the scheduler with a new date, but the start time for the hours displayed to always start at 8:00 a.m. Right now, I have no problems refreshing the scheduler to display a new date. What I have observed however, is that if I have navigated part way through the block of hours for a given selected date (say starting from 8 a.m. to 8 p.m. and I currently see 1pm to 4pm), when I refresh the entire scheduler instance with a callback, the new date is displayed, but the selected block of hours does not reset to 8 a.m. See attached visuals for reference.

How can I ensure that when the scheduler is completely refreshed (rebind()) with new resources and appointments that the selected block of hours restarts at the initial start time? On the callback I try to reset the start time using:

DispatchScheduler.TimelineView.StartTime = TimeSpan.Parse("08:00:00");

But this does not seem to work. The last block of hours to be displayed in the timeline view remain.

Any feedback would be appreciated.

Cheers,

Derek


Peter
Telerik team
 answered on 04 Jan 2011
1 answer
150 views
Hey there,

I'm essentially attempting to use the RadUpload control as a means for a user to select a text file which I will then read and render on the screen.  The behavior I have now is functional, but not ideal, as the user is required to click an additional button in order to force a postback so the selected file is shown on the screen.

The behavior I would like to create is as follows:

1.  User clicks "Select."
2.  User selects a file and clicks "Open."
3.  Upon clicking "Open," a postback occurs and the selected file is read and rendered to the screen.

Is there a way to do this?  Or, is there another control that I should look into to accomplish this?  Ultimately, the file-browser functionality of the Upload control is the most important piece of this for me.

Thanks!

Chris
Cori
Top achievements
Rank 2
 answered on 04 Jan 2011
1 answer
48 views
I might just have a case of Holiday Hangover, but I cannot figure out how to add the "Confirm postback with radconfirm" button found here to a ListView using the Basic filtering found here. The ListView uses the "Telerik.ListViewExamplesVBNET.Paging.IntegratedPaging" namespace and the RadConfirm button uses the "Telerik.Web.Examples.Window.BrowserDialogBoxes" namespace.

Can someone help me get out of this holiday fog?
Georgi Tunev
Telerik team
 answered on 04 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?