Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
I understand it is supposed to be by design that when a folder is deleted in a web app that the application gets restarted.

HOWEVER, there are two different ways to get to the File Explorer, and one does NOT restart the application or lose session

1) When in the RadEditor, if you go to the image manager, for example, create a folder, upload a file into that folder.  Then delete the folder, application is restarted, and we lose session

2) When using File Explorer, do the same test, yet the session is not lost.  Upload path is the same, everything else the same.

I have a sample solution at the ready to display this behavior.  Why would the behavior be different?


Ianko
Telerik team
 answered on 03 Feb 2014
1 answer
103 views
Hi
i have sorting for grid, but the GridHyperLinkColumn is nt sorting. What may be missing?
Princy
Top achievements
Rank 2
 answered on 03 Feb 2014
1 answer
78 views
Hi,
i want to reorder the columns of my grid. How to do?
Pavlina
Telerik team
 answered on 03 Feb 2014
3 answers
55 views
I am working with a RadGrid that, in the past, was simply bound to an ObjectContainerDataSource. Past, completely working grid:
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowAutomaticUpdates="True"
                            OnItemCommand="RadGrid_ItemCommand" OnItemDataBound="RadGrid_ItemDataBound" AllowPaging="true" PageSize="10"
                            OnPageSizeChanged="GridPageSizeChanged" 
                            AutoGenerateColumns="false" OnSortCommand="RadGrid_SortCommand" AllowMultiRowSelection="true"
                            OnItemCreated="RadGrid_ItemCreated" DataSourceID="RequestMasterDataSource" EnableViewState="true" >
                            <ExportSettings HideStructureColumns="true" />
                            <MasterTableView TableLayout="Fixed" RetrieveDataTypeFromFirstItem="true" CommandItemDisplay="Top">
                                <CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false"
                                    ShowRefreshButton="false" />
                            </MasterTableView>
                            <ClientSettings>
                                <ClientEvents OnRowDblClick="SendSelectedRowToParent"></ClientEvents>
                                <Selecting AllowRowSelect="True"></Selecting>
                                <Scrolling AllowScroll="false"></Scrolling>
                                <ClientMessages DragToGroupOrReorder="Drag to group" />
                                <Resizing ResizeGridOnColumnResize="True" AllowRowResize="True" AllowColumnResize="True">
                                </Resizing>
                            </ClientSettings>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            </HeaderContextMenu>
                        </telerik:RadGrid>

In the past few days, I've been fussing with this grid in order to change the data load from on page load to an ajax request. In the process of doing this, I needed to change the data binding method to the more advanced "NeedDataSource" binding. New grid:

<telerik:RadGrid ID="RadGrid" runat="server" GridLines="None" AllowAutomaticUpdates="True"
                            OnItemCommand="RadGrid_ItemCommand" OnItemDataBound="RadGrid_ItemDataBound" AllowPaging="true" PageSize="10"
                            OnPageSizeChanged="GridPageSizeChanged" 
                            AutoGenerateColumns="false" OnSortCommand="RadGrid_SortCommand" AllowMultiRowSelection="true"
                            OnItemCreated="RadGrid_ItemCreated" OnNeedDataSource="RadGrid_NeedDataSource" EnableViewState="true" >
                            <ExportSettings HideStructureColumns="true" />
                            <MasterTableView TableLayout="Fixed" RetrieveDataTypeFromFirstItem="true" CommandItemDisplay="Top">
                                <CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false"
                                    ShowRefreshButton="false" />
                            </MasterTableView>
                            <ClientSettings>
                                <ClientEvents OnRowDblClick="SendSelectedRowToParent"></ClientEvents>
                                <Selecting AllowRowSelect="True"></Selecting>
                                <Scrolling AllowScroll="false"></Scrolling>
                                <ClientMessages DragToGroupOrReorder="Drag to group" />
                                <Resizing ResizeGridOnColumnResize="True" AllowRowResize="True" AllowColumnResize="True">
                                </Resizing>
                            </ClientSettings>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            </HeaderContextMenu>
                        </telerik:RadGrid>
With the NeedDataSource method:

protected void RadGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            if (configuration.DeferredLoad)
            {
                if (Page.IsPostBack)
                {
                    RadGrid.DataSource = RequestMasterDataSource;
                }
            }else
            {
                RadGrid.DataSource = RequestMasterDataSource;
            }
        }

Simple, and yet, suddenly my ObjectContainerDataSource (OCDS) is hitting the database 3 times instead of one. After some debugging, for some reason the OCDS is firing the selecting event 3 times (twice with the same selectingeventarguments and once with a different set). Please note, that no matter what the configuration.deferredload setting evaluates to (true or false), the selecting event is fired three times. Also note, the NeedDataSource method itself is not called three times, just the OCDS selecting method (though I cannot for the life of me pinpoint why).

So I'm wondering - is OCDS not supported with advanced data binding? Is there something else I'm missing (obvious or obscure)?

Any help of any kind greatly appreciated. Just a note, I've scrubbed all ID's and method names in the code blocks above to remove any identifying information. My grid is NOT named RadGrid, promise.
Kostadin
Telerik team
 answered on 03 Feb 2014
1 answer
74 views
Hi,

