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

There doesn't seem to be one fully working barebones demo of confirming a dock close. All of the examples given are for previous versions showing work arounds for bugs that hopefully don't exist anymore or have contrivances in them that make them unusable.

I want to dynamically add a dock. I want to be able to reorder the docks. I want them to display a confirmation before closing.

I have tried every combination of the multiple examples given. The best I could do is displaying the confirmation but the dock had already closed.

This is a major problem with Telerik. There is no authoritative source of barebones examples. The site is polluted with old versions of examples that don't work anymore. There should be a single comprehensive list of examples organized by library version. This library should be indexed and it should be searchable. The need for this is manifested by the frequency with which people ask the same questions over and over again. It isn't because they didn't try to find the answer themselves - I have spent three hours on this so far. It is because there are multiple conflicting inconsistant examples.

And examples should be barebone. They should show one concept and contain only the minimal set of code that demonstrates the concept. Telerik examples are bloated and confusing because of this.
Pero
Telerik team
 answered on 23 Nov 2010
1 answer
107 views
Hi Telerik Team,

I have RadGrid which is Populated dynamically. After displaying the RadGrid when the user gives any filter criteria in the RadGrid and Selects any filter option and filters the data the Data is being filtered and displayed in the RadGrid.
But When user changes the input parameters for the radGrid the Filter parameters in the RadGrid are not being Cleared.
Help me.

Thanks & Regards,
N Arvind
Princy
Top achievements
Rank 2
 answered on 23 Nov 2010
1 answer
139 views
I'd be grateful of someone could just fill in the blanks for me here (Assume I'm doing all the form handling myself)

I have a recurring appointment. The user opts to edit it.

I catch the Form_Creating event and cancel it. I open my own form.

I call PrepareToEdit() to get the appointment to edit. The user has opted to create a new recurrence exception.

The user updates the details and presses Save.

I call UpdateAppointment() (yes?) What appointment do I pass to it, the original (the recurrence Master) or the new one (the Exception)?

I know I need to handle RecurrenceExceptionCreated but I'm unsure what, if anything, /I/ need to do to ensure this is called and that the EventArgs are properly populated.

Is RecurrenceExceptionCreated raised as a result of me calling UpdateAppointment?

Enquiring minds, an all that

-- 
Stuart
Veronica
Telerik team
 answered on 23 Nov 2010
2 answers
59 views
Hi all

I'm creating a user control which builds on the RadDatePicker, essentially giving the developer the opportunity to pair date pickers together to form a min/max combination.  But on adding the user control to an aspx page, none of the inherent RadDatePicker client side stuff seems to work!

User control. 
<%@ Control Language="C#" AutoEventWireup="true" ClassName="kitsTest" CodeBehind="itsMinMaxRadDatePicker.ascx.cs" Inherits="UserControls.itsMinMaxRadDatePicker" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<telerik:RadDatePicker ID="itsRadDatePicker" DateInput-OnClientDateChanged="itsMinMaxRadDatePicker" runat="server" />
with nothing in the code behind yet.

I add this custom control to my aspx page like so:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/FormMasterPage2.master" AutoEventWireup="true" CodeBehind="AcademicYearEdit.aspx.cs" Inherits="Infrastructure.AcademicYearEdit" %>
<%@ Register TagPrefix="itsRadDatePicker" TagName="kitsTest" Src="UserControls/itsMinMaxRadDatePicker.ascx" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<itsRadDatePicker:kitsTest ID="test1" runat="server"></itsRadDatePicker:kitsTest>
</asp:Content>

It appears on the page, but when I click on the calendar image, nothing happens!  Its as if none of the JS is working...

Any hints for me?

Thanks in advance

kitster
Kit
Top achievements
Rank 1
 answered on 23 Nov 2010
1 answer
121 views

Hi,

 I have a RadGrid (with Grouping and Filter buttons) displaying data. The grouping functionality is working and default value is set to expanded i.e. when I add a column to the group the individual groups are expanded). 
 The problem is though that when I navigate away and return the individual groups are collapsed. I have to open them up individually. Is there any way I can always get the items to be expanded? Would appreciate any comments/suggestions with in the code-behind file or in the front-end ASP.NET code

Thanks,
A.

*** ASP.NET Code as Follows:***

                <telerik:RadToolBar runat="server" ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick">
                    <Items>
                        <telerik:RadToolBarButton CommandName="ShowGrouping" CheckOnClick="true" SkinID="GroupIcon"
                            Text="Show Grouping" AllowSelfUnCheck="true" Group="1" Checked="False" />
                        <telerik:RadToolBarButton CommandName="ShowFiltering" CheckOnClick="true" SkinID="SearchIcon"
                            Text="Show Filters" AllowSelfUnCheck="true" Group="2" />
                    </Items>
                </telerik:RadToolBar>
                <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="TelerikGridOnNeedDatasource"
                    PageSize="50" DataSourceID="dsTypeActions" AllowPaging="True" PagerStyle-AlwaysVisible="true" AutoGenerateColumns="False" AllowSorting="True">
                    <MasterTableView DataSourceID="dsTypeActions" AllowCustomSorting="True" OverrideDataSourceControlSorting="true" GroupsDefaultExpanded="True">                
                        <Columns>
                            <telerik:GridBoundColumn DataField="Name" HeaderText="Name1" UniqueName="Name">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Address" HeaderText="Address1" UniqueName="Address">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </asp:View>

Marin
Telerik team
 answered on 23 Nov 2010
1 answer
1.3K+ views
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">Hi Guys,<br><br>         I'm new for telerik components. when i installed the rad controls in asp.net, the server page will look like shown below this error. any help would be greatly appreciated.  <br><br>Could
 not load file or assembly 'System.Web.Entity, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its
