Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
I am using a asyncupload that works locally but wont upload to the server I've went through a few different tutorials to try to get figure it out with no luck. Any directions would be great.

Thanks
Curt
Curt
Top achievements
Rank 1
 answered on 12 Jul 2011
4 answers
64 views
Hi, is there a way to remove editform for certain grids? We would appreciate if the arrow keys could still be present in that grids, thanks.
Murilo
Top achievements
Rank 1
 answered on 12 Jul 2011
3 answers
245 views
I have an issue with File Explorer.

I want that my files folder in which all the files will go when some one upload using File explorer should not be under root directory.
For example my Application is on D drive under projects and all the files will go to E://Files folder.

When I put this files folder inside my root directory than I am easily able to give virtual path to FileExplorer and it works fine.
But in my case the Files folder is out side the root directory and I am not able to provide virtual path to File Explorer.

Can't we give only physical path to file explorer?

Please provide the solution for this.
Dobromir
Telerik team
 answered on 12 Jul 2011
1 answer
72 views
Hello
I just downloaded the demo SofiacarRental. I just can't make it run. I got an error exception about the

SofiaCarRentalEntityDiagrams.
I can't see any note that explain how to get started with it. Witch version of SQLExpress do I have to use?
And do you have any documentation about this demo somewhere?
Thank you
Myriam

Kosta Hristov
Telerik team
 answered on 12 Jul 2011
1 answer
70 views
My culture is Thai (th-TH) therefore my year format is 2554 (but en-EN is 2011)
and problem is when I click  > to change month my year 2554 it auto change to 2011 and when I click < to change back to old month it 
show year 2011 too

Please help me.
Maria Ilieva
Telerik team
 answered on 12 Jul 2011
5 answers
149 views
Hi,

  I have two listboxes, On my left side of list boxes, I have some items, when i transfer the items to the right side listbox, I add two checkboxes before those items. Everything works fine when the transferMode = move, but when I changed the transferMode=Copy then when I move the item from the left listbox to the right listbox, the checkboxes appear in the right list box, but items don't appear.
I am not sure what am I doing wrong. below is my code
<td style="width:"10%" >
           ag: <br />
               <telerik:RadListBox runat="server" ID="RadListBox_Unselectedag" AutoPostBack="false"
               Width="120px" Height="200px" 
               TransferToID="RadListBox_selectedag" AllowTransfer="true" TransferMode="Copy"
               AutoPostBackOnTransfer="true" SelectionMode="Multiple" AllowDelete="false" AllowReorder="false" ontransferred="RadListBox_Unselectedag_Transferred" >
           </telerik:RadListBox>
       </td>
       <td style="width:"2%">aselected <br />
           <telerik:RadListBox runat="server" ID="RadListBox_selectedag" AllowDelete="true" AllowReorder="false"
               AutoPostBack="false" SelectionMode="Multiple" Width="140px" Height="200px"    >
               <ItemTemplate>
                 
                  <asp:CheckBox ID="chkAD" runat="server" />
                   <asp:CheckBox ID="chkAS" runat="server" />
                   <asp:Label ID="lblagSelected" runat="server" Text='<%# DataBinder.Eval(Container,"Text") %>'></asp:Label>
               </ItemTemplate>
                
           </telerik:RadListBox>
         
       </td>
       <td>

My code behind looks like this

protected void RadListBox_Unselectedag_Transferred(object sender, RadListBoxTransferredEventArgs e)
        {
            foreach (RadListBoxItem item in e.Items)
            {
                item.DataBind();
            }
        }

Anjali
Top achievements
Rank 1
 answered on 12 Jul 2011
2 answers
84 views
Hi,

In my applicationn i had a RadDatePicker with the following syntax:

<telerik:RadDatePicker ID="txtDate" Runat="server" Skin="Sunset" 
                 FocusedDate="" MinDate="01/01/2006" ShowPopupOnFocus="True" TabIndex="20" 
                 Width="155px" MaxDate="01/01/2020">
                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" 
                                         ViewSelectorText="x" Skin="Sunset"></Calendar>
                                       <DatePopupButton ImageUrl="" HoverImageUrl="" TabIndex="20"></DatePopupButton>
                    <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="MM/dd/yyyy" TabIndex="20"></DateInput>
             </telerik:RadDatePicker>

My requirement is i need to bind 10 days back date from today's date to RadDatePicker with the following syntax:

txtDate.SelectedDate =DateTime.Now.Date.AddDays(-10);

Here i am getting the following error:

Value of '7/2/2011 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate

Any one please suggest me the solution for this?

