Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
94 views
Hello All,

    My requirement is as follows. i need to edit a dynamically generated grid ( in which in which i cannot write a editcolumn template) , because i cant define how many columns will be coming. Functionality is as follows, i have Employee leave data,  in grid I need to show Empid, DOJ, Name, Leave Type1, Leave Type2, Leave Type3......... as defined in masters. When i load the grid i get all emp details and leave types as columns names, here i need to enter values in each type for each employee. When i bring the grid into edit mode I should not be able to edit  first three columns and all others should be in edit mode.

Hope I am clear. Can this be done.
MKDurga Durga
Top achievements
Rank 1
 answered on 23 Oct 2009
1 answer
76 views
The ENTER and ESC keys aren't working in edit mode.  I do have another button in the form (outside of the grid) that I focus when the user first hits the page, but I would like the ENTER and ESC keys to work for Update and Cancel.

I already blocked the Enter key using info from this thread: http://www.telerik.com/community/forums/aspnet-ajax/grid/enter-key-hit-on-the-textbox-in-the-radgrid.aspx

Any idea how to make this work?

Thanks,
Andy
Sebastian
Telerik team
 answered on 23 Oct 2009
1 answer
131 views
Hello, I have a big Problem. I call the Fileexplorer with the Button from client side:

function OpenFileExplorerDialog(val) {  
            _globobjectartselect = val;  
            var wnd = $find("<%= ExplorerWindow.ClientID %>");  
            wnd.set_navigateUrl("../../filemanager/explorer.aspx?search=" + val);  
            wnd.show();  
        }  
 
function OnFileSelected(wnd, fileSelected) {  
            switch(_globobjectartselect)  
            {  
                case "Picture":  
                    var textbox = $find("<%= txtPictureFilePath.ClientID %>");  
                    textbox.set_value(fileSelected);  
                    break;  
                case "Video":  
                    var textbox = $find("<%= txtVideoFilePath.ClientID %>");  
                    textbox.set_value(fileSelected);  
                    break;  
            }  
        } 

I pass a parameter to the link wnd.set_navigateUrl(). This parameter is to set the search pattern.

Fileexplorer:

protected void Page_Load(object sender, EventArgs e)  
    {  
        if (Request.QueryString["search"] != null && Request.QueryString["search"] != "")  
        {  
            switch (Request.QueryString["search"])  
            {  
                case "Picture":  
                    string[] patterns1 = { "*.jpg", "*.jpeg", "*.gif", "*.png", "*.bmp" };  
                    RadFileExplorer1.Configuration.SearchPatterns = patterns1;  
                    break;  
                case "Video":  
                    string[] patterns2 = { "*.mpg", "*.mpeg", "*.avi", "*.divx", "*.wmv" };  
                    RadFileExplorer1.Configuration.SearchPatterns = patterns2;  
                    break;  
            }              
        }  
    } 

This works fine for one call. When i call the picture object first then its ok. In the second call the search patterns are soon the patterns from Picture. The Explorer does not load the new settings.

How can I solve the problem? Its very important for me.

Thank you

Reiner
Fiko
Telerik team
 answered on 23 Oct 2009
3 answers
201 views
How do I find the RadComboBox on Page_Load and disable it?  Thanks
Princy
Top achievements
Rank 2
 answered on 23 Oct 2009
4 answers
348 views
Hi !

I want to refresh the TREECONTEXT menu in the RAD FILEEXPLORER. How can I ?

I have a folder lists in the tree context menu , when I delete one of the FOLDER from the context menu, its does not gets deleted & seems to present there but  when I REFRESH my whole page then that particular folder gets deleted & not shown in the TREE CONTEXT MENU.

Please help me how to REFRESH the tree context menu or how to do past back to the server on to the click event of the delete button so the folder also gets deleted.

Please help ?
Ajay
Top achievements
Rank 2
 answered on 23 Oct 2009
1 answer
359 views

Hi Lini/Fiko,

I have struck in between my project.

I have added an ARCHIVE  button to the  TREE CONTEXT MENU as shown in the below screen shot:-

