Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
270 views
Hi

I am setting the value of one of my GridBoundColumn in Client Side , that is getting displayed after setting, but I am not able to read the set value in server side. Below is my code snippet. Please let me know where i am getting wrong?

<!-- Setting value in Client Side -->

masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[i],

"ColumnUniqueName").innerText = "someText";

-----------------------------------------

Reading Server side in _NeedDataSource Event.....

 

string

 myVal = item["ColumnUniqueName"].Text.ToString();

 

 

myVal is coming &nbsp; for the GridBoundColumn which value is set through client side.

Please help.

Thanks in advance.
Arvind

Princy
Top achievements
Rank 2
 answered on 12 Sep 2009
1 answer
258 views
Hi,

I currently am using WebBlue as RadGrid's theme and below are the issues I found

1. Even though I set AllowMultiRowSelection="false" and <Selecting AllowRowSelect="false" />, but I still see highlight row selection. I want to remove hightlighted row selection after clicking on any row. How can I do that?
2. I want to select individual/multiple grid's cells in grid but turns out that the whole row is selected and it does not do any copy when I do CTRL+C and CTRL + V into Excel Spreadsheet.
3. How do I maintain Datetime format after pasting into Excel spreadsheet.

Thanks,
Sam
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2009
2 answers
239 views
I am working with rad scheduler i struck at the following problem
  In my application there are list of holidays in that holidays i have made the scheduler disable(block the scheduler for those days,i.e;we cant create any appointment for those days).pls help
Ananya
Top achievements
Rank 1
 answered on 12 Sep 2009
1 answer
145 views
hi

My primary key field is a nvarchar and my table structure eg COL1(nvarchar(50)) PK, COL2(Nvarchar(50)),COL3(Nvarchar(50))

How do i insert a PK value when the Popup in EditMode shows only COL2 and COL3?

Your demo http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx where CustomerID is Nvarchar based. When i add a new customer, it would not allow me to add a PK value.

Thanks

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 12 Sep 2009
1 answer
65 views
I have a query that I am using for the RadGrid and one of the columns is a bit value.  The bit value displays a check box; checked for true and unchecked for false.  Is there any way I can change from this text box to a yes/no or true/false display?  Thanks!
Princy
Top achievements
Rank 2
 answered on 12 Sep 2009
1 answer
120 views
I have a RadGrid and I am pulling several columns.  In one of the columns, it displays a checkbox.  True for checked and false for unchecked.  Is there a way to display yes for checked or true as opposed to a checked box?  Thanks!
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2009
2 answers
311 views
OnSelectedIndexChanged server event is not firing on DropDownList ASP.NET control inside RadWindow.
If I use RadComboBox then this event is firing. I am using 2009.1.527.35 version of Telerik.
I am using third party software where I should pass DropDownList reference as parameter to some methods.
And there is no any conversions from DropDownList to RadComboBox.
What can be cause of stopping OnSelectedIndexChanged event of DropDownList and how to fire this event?

Ildar
Ildar
Top achievements
Rank 1
 answered on 11 Sep 2009
2 answers
96 views

I'm trying to utilize the sample Telerik projects and am having problems. In VS 2008 I go to File_Open Web Site and go to any of the projects that were installed under the VS Projects folder. I open Solution explorer and configure the site to be a Telerik site which seems to remove all but one error when I do a build. I always get an error "Could not load type 'xxx._Default" with xxx being in the Page line of the Default.aspx web page. 
So if this is the header from my web page:

 

<%

@ Page Language="vb" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="WebApplication4._Default" %>
I get "Could not load type 'WebApplication4._Default" as an error.

What am I doing wrong?

 

AkAlan
Top achievements
Rank 2
 answered on 11 Sep 2009
1 answer
204 views
Hello,

I was wondering if there is a HasValue type of property for the radCalendar.

The way my code right now looks like this.

DateTime date = RadCalendar1.SelectedDate;

I would like to have something like this