Thanks in advance...
Maria Ilieva
Telerik team
 answered on 12 Jul 2011
1 answer
72 views
Hello,

I am attempting to integrate Rad Controls for AJAX with an MVC View-Page. An issue I had early on has reared its head again during development. If I modify the mark-up for my page such that it is in an erroneous state, and then try and run the page, I would expect to see something akin to "Server Error - Error Message Here." Unfortunately, my error messages are becoming compressed and never decompressed. This leads to garbage characters being rendered on the screen instead of a helpful error message.

The first time I encountered this issue it was code in our solution --

public override void OnActionExecuting(ActionExecutingContext context)
{
    //This compression filter eats server errors. I'd like to see them during debugging.
    if (!HttpContext.Current.IsDebuggingEnabled)
    {
        HttpRequestBase request = context.HttpContext.Request;
 
        string acceptEncoding = request.Headers["Accept-Encoding"];
 
        if (string.IsNullOrEmpty(acceptEncoding))
            return;
 
        acceptEncoding = acceptEncoding.ToUpperInvariant();
 
        HttpResponseBase response = context.HttpContext.Response;
 
        if (acceptEncoding.Contains("GZIP"))
        {
            response.AppendHeader("Content-encoding", "gzip");
            response.Filter = new GZipStream(response.Filter, CompressionMode.Compress);
        }
        else if (acceptEncoding.Contains("DEFLATE"))
        {
            response.AppendHeader("Content-encoding", "deflate");
            response.Filter = new DeflateStream(response.Filter, CompressionMode.Compress);
        }
    }
}

After adding in the check for debugging I began seeing my helpful error messages again.

Now, I recently went into my web.config and added the lines necessary to enable RadCompression. My issue has arisen once again -- I see garbage characters instead of error messages.

Is there something I should be checking elsewhere in my code, the data type of the stream or something, to account for errors + RadCompression?

Kind regards,

Sean
Martin
Telerik team
 answered on 12 Jul 2011
3 answers
122 views
Hello,

How do I improve the load times of the Advanced Edit/Insert forms. I really need the Recurrance control but the load time is terrible. With a basic setup and no appointments on the Scheduler it still takes 5-6 seconds to load. I am also seeing the same response time on your demo pages. I also get the same results in my Dev environment as well as Production regardless of the form being modal or not or if debugging is on or off. I have read the posts on how to improve performance but they mostly relate to improving loading of appointments. I am seeing this response time with no appointments.There has got to be a way to make this faster?? Below is my basic setup. I am using 2010.3.1317.40 release. Thank you!

<

 

 

telerik:RadScheduler runat="server" ID="RadScheduler2" Width="750px" TimeZoneOffset="03:00:00"

 

 

 

    SelectedDate="2007-03-30" DayStartTime="08:00:00" DayEndTime="18:00:00" EnableViewState="false"

 

 

 

 

    StartInsertingInAdvancedForm="true" StartEditingInAdvancedForm="true"

 

 

 

    SelectedView="MonthView" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start"

 

 

 

    DataEndField="End" DataReminderField="Reminder" DataRecurrenceField="RecurrenceRule"

 

 

 

    DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="AppointmentsDataSource"

 

 

 

    Reminders-Enabled="false" Skin="Telerik">

 

 

 

    <AdvancedForm Modal="false" />

 

 

 

    <ResourceTypes>

 

 

 

    <telerik:ResourceType KeyField="ID" Name="Room" TextField="RoomName" ForeignKeyField="RoomID" 
        DataSourceID="RoomsDataSource" />

 

 

 

    <telerik:ResourceType KeyField="ID" Name="User" TextField="UserName" ForeignKeyField="UserID"

 

 

 

        DataSourceID="UsersDataSource" />

 

 

 

    </ResourceTypes>

 

 

 

    <TimeSlotContextMenuSettings EnableDefault="true" />

 

 

 

    <AppointmentContextMenuSettings EnableDefault="true" />

 

 

 

</telerik:RadScheduler>

 


<

 

 

