Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
110 views
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="100%" DataKeyField="Id"
                   DataSubjectField="Subject" DataStartField="StartDate" DataEndField="EndDate"
                   DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"
                   Height="800px" SelectedView="WeekView" OnAppointmentInsert="RadScheduler_OnInsert"
                   OnAppointmentUpdate="RadScheduler_OnUpdate" OnAppointmentDelete="RadScheduler_OnDelete"
                   EnableDescriptionField="true" AppointmentStyleMode="Default" ShowFooter="true"
                   StartInsertingInAdvancedForm="true" StartEditingInAdvancedForm="true" Reminders-Enabled="false"
                   OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnAppointmentCreated="RadScheduler1_AppointmentCreated"
                   Skin="Vista" DataDescriptionField="Description" DataReminderField="Reminder">
                   <TimeSlotContextMenuSettings EnableDefault="true" />
                   <AppointmentContextMenuSettings EnableDefault="true" />
                   <AdvancedForm Modal="true" />
                   <ResourceTypes>
                       <telerik:ResourceType KeyField="UserId" Name="User" TextField="UserNameFull" ForeignKeyField="AdverUserID"
                           DataSourceID="ObjDataSourceUsers" />
                   </ResourceTypes>
                   <AppointmentTemplate>
                       <div>
                           <asp:panel id="pRecurrence" runat="server" cssclass="rsAptRecurrence" visible="false" />
                           <asp:panel id="pReminder" runat="server" cssclass="rsAptReminder" visible="false" />
                           <asp:panel id="pRecurrenceException" runat="server" cssclass="rsAptRecurrenceException"
                               visible="false" />
                           <%#Eval("Subject") %>
                           <small>(<%#Eval("Start","{0:hh:mm}")%>)</small>
                       </div>
                       <hr />
                       <div style="height: 30px;">
                           Assigned to: <strong>
                               <asp:label id="lUser" runat="server" text='<%# Container.Appointment.Resources.GetResourceByType("User") == null ? "Geen" : Container.Appointment.Resources.GetResourceByType("User").Text %>' />
                           </strong>
                       </div>
                   </AppointmentTemplate>
               </telerik:RadScheduler>
               <asp:objectdatasource id="ObjDataSourceUsers" runat="server" typename="Data.Core.Aspnet_User"
                   selectmethod="GetAllActive"></asp:objectdatasource>
Hi,

We use the laste version of telerik Q3 2011 and we just implement the scheduler in our application.
We have differents problems and until now no solution for it.
1/ When we navigate in the scheduler (selectedView is WeekView) after a couple of click the design is completely broked (see print screen in attachment). This problem is present only in IE9.

2/ We use OnAppointmentInsert, OnAppointmentDatabound, OnAppointmentCreated, etc to Insert, update and deleten an appointment.
When we create a new appointment is not a problem. The scheduler show directly the new appointment. If we want to update or delete this appointemnt nothing append. When I debug with VisualStudio also nothing append. If I refresh the all page and try again than is working wel.

The core that we use is :

For ASPX



The code C#:

protected void RadScheduler_OnInsert(object sender, AppointmentInsertEventArgs e)
       {
           Save(0,e.Appointment);
       }
 
       protected void RadScheduler_OnUpdate(object sender, AppointmentUpdateEventArgs e)
       {
           var apId = e.ModifiedAppointment.ID;
           Save(int.Parse(apId.ToString()),e.ModifiedAppointment);
       }
 
       protected void RadScheduler_OnDelete(object sender, AppointmentDeleteEventArgs e)
       {
           var apId = e.Appointment.ID;
           Appointment.DeleteById(int.Parse(apId.ToString()));
       }
Yves
Top achievements
Rank 1
 answered on 15 Jan 2012
2 answers
102 views
Hi:
No question.  Just sharing a code snippet.  This code is from a web-part that searches Google in a new window (client-side):
<div id="GoogleSearch">
    <telerik:RadTextBox ID="searchTextBox" Runat="server"
        EmptyMessage="Type your search criteria here..." Width="260px">
    </telerik:RadTextBox>
    &nbsp; &nbsp;
    <telerik:RadButton ID="searchButton" runat="server" Target="_blank" CausesValidation="False" Text="Search" ButtonType="LinkButton" OnClientClicking="LaunchGoogleWindow" />
</div>
<script type="text/javascript">
    //<![CDATA[
    function LaunchGoogleWindow( ) {
        var str, txt = $find("<%= searchTextBox.ClientID %>");
        var lkButton = $find("<%= searchButton.ClientID %>");
        str = encodeURIComponent(txt.get_value());
        // alert(txt.get_value());
        lkButton.set_navigateUrl("http://www.google.com/search?hl=en&q=" + str);
    }
    //]]>
</script>
Phil
Phil
Top achievements
Rank 2
 answered on 14 Jan 2012
2 answers
380 views
Hello,
   I have an application which is working well under IIS6, but when I am using it under IIS7, in the page that has rad chart, I am getting this error:

HTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Detailed Error Information
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/smarTrend/EnterprisePages/ChartImage.axd?UseSession=true&ChartID=b40fd0b5-683d-4efc-acce-8460a749ebdf_chart_ctl00$BodyContentPlaceHolder$LowerChart&imageFormat=Jpeg&random=0.786466626816646
Physical Path C:\MyWorks\SmarTrend\EnterprisePages\ChartImage.axd
Logon Method Anonymous
Logon User Anonymous
Most likely causes:
  • The directory or file specified does not exist on the Web server.
  • The URL contains a typographical error.
  • A custom filter or module, such as URLScan, restricts access to the file.
Things you can try:
  • Create the content on the Web server.
  • Review the browser URL.
  • Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
Links and More Information

I have the correct http handler in my web.config:

<

 

add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

 

<

 

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

 

<

 

add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

 

<

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

Could somebody help me to find what is the problem?

Best regards

 

bilsa
Top achievements
Rank 1
 answered on 14 Jan 2012
3 answers
97 views
Hello!

i have range slider. 
When draging first drag handle i can pass right drag handle and slide to the end of slider.. how can i fix this?

Regards
omer
Top achievements
Rank 1
 answered on 13 Jan 2012
3 answers
112 views
Hello,

I've been working on creating an application that has a rad tree, and 2 rad grids on the same page. 

One of the things I need it to do is when you click on a node in the rad tree, I need it to load a grid beside it.

I had this working as I wanted it on my local machine using Visual Studio's development server.  When I publish this the Grid doesn't show up anymore.

The other grid I have on the page loads data and shows up fine, but paging doesn't work.

Again everything works fine on vs's development server, but when I publish it to a server with IIS7 and .NET 4 everything seems to be broken

Any help would be greatly appreciated!

Thanks,
Aaron
Aaron
Top achievements
Rank 1
 answered on 13 Jan 2012
3 answers
471 views
Hi,
   I have a radeditor in my page. In radeditor we have the client side function  get_text() to get the text from radeditor. But how to set the text in radeditor instead on set_Html(). The set_html() function has some limitations if the editor contents has special characters or bold, italic etc. Please give the solution for this problem.

Thanks,
Velkumar.
Rumen
Telerik team
 answered on 13 Jan 2012
1 answer
173 views
Hi,

I am using a simple exxample of hierarchical RadGrid to run. But it showing error:-
1. Element 'NestedViewSettings' is not supported.
2. Element 'ParentTableRelation' is not supported.

Please tell why it is so, even when my telerik assembly is already registered in the aspx page.

here is the code that I use:-
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadGrid.aspx.cs" Inherits="RadGrid" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
<telerik:RadGrid ID = "radgrid1" runat = "server" DataSourceID="SqlDataSource1" GridLines="None" Skin = "Vista">
<mastertableview autogeneratecolumns="False" datakeynames="BrandID" datasourceid="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="BrandID" ReadOnly="True" HeaderText="BrandID" SortExpression="BrandID" UniqueName="BrandID" DataType="System.Int32"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BrandName" HeaderText="BrandName" SortExpression="BrandName" UniqueName="BrandName"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BackGroundImageID" HeaderText="BackGroundImageID" SortExpression="BackGroundImageID" UniqueName="BackGroundImageID" DataType="System.Int32"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BackGroundFilePath" HeaderText="BackGroundFilePath" SortExpression="BackGroundFilePath" UniqueName="BackGroundFilePath"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DisplayThemeID" HeaderText="DisplayThemeID" SortExpression="DisplayThemeID" UniqueName="DisplayThemeID" DataType="System.Int32"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ThumbNailImageID" HeaderText="ThumbNailImageID" SortExpression="ThumbNailImageID" UniqueName="ThumbNailImageID" DataType="System.Int32"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SortOrder" HeaderText="SortOrder" SortExpression="SortOrder" UniqueName="SortOrder" DataType="System.Int32"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ThumbNailFilePath" HeaderText="ThumbNailFilePath" SortExpression="ThumbNailFilePath" UniqueName="ThumbNailFilePath"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PropertiesTitle" HeaderText="PropertiesTitle" SortExpression="PropertiesTitle" UniqueName="PropertiesTitle"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PropertiesTitleColor" HeaderText="PropertiesTitleColor" SortExpression="PropertiesTitleColor" UniqueName="PropertiesTitleColor"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PropertiesHeader" HeaderText="PropertiesHeader" SortExpression="PropertiesHeader" UniqueName="PropertiesHeader"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PropertiesHeaderColor" HeaderText="PropertiesHeaderColor" SortExpression="PropertiesHeaderColor" UniqueName="PropertiesHeaderColor"></telerik:GridBoundColumn>
</Columns>
<NestedViewSettings DataSourceID="SqlDataSource2">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="BrandID"
MasterKeyField="BrandID" />
</ParentTableRelation>
</NestedViewSettings>
<NestedViewTemplate>
<asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap">
<div class="contactWrap">
<fieldset style="padding: 10px;">
<legend style="padding: 5px;"><b>Detail info for Brand: <%#Eval("brandname") %></b>
</legend>
<table>
<tr>
<td>
Property Name:
</td>
<td>
<asp:Label ID="titleLabel" Text='<%#Bind("styleguidestitle")%>'
runat="server"></asp:Label>
</td>
</tr>
<tr>
<td>
Property Description:
</td>
<td>
<asp:Label ID="addressLabel" Text='<%#Bind("propertydescription") %>'
runat="server"></asp:Label>
</td>
</tr>
</table>
</fieldset>
</div>
</asp:Panel>
</NestedViewTemplate>
</mastertableview>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<$ ConnectionStrings>"
SelectCommand="
select brandname, styleguidestitle, * from brandproperty
inner join property
on brandproperty.propertyid = property.propertyid
inner join brand
on brand.brandid = brandproperty.brandid
where brand.brandid =@BrandID" runat="server">
<SelectParameters>
<asp:Parameter Name="BrandID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DAFEConnection %>"
SelectCommand="Select * from brand"></asp:SqlDataSource>
</div>
</form>
</body>
</html>

Thanks
Xorv
Antonio Stoilkov
Telerik team
 answered on 13 Jan 2012
0 answers
224 views
Hi,

The topic is a bit simplistic tbh, so i'll exlpain more in detail.

I have a RadGrid defined as follows:
<telerik:RadGrid ID="CovenantRadGrid" runat="server" AllowFilteringByColumn="True"
                                    AllowPaging="True" AllowSorting="True" CellSpacing="0" DataSourceID="ProjectCovenantListingDataSource"
                                    GridLines="None" Skin="Office2007" ClientSettings-EnablePostBackOnRowClick="true"
                                    OnPreRender="CovenantRadGrid_PreRender" OnItemCommand="CovenantRadGrid_ItemCommand"
                                    AllowAutomaticDeletes="true" OnItemDeleted="CovenantRadGrid_ItemDeleted" OnItemDataBound="CovenantRadGrid_ItemDataBound">
                                    <GroupingSettings CaseSensitive="false" />
                                    <ClientSettings EnableRowHoverStyle="true">
                                        <Selecting AllowRowSelect="True" />
                                        <ClientEvents OnRowClicking="OnRowClicking" OnRowClicked="OnRowClicked" OnCommand="OnRowCommand" />
                                    </ClientSettings>
.....

I also have a formview in the page right under the Radgrid. When I click on a row in the radgrid, I retrieve the necessary information and then use it to load the complete data of my row in the formview.
I do this by catching the "RowClick" command in the ItemCommand event on the server.

In addition, the formview data can become modifiable if I click on an "Edit" button that I have on my page.

When I'm editing the data, if the user clicks on another row of the grid, I need to provide the user with a warning using RadConfirm to warn him/her that the data they entered will be lost.

I implemented that functionality for Menu items on the page, as well as for RadButtons on the page (where necessary), but I am having trouble implementing this for the grid.

Here's the javascript code for the client methods:

var isRowSelected = "false";
            function OnRowSelecting(sender, eventArgs) {
                try {
                    var confirmExit = confirmExitKey;
                    if (confirmExit == "True") {
                        if (isRowSelected == "false") {
                            eventArgs.set_cancel(true);
                            var row = sender;
 
                            function CallBackFn(arg) {
                                if (arg) {
                                    isRowSelected = "true";
                                    row.select();
                                }
                            }
 
                            radconfirm('<%= GetGlobalResourceObject("GlobalResources", "E009") %> \n\n<br><br>', CallBackFn, 350, 120, null, 'Discard Changes?');
                        }
                    }
                }
                catch (ex) {
                }
            }
 
            function OnRowSelected(sender, eventArgs) {
                //reset the isAddButtonClicked variable
                isRowSelected = "false";
            }
 
            var isRowCommandFired = "false";
            function OnRowCommand(sender, eventArgs) {
                try {
                    var itemIndex = itemIndex = eventArgs.get_commandArgument();
 
                    if (eventArgs.get_commandName() == "RowClick") {
                        var confirmExit = confirmExitKey;
                        if (confirmExit == "True") {
                            if (isRowCommandFired == "false") {
                                eventArgs.set_cancel(true);
                                var row = sender;
 
                                function CallBackFn(arg) {
                                    if (arg) {
                                        isRowCommandFired = "true";
                                        var masterTable = $find("<%= CovenantRadGrid.ClientID %>").get_masterTableView();
                                        masterTable.fireCommand("RowClick", itemIndex);
                                        isRowCommandFired = "false";
                                    }
                                }
 
                                radconfirm('<%= GetGlobalResourceObject("GlobalResources", "E009") %> \n\n<br><br>', CallBackFn, 350, 120, null, 'Discard Changes?');
                            }
                        }
                    }
                }
                catch (ex) {
                }
            }

For clarification:

The ConfirmExit variables are set in the code behind when I go into edit mode. It's a variable used to detect if i need to display the confirm box or not.

I'm having 2 issues with the above code:

In the RowSelecting method, eventArgs.set_cancel(true) does nothing. The command is fired still and the code behind is executed. I have a feeling this is normal because the event is firing anyways, correct?

This caused me to try and implement the RowCommand method. My problem with that one is that the client-side event never seems to be fired, even when I disable the RowSelecting and RowSelected events.

I hope this was clear enough...

Any ideas?

Thank you.
blablabla
Top achievements
Rank 1
 asked on 13 Jan 2012
1 answer
61 views
Hi, just to let you know there is a typo in RadEditor.Tools.de-DE.resx (Q3/2011):
Clipboard should read "Zwischenablage" not "Swischenablage"

Regards

Thomas
Rumen
Telerik team
 answered on 13 Jan 2012
3 answers
226 views
Hi,

In my application, we are using multiple rad windows and they have maximize and minimize buttons. if you click on minimize button of the inactive window, nothing is happening, we need to activate the window and click the minimize button and user will not like this, can you help us to activate the window on mouseover event ?

or

it will be great if it is possible to make all the window active.

Thanks
Venkat
Marin Bratanov
Telerik team
 answered on 13 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?