I am using Telerik Scheduler to show appointments from the database. We decided to use client side web service since we have heavy application and want to use lighter version.

#1: Web service work with single XML file. We need to filter the data presented to user based on the company he logged-in with.
       Since the data is read from single XML file and I couldn't find any built-in filter support, how do I achieve it?
       Do we need to customize GetAppointment() function on "Implement Provider"? OR Do we need to use separate XML file per company?

#2: For some reason values for CustomAttributeNames are not displayed on Appointment on Scheduler. 
      Is there anything wrong with the XML format OR the way I display it?
      Here is my partial code:

<?xml version="1.0" encoding="UTF-8"?>
-<Appointments>
  <NextID>399350</NextID>
  <Appointment>
       <ID>388748</ID>
       <Subject>ABC XYZ</Subject>
       <Start>2013-04-10T16:00:00</Start>
       <End>2013-04-10T20:00:00</End>
       <Attribute Value="Evelyn Bailey" Key="PersonName"/>
       <Attribute Value="Type-1" Key="Type"/>
       <Attribute Value="Category-1" Key="Category"/>
  </Appointment>
  <Appointment>
       <ID>388749</ID>
       <Subject>PQR XYZ</Subject>
       <Start>2013-04-11T13:00:00</Start>
       <End>2013-04-11T14:00:00</End>
       <Attribute Value="Bob Smith" Key="PersonName"/>
       <Attribute Value="Type-2" Key="Type"/>
       <Attribute Value="Category-2" Key="Category"/>
  </Appointment>
</Appointments>


    <telerik:RadScheduler runat="server" ID="RadScheduler1" ... ...
        DataKeyField="ID" DataSubjectField="SubjectLine" DataStartField="StartDate" DataEndField="EndDate"
        CustomAttributeNames="PersonName,Type,Category" ... ...>
        <WebServiceSettings Path="~\Forms\SchedulerWebService.asmx" ResourcePopulationMode="ClientSide"></WebServiceSettings>
            <AppointmentTemplate>
                <%# IIf(String.IsNullOrWhiteSpace(Eval("PersonName")), "", Eval("PersonName") + ", ")%>
                <%# IIf(String.IsNullOrWhiteSpace(Eval("Type")), "", Eval("Type") + ", ")%><br />
                <%# Eval("Subject") %>, <%# Eval("Category")%>
            </AppointmentTemplate>
    </telerik:RadScheduler>

Thank you for all replies,
Piyush






Plamen
Telerik team
 answered on 03 Feb 2014
1 answer
91 views
Hi

As per below link I'm trying to understand where can I find RadSpell.Dialog.resx, RadSpell.Dialog.fr-FR.resx, and RadSpell.Dialog.de-DE.resx files.

Thanks.

http://www.telerik.com/forums/localization-of-radspell-not-working

Rumen
Telerik team
 answered on 03 Feb 2014
3 answers
79 views
can i use trial version of rad control in real server?
what happen when upload my project that use trial version on any server?


Kate
Telerik team
 answered on 03 Feb 2014
2 answers
337 views
Hi,

I am using five RadEditors in the same page.  So it is taking long time for loading.  
I need a technique like single RadEditor appear multiple times in same page,
How to make this possible using asp.net  and C# ?


Thanks in Advance

Best Regards,
Prasad
Praveen
Top achievements
Rank 1
 answered on 03 Feb 2014
2 answers
92 views
Having a heck of a time setting one template field based on the choice in another:

See attached image:

When I select a "Worker", it that worker is bBrown I want to set the "On TimeCard" to "Yes" for any other user set it to "No"

Seems simple enough.

Template field for dropdown looks like this:

<telerik:GridTemplateColumn FilterControlAltText="Filter TemplWorker column"
HeaderText="Worker" UniqueName="TemplWorker">
<EditItemTemplate>
<telerik:RadDropDownList ID="RadDropDownList5" runat="server"
DataSourceID="sqlWorkers" DataTextField="EmployeeNumber"
DataValueField="EmployeeID" DropDownHeight="300px"
DropDownWidth="150px" ExpandDirection="Up" Width="110px"
SelectedText='<%# Bind("LaborPerformedBy") %>' CausesValidation="False"
OnSelectedIndexChanged ="RadDropDownList5_SelectedIndexChanged"
AutoPostback="False"
>

</telerik:RadDropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="RadDropDownList5" ErrorMessage="Worker is required."
Font-Size="XX-Small" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
</EditItemTemplate>

<ItemTemplate>
<asp:Label ID="Label4" runat="server"
Text='<%# Eval("LaborPerformedBy") %>' Width="75px"></asp:Label>
</ItemTemplate>
<HeaderStyle Width="145px" />
</telerik:GridTemplateColumn>

I have tried so many different things not even sure what is what anymore or which event to hook   :-)


I was able to get the value of the dropdown in itemdatabound but I still cannot set the "On Timecard" field.

Any direction is appreciated.



Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Feb 2014
1 answer
118 views
Hi,

I want to hide checkbox control based on condition over telerik grid popup window. I tried by reading control itself but still checkbox label is appearing over the screen.

If we clear Header Text value of template then only colon (:) appears over the screen. Please suggest suitable approach which will help me to hide checkbox control from the popup window.

Thanks in advance

~ Pravin
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?