Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views
Hello Friends,

    I want to rename document name those bind in fileexplorer's Grid
I have use anchor tag to make document  as link or hyper link you can see in below code

///////.cs  code//////

string lnkbutton = string.Format("<a href='" + filetmp.FullName + "' title='" + filetmp.Name + "' target='_blank'>" + filetmp.Name + "</a>");

files.Add(new Telerik.Web.UI.Widgets.FileItem(lnkbutton, filetmp.Extension, filetmp.Length, filetmp.FullName, filetmp.FullName, filetmp.Name, Telerik.Web.UI.Widgets.PathPermissions.Delete | Telerik.Web.UI.Widgets.PathPermissions.Read | | Telerik.Web.UI.Widgets.PathPermissions.Upload));
///////Other attributes-that  I have added in file/////////
                        files[i].Attributes.Add("DocumentCategory", bindDocList[0].DocumentCategory.ToString());
                        files[i].Attributes.Add("SequenceNumber", bindDocList[0].SequenceNumber.ToString());


you can see that I have use anchor tag "lnkbutton" in place of file name

/////issue/////
1)when I click on grid contextmenu rename link it show me full path of anchor tag in textbox I just want file name

 if file name is "46 1.png" then it display "<a href=..\KCMSDocuments\PbkCaseDocs\047121212\46 1.png' title='46 1.png' target='_blank'>46 1.png</a>"
but I want "46 1.png"

2)whan I go to thumbnail view and mouse hour on any file or document it display complete anchor tag in  but I want just file name

if I use file name in place of "lnkbutton" it will work but I want hyper link so I can click and download or open it

- I have attached image for more idea
Dobromir
Telerik team
 answered on 03 Feb 2014
1 answer
116 views
Hi,
Can we have alphabetical filtering in grid. Displays all alphabets and selecting one displays all the related records starting with dat alphabet.?
Princy
Top achievements
Rank 2
 answered on 03 Feb 2014
1 answer
66 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
66 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
61 views
Hi,
i want to reorder the columns of my grid. How to do?
Pavlina
Telerik team
 answered on 03 Feb 2014
3 answers
40 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
57 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
66 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
67 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
316 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?