DateTime date = RadCalendar1.SelectedDate.HasValue;

but there is no HasValue property or any other property like it as far as I can tell.

Thanks for the help in advance,
Kirk
Martin
Telerik team
 answered on 11 Sep 2009
4 answers
197 views
Hello,

I need to add the Editor to the page programmatically. When I do, I end up missing about a dozen scripts that I would normally see when the editor is inline in the aspx. Because of the missing scripts, I get "Telerik is not defined."

Here's how I'm adding the control. Can you tell me what else I should be doing?

Thanks,
Jeff

    protected void Page_Load(object sender, EventArgs e) 
    { 
        // "Content" is a ContentPlaceHolder in a master page 
        Content.Controls.Add(InitializeEditor()); 
 
        // Add inline scripts for handling commands. etc. 
        RegisterScripts(); 
 
                // Contains 'EditorLoaded' function, filters, etc. 
        litEditorScript.Text = 
            string.Format("<script src=\"{0}{1}\" type=\"text/javascript\"></script>", 
                URLs.RootPath, "js/ControlsEditMode.js"); 
    } 
 
    private RadEditor InitializeEditor() 
    { 
        RadEditor re = new RadEditor(); 
 
        re.ContentFilters = EditorFilters.RemoveScripts | EditorFilters.FixEnclosingP | EditorFilters.FixUlBoldItalic | 
            EditorFilters.MozEmStrong | EditorFilters.ConvertFontToSpan | EditorFilters.ConvertFontToSpan | 
            EditorFilters.IndentHTMLContent; 
        re.ContentAreaCssFile = "~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"; 
        re.ToolsFile = "~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml"; 
        re.Skin = "Office2007"; 
        re.NewLineBr = false; 
        re.OnClientPasteHtml = "OnClientPasteHtml"; 
        re.OnClientLoad = "EditorLoaded"; 
        //Css, Font, MSWordRemoveAll 
        re.StripFormattingOptions = EditorStripFormattingOptions.Css | EditorStripFormattingOptions.Font | 
            EditorStripFormattingOptions.MSWordRemoveAll; 
 
        re.CssFiles.Add("~/style.css"); 
        re.CssFiles.Add("~/designer.css"); 
 
        re.FlashManager.DeletePaths = new string[] { "~/Files" }; 
        re.FlashManager.UploadPaths = new string[] { "~/Files" }; 
        re.FlashManager.ViewPaths = new string[] { "~/Files" }; 
 
        re.ImageManager.DeletePaths = new string[] { "~/Images" }; 
        re.ImageManager.UploadPaths = new string[] { "~/Images" }; 
        re.ImageManager.ViewPaths = new string[] { "~/Images" }; 
 
        re.DocumentManager.DeletePaths = new string[] { "~/Files" }; 
        re.DocumentManager.UploadPaths = new string[] { "~/Files" }; 
        re.DocumentManager.ViewPaths = new string[] { "~/Files" }; 
 
        re.MediaManager.DeletePaths = new string[] { "~/Files" }; 
        re.MediaManager.UploadPaths = new string[] { "~/Files" }; 
        re.MediaManager.ViewPaths = new string[] { "~/Files" }; 
 
        return re; 
    } 
 
    private void RegisterScripts() 
    { 
        Type cstype = GetType(); 
        ClientScriptManager cs = Page.ClientScript; 
        string strPageEditorInline = HttpContext.Current.Server.MapPath(URLs.RootPath + "Sitefinity/Admin/Scripts/PageEditorInline.js"); 
 
        // Check to see if the client script is already registered. 
        if (!cs.IsClientScriptBlockRegistered(cstype, "PageEditorInline") && 
            File.Exists(strPageEditorInline)) 
            cs.RegisterClientScriptBlock(cstype, "PageEditorInline", 
                File.ReadAllText(strPageEditorInline), true); 
 
    } 
Jeff
Top achievements
Rank 1
 answered on 11 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?