dependencies. The system cannot find the file specified.</font><br><br><add assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Daniel
Telerik team
 answered on 23 Nov 2010
7 answers
126 views
Hi,

I have a radgrid with inplace editing. Everything works fine, but now I want to add a warning if the user exits the grid while an item is still in edit mode, is there an easy way to do this?

Thanks,
Judy
Nikolay Rusev
Telerik team
 answered on 23 Nov 2010
1 answer
51 views
Hi everyone,

I am obviously not seeing something here. I have a simple grid instance with its the necessary ajaxsettings declared:

Ajax Setting for grid:

<telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="UserView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="UserView" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

Grid instance: (allowsort and allowpaging both = true)
<telerik:RadGrid ID="UserView" GridLines="None" runat="server" AllowPaging="True"
                AutoGenerateColumns="False" Skin="Windows7" AllowSorting="true" Width="722" OnNeedDataSource="UserViewNeedDataSource" PageSize="20">
                <PagerStyle Mode="NextPrevAndNumeric"/>
                <MasterTableView Width="722">
                    <Columns>
                        <telerik:GridBoundColumn DataField="FullName" HeaderText="Name" SortExpression="FullName"
                            UniqueName="FullNameColumn" />
                        <telerik:GridBoundColumn DataField="UserName" HeaderText="User Name" SortExpression="UserName"
                            UniqueName="AdUserNameColumn" />
                        <telerik:GridBoundColumn DataField="Domain" HeaderText="Domain" SortExpression="Domain"
                            UniqueName="AdDomainColumn" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
<telerik:RadGrid ID="UserView" GridLines="None" runat="server" AllowPaging="True"
                AutoGenerateColumns="False" Skin="Windows7" AllowSorting="true" Width="722" OnNeedDataSource="UserViewNeedDataSource" PageSize="20">
                <PagerStyle Mode="NextPrevAndNumeric"/>
                <MasterTableView Width="722">
                    <Columns>
                        <telerik:GridBoundColumn DataField="FullName" HeaderText="Name" SortExpression="FullName"
                            UniqueName="FullNameColumn" />
                        <telerik:GridBoundColumn DataField="UserName" HeaderText="User Name" SortExpression="UserName"
                            UniqueName="AdUserNameColumn" />
                        <telerik:GridBoundColumn DataField="Domain" HeaderText="Domain" SortExpression="Domain"
                            UniqueName="AdDomainColumn" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

Assignment of data:

protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                GetUsers();
            }
        }
 
        private void GetUsers()
        {
            UserView.DataSource = _client.GetUsers(null);
          
        }

And from the documentation, it says the OnNeedDataSource event will fire after a page or sort event, so I have a handler:

protected void UserViewNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            GetUsers();
        }
protected void UserViewNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            GetUsers();
        }

The ajax call is happening, the event handler is being hit, but nothing happens. No sort, no paging.

Feedback would be appreciated. Version of control suite: v2010.2.929.40

Cheers,

Derek
Nikolay Rusev
Telerik team
 answered on 23 Nov 2010
1 answer
78 views
I have a RadGrid (RadGrid1) that has a nestedViewTemplate. In this NestedViewTemplate, another grid (RadGrid2) is loaded.
RadGrid2 has an imagebutton in each row that opens a RadWindow, where the user can make modifcations to the row in RadGrid2.
When the RadWindow is closed (OnClientClose="refreshGrid" ), this function is run
function refreshGrid() {
        var args = null;
        args = document.getElementById("inpHidden").value;
        if (args) {
            var mgr = $find("<%= RadAjaxManager1.ClientID %>");
            if (mgr) {
                mgr.ajaxRequest(args);
            }
        }
    }

The RadAjaxManager1_AjaxRequest method rebinds the grid in the NestedViewTemplate without reloading the main grid RadGrid1. This is the desired behavior and works fine. However, if I click on the image button again, the function can no longer find a reference to RadAjaxManager1, which is on the control that holds the Main grid
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
            </UpdatedControls>
        </telerik:AjaxSetting
        <telerik:AjaxSetting AjaxControlID="RadGrid2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
            </UpdatedControls>
        </telerik:AjaxSetting
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server" Width="100%" LoadingPanelID="RadAjaxLoadingPanel4">
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel4" runat="server"">
telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="RadGrid1" ....

Any idea why the manager can no longer be found?
Radoslav
Telerik team
 answered on 23 Nov 2010
5 answers
122 views
Just updated to the new internal build and now i cannot enter a negative timeZoneOffset.  I was using -06:00:00, but now I get an exception.  Is there a better way to enter negative timeZoneOffsets?




The added or subtracted value results in an un-representable DateTime.
Parameter name: value

Description: Anunhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about theerror and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.Parameter name: value]   System.DateTime.AddTicks(Int64 value) +7658243   Telerik.Web.UI.RadScheduler.UtcToDisplay(DateTime utcDate) +46   Telerik.Web.UI.AdvancedTemplate.PrefillRecurrenceControls() +68   Telerik.Web.UI.AdvancedTemplate.CreateControls(Control container) +68   Telerik.Web.UI.AdvancedTemplate.InstantiateIn(Control container) +78   Telerik.Web.UI.RadScheduler.CreateHiddenAdvancedInsertForm(Control container) +221   Telerik.Web.UI.RadScheduler.CreateHiddenAdvancedForms() +102   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +339   Telerik.Web.UI.RadScheduler.CreateChildControls() +10   System.Web.UI.Control.EnsureChildControls() +87   System.Web.UI.Control.PreRenderRecursiveInternal() +44   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
            
brijesh
Top achievements
Rank 1
 answered on 23 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?