Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
On the examples there are lines such as, "<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />.  One of the parameters is uppercase while the other is lower.  Why is this?  Is it case sensitive, if so which are suppose to be uppercase and which lower?  How is one to know?

Daniel
Telerik team
 answered on 31 Aug 2009
1 answer
239 views
I was trying to follow the demo for FileExplorer / Filter files and download at  http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/filteranddownloadfiles/defaultcs.aspx
But I am not having much luck, so far I place the following script in the <head>

 <script type="text/javascript"
        //<![CDATA[
        function OnClientFileOpen(oExplorer, args)
        {
            var item = args.get_item();
            var fileExtension = item.get_extension();
           // var fileDownloadMode = document.getElementById("chkbxDownoaldFile").checked;
            if ((true == true) && (fileExtension == "pdf" || fileExtension == "pdf"))
            {// Download the file
                // File is a image document, do not open a new window
                args.set_cancel(true);
                // Tell browser to open file directly
                var requestImage = "Handler.ashx?path=" + item.get_url();
                document.location = requestImage;
            }
        }
        //]]> 
    </script> 

My FileExplorer Looks like this:
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server"  onclientfileopen="OnClientFileOpen" 
            DisplayUpFolderItem="True" Skin="Office2007"  
            VisibleControls="TreeView, Grid, Toolbar, ContextMenus" EnableCopy="True"
<Configuration SearchPatterns="*.*" ></Configuration
  <Configuration  ViewPaths="~/doc_manager_files/" UploadPaths="~/doc_manager_files/"  
                        DeletePaths="~/doc_manager_files/" MaxUploadFileSize="204800000" /> 
 
        </telerik:RadFileExplorer> 

And I added this to the code behind:
Private Function IsFiltered(ByVal name As String) As Boolean 
        If name.ToLower().EndsWith(".sys") OrElse name.ToLower().Contains("_sys") Then 
            Return True 
        End If 
        Return False 
    End Function 

I am not sure what else to do. It seems the doc to be downloaded will be handled by a handler.ashx file but I cannot see any code for that file.

Fiko
Telerik team
 answered on 31 Aug 2009
6 answers
209 views
I have 3 type of appointment and I need 3 different appearance, not simply a different color but different content. Currently I have a blank template and  I add control depending on the type in appointmentCreated. I would like to know if someone knows a better way.

Thanks
Jean-Luc
Peter
Telerik team
 answered on 31 Aug 2009
1 answer
115 views
I have a RadFileExplorer with the following code:
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server"    
            DisplayUpFolderItem="True" Skin="Office2007"  
            VisibleControls="TreeView, Grid, Toolbar, ContextMenus" EnableCopy="True"
<Configuration SearchPatterns="*.*" ></Configuration
  <Configuration  ViewPaths="~/doc_manager_files/" UploadPaths="~/doc_manager_files/"  
                        DeletePaths="~/doc_manager_files/" MaxUploadFileSize="204800000" /> 
 
        </telerik:RadFileExplorer> 
     

If I delete a file from the root directory (doc_manager_files) it refreshes and the file is no longer visible. However, I created two sub directories (using the FileExplorer New Folder function). Now, if I move or delete a file from one of the sub directories nothing changes. I will only see the changes if I reload the entire page.

What can I do about this?


Fiko
Telerik team
 answered on 31 Aug 2009
1 answer
135 views
Hi,

1.Using RadGrid I am displaying a set of data. One of the column is set as a griddropdowncolumn option. The related database field holds the data as 0,1 and Null. I would like the grid to show it as Rejected, Approved and Pending respectively. How do I accomplish this.
2.In the RadGrid when doing an Inline edit only 2 options should be made available that is Approved and Rejected. How do I accomplish this?

Thanks
Sabrish
Mira
Telerik team
 answered on 31 Aug 2009
2 answers
228 views
Hi,

I have a RadToolbar and a RadGrid on one page. Depending on how many row are selected in the grid some buttons in the toolbar should be active or inactive.
To achieve this I run a javascript function every time a row gets selected or deselected in the grid and I go through a switch-case to set the buttons in the right state.
So far so good, this is just some background to my problem.

My problem is that, as far as I can see, the only way to get the buttons I want to change is through the toolBar.get_items().getItem() method which takes an integer for the index of the desired item. The problem with that is that I now have to identify button by order in which they are placed, resulting in maintenance hell should the order of the buttons change.
Rather, I would like to ask the RadToolBarItemCollection collection to get me an item by specifying it's Value or CommandName.
Obviously it's not very hard to write a small function that gives me this behaviour myself, but I was wondering if it doesn't already exist and maybe I've overlooked it.
Or that there is a similar but easier approach to getting a specific button from a toolbar through it's Value or CommandName or something similar.