"pic-1.jpg"

Iam able to ARCHIVE the folder but the main problem that I have been facing for the last 3- 4 weeks is that Iam not able to REMOVE that particular folder() form the TREE VIEW, That folder() still exists there(in the TREE MENU) untill or unless we REFRESH the whole page in the browser .

Below is the code that I have been using in my ASPX page:-

"pic-2.jpg"

While the code that I have been using is shown below as :-

"pic-3.jpg"

Please help !

Hope this time it will work ..........

Ajay

Fiko
Telerik team
 answered on 23 Oct 2009
2 answers
314 views
Hi,

I am using delete,edit,upadate and cancel by using below 2 Columns in grid.

1) GridButtonColumn - Delete
2) GridEditCommandColumn - Edit,Update,Cancel.

I want to assign some javascript code to run at client when each of these actions are performed for each Item(Row).

How is this possible ?

Rajasekar Nammalvar
Top achievements
Rank 1
 answered on 23 Oct 2009
0 answers
318 views
PROBLEM

The Telerik.Web.UI.WebResource.axd handler can return uncompressed content for browsers that accept gzip encoding and vice versa

 

SOLUTION

Either upgrade your Telerik.Web.UI assembly to version 2009.3.1118 or higher.

Or, add this code to your Global.asax file:

C#
protected void Application_PostRequestHandlerExecute(object sender, EventArgs e)  
    {  
        HttpApplication app = (HttpApplication)sender;  
     
        if (!app.Request.RawUrl.Contains("Telerik.Web.UI.WebResource.axd"))  
            return;  
     
        HttpCachePolicy cachePolicy = app.Response.Cache;  
        cachePolicy.VaryByHeaders["User-Agent"] = true;      
    }


VB.NET
Protected Sub Application_PostRequestHandlerExecute(sender As Object, e As EventArgs)  
    Dim app As HttpApplication = DirectCast(sender, HttpApplication)  
     
    If Not app.Request.RawUrl.Contains("Telerik.Web.UI.WebResource.axd") Then
        Return
    End If
     
    Dim cachePolicy As HttpCachePolicy = app.Response.Cache  
    cachePolicy.VaryByHeaders("User-Agent") = True
End Sub

UPDATE (11/18/2009): The Accept-Encoding header has been removed from the VaryByHeaders property as this is preventing Internet Explorer 6 from caching the response.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 23 Oct 2009
8 answers
235 views
Hello,

I'm working on a webpage that contains, among other controls, a dropdownlist and a radgrid.  Whenever an item is selected in the dropdownlist, inside the event handler the radgrid uses that selection to retrieve its data.

The radgrid always contains a clientselectcolumn and two button columns (Edit and View).  Beyond those "constant" ones the rest of the columns are based on the retrieved data, and they vary.  The data columns are sortable, resizeable, and reorderable.  The grid is also filtered from the codebehind.

I am also loading and saving column information for these data columns (size, order, etc) associated with the ddl selection.  Sometimes the columns do have saved settings for the ddl selection, and sometimes they do not (for these I apply some default settings values).

I have tried a number of different approaches from the various RadGrid examples and postings, but none entirely match what I'm doing, and none entirely work.  I am having page lifecycle problems and/or postback problems (some things work and some things don't).

Generally, what kind of approach would you suggest here?  Particularly:
  • How should the "constant" columns be created (in aspx, in the codebehind/at what point, or...)?
  • How should the data columns be generated and at what point (autogenerated, programmatically/at what point...)?
  • When should any saved column settings be applied (at databound, at creation time...)?
  • How do I keep from losing the constant columns on a postback, say, on column reorder?

I appreciate any insight you can provide.  Please let me know if I need to provide more information.

Thanks!
Eve
Pavlina
Telerik team
 answered on 23 Oct 2009
1 answer
127 views
I have a DropDownList and a required field validator. When the form decorator is on, the validation always thinks the selected value is blank. When I turn off the form decorator, everything works fine.

How can I fix it?
Georgi Tunev
Telerik team
 answered on 23 Oct 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?