asp:SqlDataSource ID="AppointmentsDataSource" runat="server"

 

 

 

 

    ConnectionString="<%$ ConnectionStrings:Team_ConnectionString %>"

 

 

 

 

    OnSelecting="AppointmentsDataSource_Selecting" OnSelected="AppointmentsDataSource_Selected"

 

 

 

    SelectCommand="SELECT * FROM [TEMP_SCHDTEST] WHERE ([Start] < @RangeEnd AND [End] > @RangeStart) OR ([RecurrenceRule] <> '') OR ([RecurrenceParentID] IS NOT NULL)"

 

 

 

 

    InsertCommand="INSERT INTO [TEMP_SCHDTEST] ([Subject], [Start], [End], [UserID],

 

 

        [RoomID], [RecurrenceRule], [RecurrenceParentID], [Annotations], [Description], [Reminder],

 

        [LastModified]) VALUES (@Subject, @Start, @End, @UserID, @RoomID, @RecurrenceRule,

 

        @RecurrenceParentID, @Annotations, @Description, @Reminder, @LastModified)"

 

 

    UpdateCommand="UPDATE [Appointments] SET [Subject] = @Subject, [Start] = @Start, [End] = @End,

 

 

        [UserID] = @UserID, [RoomID] = @RoomID, [RecurrenceRule] = @RecurrenceRule,

 

        [RecurrenceParentID] = @RecurrenceParentID, [Annotations] = @Annotations, [Description] =     @Description, [Reminder] = @Reminder, [LastModified] = @LastModified WHERE [ID] = @ID"

 

 

    DeleteCommand="DELETE FROM [TEMP_SCHDTEST] WHERE [ID] = @ID">

 

 

 

<SelectParameters>

 

 

 

    <asp:Parameter Name="RangeStart" Type="DateTime" DefaultValue="1900/1/1" />

 

 

 

    <asp:Parameter Name="RangeEnd" Type="DateTime" DefaultValue="2900/1/1" />

 

 

 

</SelectParameters>

 

 

 

<DeleteParameters>

 

 

 

    <asp:Parameter Name="ID" Type="Int32" />

 

 

 

</DeleteParameters>

 

 

 

<UpdateParameters>

 

 

 

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

 

 

 

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

 

 

 

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

 

 

 

    <asp:Parameter Name="UserID" Type="Int32" />

 

 

 

    <asp:Parameter Name="RoomID" Type="Int32" />

 

 

 

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

 

 

 

    <asp:Parameter Name="RecurrenceParentID" Type="Int32" />

 

 

 

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

 

 

 

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

 

 

 

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

 

 

 

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

 

 

 

    <asp:Parameter Name="ID" Type="Int32" />

 

 

 

</UpdateParameters>

 

 

 

<InsertParameters>

 

 

 

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

 

 

 

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

 

 

 

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

 

 

 

    <asp:Parameter Name="UserID" Type="Int32" />

 

 

 

    <asp:Parameter Name="RoomID" Type="Int32" />

 

 

 

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

 

 

 

    <asp:Parameter Name="RecurrenceParentID" Type="Int32" />

 

 

 

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

 

 

 

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

 

 

 

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

 

 

 

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

 

 

 

</InsertParameters>

 

 

 

</asp:SqlDataSource>

 

Peter
Telerik team
 answered on 12 Jul 2011
2 answers
321 views
Hello,

I tried to insert a validation in my RadGrid like in the exemple here : http://www.telerik.com/help/aspnet-ajax/grid-validation.html.

