Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
I have the problem Filtering By ListTextField for GridDropDownColumn
(http://www.telerik.com/help/aspnet/grid/grdfilteringbylisttextfieldforgriddropdowncolumn.html)
but i use the HeaderContextMenu.


i tryed  without  success


Can you help me?


 
switch (e.CommandName.ToLower())
           {
               case  "headercontextmenufilter":
                   Triplet headercommand = (Triplet)e.CommandArgument;
                   Pair command = (Pair)headercommand.Second;
 
                   if (headercommand.First.ToString().ToLower() == "fg")
               {
                   e.Canceled = true;
                  /// GridFilteringItem filter = (GridFilteringItem)e.Item;
                   GridHeaderItem filter= (GridHeaderItem)e.Item;

Lasly
Top achievements
Rank 1
 answered on 05 Dec 2011
1 answer
55 views
I'm trying to find an simple way of having about 20 combobox filters for a grid that only displays about 5 columns.  Our original grid just had a seperate filter section outside of the grid, but that is difficult to manage.  Is there a way to do this within radgrid?
Andrey
Telerik team
 answered on 05 Dec 2011
1 answer
131 views
Hello!
I am trying to export to rtf some content using radeditor. I have some labels and a grid.
i can export it with no problems, but when i open the rft on microsoft word i get the message that a table is damage and when i open it on wordpad, the content is empty.

Can i export grid to rtf with radeditor??

thanks
Rumen
Telerik team
 answered on 05 Dec 2011
3 answers
151 views
Hello!
i want to know if it is possible to export images and tables to rtf using radeditor. I've tried to export tables but once it is  exported, the table does not have a format, the lines don't appear and the content looks  like there is a letter for row. I attached a picture where you can see how a table looks like when it's exported

Is it  possible to export images and tables to rtf using radeditor?

thanks in advance!
Rumen
Telerik team
 answered on 05 Dec 2011
3 answers
164 views

After upgrading a web application to use the latest update, the AppointmentTemplate now show the delete cross. This had been disabled and replaced with custom functionality (see below). As a result, this overlaping delete cross makes the custom functionailty inopperable. As soon as I revert the project back to an older version of the Telerik controls, everything works as it it's supposed to.

 

         <AppointmentTemplate>
            <div class='rsCustomAppointmentContainer <%# Eval("Fullname") %>'>
               <strong><%# Eval("Fullname")%></strong>
               <asp:HiddenField ID="hidStatusId" runat="server"
                  Value='<%# Eval("StatusId") %>' />
            </div>
<div style="text-align: right;">
<asp:Button runat="server" ID="Button1" CssClass="rsExportButton" ToolTip="Change Status"
CommandName="ChangeStatus" OnClientClick="ChangeStatus(this, event); return false;" Style="cursor: pointer;
cursor: hand;" />
</div>
         </AppointmentTemplate>

Peter
Telerik team
 answered on 05 Dec 2011
2 answers
384 views
Hi,

I am using version 2011.1.519.35 of your ASP.NET for AJAX controls.

My problem is that client-side validation isn't firing when I click a linkbutton in the CommandItemTemplate.

My grid has a CommandItemTemplate which contains linkbuttons to put the grid into add or edit mode, and a button to save rows that are in add or edit mode.  See below:

<CommandItemTemplate>
  <div class="gridCommandItemRow">
      <asp:LinkButton runat="server" ID="AddNew" Text="Add New" CssClass="add" 
            CommandName="InitInsert" 
            Visible="<%# Not TeamMetricsRadGrid.MasterTableView.IsItemInserted %>" />
     <asp:LinkButton runat="server" ID="UpdateAll" Text="Save All" CssClass="save" 
                  CommandName="SaveAll" 
                  CausesValidation="true" />
  </div>
</CommandItemTemplate>

I also have the following line in the grid, to try to get validation to work:

<ValidationSettings CommandsToValidate="SaveAll,PerformInsert,Update" 
          ValidationGroup="TeamMetricsValidationGroup" />

I have asp.net required field validator controls on several of the controls within EditItemTemplates.

Prior to using my own linkbuttons in the CommandItemTemplate, I was using the built-in Add / Edit buttons supplied by the GridEditCommandColumn.  When I did this, the client-side validation was firing correctly, and preventing the postback as expected.

 

But my linkbutton in the CommandItemTemplate, with the CommandName of "SaveAll" is NOT firing client-side validation.  It does a postback without validation.

 

I thought I could set CausesValidation="true" for that button, and add that button's CommandName to the CommandsToValidate property, as I've done above, but that didn't work.  Does the grid validation not work with CommandNames from other buttons, in the CommandToValidate property, like I've done?

 

What am I missing?  Is it possible to fire client-side validation from buttons in the CommandItemTemplate?

Thanks,
Michael

Michael Hunt
Top achievements
Rank 1
 answered on 05 Dec 2011
0 answers
141 views
Hi Everybody,

     I have downloaded the latest version(2011.2.915.35) trial of telerik.

     I have an file explorer control in my page in which i need to show folders in user basis,
     some folders are common to all users and some are specific to users.

     Have done this, and in addition i want to disable deleting of the default folders.

    The users can be allowed to delete other folders except the default folders, is it possible to set delete permissions folder wise.
    Any one please give me a suggestion.

Thank you,
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 asked on 05 Dec 2011
2 answers
120 views
Hi,

I am using Radscheduler for checking room availability as in one of your demos. However, I am using the timeline view instead of day view as I want the timescales at the top. There are 2 issues in this.
1. Even though I set the row height, it expands automatically for rows having an appointment. (Please see attached snapshot)
2. The previous and next buttons on the navigation pane work only one day back and forward and no further. How canI correct this? Or if this is the default behaviour in the tiemline view, how can I hide these buttons alone and not the calendar as I need navigation to see availability for other days

Code snippet is below. Any help appreciated.

Thanks.

<telerik:RadScheduler runat="server" ID="rsBookings" DataSourceID="odsBookings" RowHeight="50px" TimelineView-HeaderDateFormat="dd/MM/yyyy"
            DataKeyField="BookingID" DataSubjectField="Description" DataStartField="StartDate" DataEndField="EndDate"
            GroupBy="Room" GroupingDirection="Vertical" StartEditingInAdvancedForm="false" SelectedView="TimelineView" 
            TimelineView-TimeLabelSpan="1" TimelineView-SlotDuration="00:30:00" TimelineView-NumberOfSlots="48" 
            TimelineView-ColumnHeaderDateFormat="HH:mm" DayStartTime="00:00" DayEndTime="23:59"  ColumnWidth="80px"         
            AllowDelete="false" AllowEdit="false" AllowInsert="false" CustomAttributeNames="Description, CompanyName, BookingID"
            OnDataBound="rsBookings_DataBound">
            <AdvancedForm Modal="true" />
            <TimelineView UserSelectable="false" />
            <WeekView UserSelectable="false" />
            <MonthView UserSelectable="false" />
            <DayView UserSelectable="false" />
            <ResourceTypes>
                <telerik:ResourceType KeyField="RoomID" Name="Room" TextField="Name" ForeignKeyField="RoomID"
                    DataSourceID="odsRooms" />
            </ResourceTypes>
            <AppointmentTemplate>
                <a href='BookingDetails.aspx?BookingID=<%# Eval ("BookingID") %>'><%# Eval("Description") %></a>
                <br />
                <%# Eval("CompanyName")%> 
            </AppointmentTemplate>
            <TimeSlotContextMenuSettings EnableDefault="true" />
            <AppointmentContextMenuSettings EnableDefault="true" />
        </telerik:RadScheduler
  
  
Code Behind:
  
  
protected void Page_Load(object sender, EventArgs e)
        {
           rsBookings.SelectedDate = DateTime.Today;
            }
Kanchana
Top achievements
Rank 1
 answered on 05 Dec 2011
10 answers
241 views
HI,

    I am using telerik control. when i click on Combobox( Not only Combobox event raddatepicker,radAjaxloading panel....etc) it expand with items.( Here i am attach image  normalImage.png). after i am scrolling my page down /up it showing different . Here i am attaching that different look image ( i.e flying images.png  ) . i am using asp.net webapplication in Cs
Vasil
Telerik team
 answered on 05 Dec 2011
3 answers
244 views
Hi Everybody,

I have downloaded the latest version(2011.2.915.35) trial of telerik.

I have an file explorer control in my page in which i need to show folders in user basis,
some folders are common to all users and some are specific to users.

for example :

Users : USER-A, USER-B,

Common folders : ComFolder1,ComFolder2,ComFolder3.

User Specific folders:
FolderUser1--> for  USER-A alone
FolderUser2--> for USER-B alone

But all the folders (ComFolder1,ComFolder2,ComFolder3,FolderUser1,FolderUser2) resides in a common root folder called Fileexploredocs/documents.

My requirement is

When USER-A logs in i should show(ComFolder1,ComFolder2,ComFolder3,FolderUser1)
When USER-B logs in i should show(ComFolder1,ComFolder2,ComFolder3,FolderUser2)

For this i used the following class and function:

public partial class _Default : System.Web.UI.Page<br>{<br>protected void
Page_Load(object sender, EventArgs
e)<br>{<br>RadFileExplorer1.Configuration.ContentProviderTypeName =
typeof(CustomProvider).AssemblyQualifiedName;<br>}<br><br>public class
CustomProvider : FileSystemContentProvider<br>{<br>public
CustomProvider(HttpContext context, string[] searchPatterns, string[] viewPaths,
string[] uploadPaths, string[] deletePaths, string selectedUrl, string
selectedItemTag)<br>: base(context, searchPatterns, viewPaths, uploadPaths,
deletePaths, selectedUrl, selectedItemTag)<br>{ }<br><br>public override
DirectoryItem ResolveDirectory(string path)<br>{<br>DirectoryItem originalFolder
= base.ResolveDirectory(path);<br>FileItem[] originalFiles =
originalFolder.Files;<br>List<FileItem> filteredFiles = new
List<FileItem>();<br><br>// Filter the files<br>foreach (FileItem
originalFile in originalFiles)<br>{<br>if
(!this.IsFiltered(originalFile.Name))<br>{<br>filteredFiles.Add(originalFile);<br>}<br>}<br><br>DirectoryItem
newFolder = new DirectoryItem(originalFolder.Name, originalFolder.Location,
originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions,
filteredFiles.ToArray(), originalFolder.Directories);<br><br>return
newFolder;<br>}<br><br>public override DirectoryItem
ResolveRootDirectoryAsTree(string path)<br>{<br>DirectoryItem originalFolder =
base.ResolveRootDirectoryAsTree(path);<br>DirectoryItem[] originalDirectories =
originalFolder.Directories;<br>List<DirectoryItem> filteredDirectories =
new List<DirectoryItem>();<br><br>// Filter the folders<br>foreach
(DirectoryItem originalDir in originalDirectories)<br>{<br>if
(!this.IsFiltered(originalDir.Name))<br>{<br>filteredDirectories.Add(originalDir);<br>}<br>}<br>DirectoryItem
newFolder = new DirectoryItem(originalFolder.Name, originalFolder.Location,
originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions,
originalFolder.Files, filteredDirectories.ToArray());<br><br>return
newFolder;<br>}<br><br>private bool IsFiltered(string name)<br>{<br>if
(name.ToLower().EndsWith(".sys") ||
name.ToLower().Contains("_sys"))<br>{<br>return true;<br>}<br><br>//
else<br>return false;<br>}<br>}<br>}<br>

It worked fine for me when i run it in my local machine, i thought of testing it in a server and deployed it in a windows webserver with II7, 
its not working.

I tried debugging the application in visual studio in the same server, its working fine when i run it locally in the server, it is not working when i host it in IIS.

Anyone please give me some suggestions.

Thank You,
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 05 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?