Regards,

Mink

Mink
Top achievements
Rank 1
 answered on 31 Aug 2009
3 answers
138 views
Hi
When I change Scheduler from Entity to WebService Drag-and-drop from grid (entity) return error after drop:
Cell index out of range 0

Please help
Peter
Telerik team
 answered on 31 Aug 2009
1 answer
122 views
I'm not sure whether to call this a bug, a feature request, or just me missing something obvious and/or doing something wrong. When I auto-tooltipify a page, and then change an element's title tag via Javascript, I would generally expect RadTooltipManager to use the new, updated title tag when displaying the tooltip. It doesn't seem to, but perhaps I'm doing something wrong. Has anyone else experienced this issue? Is the only workaround the inelegant manual update via RadTooltipManager on the client side?

In case anyone else runs into this issue, this is roughly how I'm currently working around it:
objImage.title=objImage.alt; //objImage being the element in question, currently being altered by other JS 
var objTTM=$find(strTTM); //My tooltip manager
var objTooltip = objTTM.getToolTipByElement(objImage); 
objTooltip.set_content(objImage.title); 
 

If there's a better way that doesn't involve the creation of two new objects, maybe a setting I should be including on RadTooltipManager or something along those lines, I'd love to hear it - there are situations in which I do this particular call in a loop, and while I can sometimes pre-create the tooltip manager object, that's still extra overhead I'd like to see trimmed down.

Thanks!
Svetlina Anati
Telerik team
 answered on 31 Aug 2009
1 answer
115 views

Hi,

 

I have a RadSplitter with size 100%.  It contains 2 RadPanes, the first one with a height of 152px. When I resizing the browser, the second radPane size is ok.
  

  • I do a postback and change RadSplitter visibility to hide.
  • I do a second postback and change RadSplitter visibility to show. 
  • Results:  The second RadPane is not ok when I resized the browser.

 

I have investigated RadPane control, and I found a problem with _originalHeight.

 

I reproduce problem, look code.


 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadPaneVisibility.aspx.cs" Inherits="BugRadPane.RadPaneVisibility" %>  
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>  
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
 
<html xmlns="http://www.w3.org/1999/xhtml" >  
<head id="Head1" runat="server">    
    <title></title>    
    <style type="text/css">    
    html, body, form    
    {    
      width: 100%;  
      height: 100%;    
      margin: 0;    
      paddding: 0;    
      overflow: hidden;  
    }    
        
    </style>   
</head>   
 
<body id="Service" style="margin: 0px; text-align: left;">    
    <form id="Form1" runat="server" method="post">   
        <asp:ScriptManager ID="RadScriptManager" runat="server"></asp:ScriptManager>  
                  
        <asp:Button ID="VisibilityOff" runat="server" Text="Off" OnClick="OnOff" />  
        <asp:Button ID="VisibilityOn" runat="server" Text="On" OnClick="OnOn" />  
          
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Height="100%" Width="100%">  
            <telerik:RadPane ID="RadPane1" runat="server" Height="152px">  
                Ruban  
            </telerik:RadPane>              
            <telerik:RadPane ID="RadPane2" runat="server">  
                Content  
            </telerik:RadPane>  
        </telerik:RadSplitter>       
    </form>  
</body>  
</html> 

 

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
namespace BugRadPane  
{  
   public partial class RadPaneVisibility : System.Web.UI.Page  
   {  
      protected void Page_Load(object sender, EventArgs e)  
      {  
 
      }  
 
      protected void OnOff(object sender, EventArgs e)  
      {  
         RadSplitter1.Visible = false;  
      }  
 
      protected void OnOn(object sender, EventArgs e)  
      {  
         RadSplitter1.Visible = true;  
      }  
   }  

 

Thanks

 

Annie

Svetlina Anati
Telerik team
 answered on 31 Aug 2009
1 answer
121 views
Based on an example from another thread I am using the following command to open a dialog window from the link manager:
 Type.registerNamespace("Telerik.Web.UI.WindowBehaviors");

function ShowCustomDialog(popupUrl, width, height)

...
    var dialogOpener = Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().get_dialogOpener();

    dialogOpener.openUrl( 
        popupUrl, argument, width, height, callbackFunction, null,  
        "Menu Selector"true,  
        Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move, 
        falsetrue); 
}
The problem is that the window behaviors are being ignored and all the controls - refresh, pin, minimize, maximize - are showing.

How do I open the dialog withput the extra controls.
Rumen
Telerik team
 answered on 31 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?