Here's my code :
<telerik:RadGrid ID="rgActions" runat="server" Width="100%" ShowHeader="true" OnItemDataBound="rgActions_ItemDataBound" OnItemCommand="rgActions_ItemCommand">
        <MasterTableView NoMasterRecordsText="Aucune action" ShowHeadersWhenNoRecords="true" AutoGenerateColumns="false" EditMode="PopUp" DataKeyNames="Idaction"
            CommandItemDisplay="Top" InsertItemDisplay="Top">
            <CommandItemSettings AddNewRecordText="Ajouter une action" RefreshText="Actualiser" />
            <EditFormSettings PopUpSettings-Width="620px" PopUpSettings-Modal="true"></EditFormSettings>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="Idaction" HeaderText="Idaction" ReadOnly="True" UniqueName="Idaction"
                    ForceExtractValue="InEditMode" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn DataField="DateSaisie" HeaderText="Date saisie" UniqueName="DateSaisie"
                    ForceExtractValue="InEditMode">
                    <HeaderStyle Width="100px"/>
                    <ItemStyle Width="100px" VerticalAlign="Top"/>
                    <ItemTemplate>
                        <asp:Label ID="lblDateSaisie" runat="server" Text='<%# Eval("DateSaisie", "{0:dd/MM/yyyy}") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:Label ID="lblDateSaisie" runat="server" Text='<%# Eval("DateRealisation")==DBNull.Value ? DateTime.Now.Date.ToShortDateString() : Eval("DateSaisie", "{0:dd/MM/yyyy}") %>'></asp:Label>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>             
                <telerik:GridTemplateColumn DataField="Description" HeaderText="Description" UniqueName="Description"  ForceExtractValue="InEditMode">
                    <ItemStyle VerticalAlign="Top"/>
                    <ItemTemplate>
                        <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("DescriptionHtml") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadTextBox ID="tbDescription" runat="server" Width="500px" Height="50px" TextMode="MultiLine" MaxLength="500" Text='<%# Eval("Description") %>'></telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ErrorMessage="*" ControlToValidate="tbDescription" Display="Dynamic"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="DatePrevue" HeaderText="Date prévue" UniqueName="DatePrevue"  ForceExtractValue="InEditMode">
                    <HeaderStyle Width="100px"/>
                    <ItemStyle Width="100px" VerticalAlign="Top"/>
                    <ItemTemplate>
                        <asp:Label ID="lblDatePrevue" runat="server" Text='<%# Eval("DatePrevue", "{0:dd/MM/yyyy}") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadDatePicker ID="dpDatePrevue" runat="server" SelectedDate='<%# Eval("DatePrevue")==DBNull.Value ? DateTime.Now.Date : Eval("DatePrevue") %>'></telerik:RadDatePicker>
                        <asp:RequiredFieldValidator ID="rfvDatePrevue" runat="server" ErrorMessage="*" ControlToValidate="dpDatePrevue" Display="Dynamic"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="Personnes" HeaderText="Personne(s)" UniqueName="Personnes"  ForceExtractValue="InEditMode">
                    <HeaderStyle Width="30%"/>
                    <ItemStyle Width="30%" VerticalAlign="Top"/>
                    <ItemTemplate>
                        <asp:Label ID="lblPersonnes" runat="server" Text='<%# Eval("Personnes") %>'></asp:Label>                       
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadTextBox ID="tbPersonnes" runat="server" Width="500px" Height="30px" TextMode="MultiLine"  MaxLength="200" Text='<%# Eval("Personnes") %>'></telerik:RadTextBox>
                        <asp:RequiredFieldValidator ID="rfvPersonnes" runat="server" ErrorMessage="*" ControlToValidate="tbPersonnes"  Display="Dynamic"></asp:RequiredFieldValidator>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>          
                <telerik:GridTemplateColumn DataField="DateRealisation" HeaderText="Date réalisation" UniqueName="DateRealisation"  ForceExtractValue="InEditMode">
                    <HeaderStyle Width="100px"/>
                    <ItemStyle Width="100px" VerticalAlign="Top"/>
                    <ItemTemplate>
                        <asp:Label ID="lblDateRealisation" runat="server" Text='<%# Eval("DateRealisation", "{0:dd/MM/yyyy}") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadDatePicker ID="dpDateRealisation" runat="server" SelectedDate='<%# Eval("DateRealisation")==DBNull.Value ? DateTime.Now.Date : Eval("DateRealisation") %>'></telerik:RadDatePicker>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"  EditText="Editer" UpdateText="Valider" CancelText="Annuler"  InsertText="Ajouter"
                    EditImageUrl="Resources/Images/Edit.gif" UpdateImageUrl="Resources/Images/Update.gif" CancelImageUrl="Resources/Images/Cancel.gif" InsertImageUrl="Resources/Images/Update.gif">
                    <HeaderStyle Width="40px" />  
                    <ItemStyle Width="40px" VerticalAlign="Top"/>    
                </telerik:GridEditCommandColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn ButtonType="ImageButton" CancelText="Annuler" InsertText="Ajouter" UpdateText="Valider"
                 CancelImageUrl="Resources/images/Cancel.gif" UpdateImageUrl="Resources/images/Update.gif"  InsertImageUrl="Resources/images/Update.gif">
                </EditColumn>
            </EditFormSettings>
            <CommandItemTemplate>
                <asp:ImageButton ID="btnImageAddAction" runat="server" CommandName="InitInsert" ImageUrl="Resources/Images/Add.gif" style="vertical-align:middle;" />
                <asp:LinkButton ID="btnAddAction" runat="server" CommandName="InitInsert"  style="vertical-align:middle;">Ajouter une action</asp:LinkButton>
            </CommandItemTemplate>
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnPopUpShowing="PopUpShowing" />
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        <FilterMenu Skin="Office2007" EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </FilterMenu>
    </telerik:RadGrid>

But it doesn't work. Even if I don't put any date or text in my controls, the ItemCommand event is thrown. The worst is that I think it worked last week... What have i wrong ?

[Nean]
[Nean]
Top achievements
Rank 1
 answered on 12 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?