Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
I'd like to limit the expand depth that users can see in the treeview. Is there a way to do that?

Eric
Tervel
Telerik team
 answered on 17 Sep 2009
1 answer
225 views
In my applicatin i use button column for confirmatin of delete some product , i want change it height and width and forecolor of the text .. It wil takes black automatically

My code is

<telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Remove" ImageUrl="images/Delete.gif"
                                                    ConfirmText="Delete this Proposal?" UniqueName="DeleteColumn" ConfirmDialogType="RadWindow" 
                                                     CommandName="Delete" Text="Delete" ConfirmTitle="Delete">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                    <ItemStyle HorizontalAlign="Center" V
erticalAlign="Middle" />
                                                </telerik:GridButtonColumn>

How to change rad confirm height width color ?


Shinu
Top achievements
Rank 2
 answered on 17 Sep 2009
1 answer
119 views
I have an Ajaxified grid wired up to the AjaxLoadingPanel.  I am using a command item template in which I have a "Print" option link button.  The link calls a client-side script to run a report.  The server side event for this link does the following:

Dim myReport As ReportServer.PendingReport = New ReportServer.PendingReport
Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor()
Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", myReport, Nothing)
Dim fileName As String = result.DocumentName + ".pdf"
Response.Clear()
Response.ContentType = "Application/pdf"
Response.Cache.SetCacheability(HttpCacheability.Private)
Response.Expires = -1
Response.Buffer = False
Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName))
Response.OutputStream.Write(result.DocumentBytes, 0, result.DocumentBytes.Length)
Response.End()

Firing this event causes the following error:

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
Common causes for this error are when the response is modified by calls to Response.Write(), response filters,
httpModules, or server trace is enabled.  Details: Error parsing near '%PDF-1.6
%
1 0 obj'

Anyone have any idea of how to avoid this other than removing Ajax Manager for the grid? 

 

Princy
Top achievements
Rank 2
 answered on 17 Sep 2009
1 answer
113 views
Is it possible to define this via JavaScript?  I havent been able to find anything in the documentation anywhere.  I am reusing the same window manager and need some windows to show content and others to show the loading panel and would like to be able to set this in my js script if possible?
Fiko
Telerik team
 answered on 17 Sep 2009
6 answers
747 views
There appears to be a bug in the way that the RadAjaxManager is updating UpdatePanels, plus the EventName attribute of the AjaxSetting element is not filtering events.  If an UpdatePanel named by an AjaxUpdatedControl element is triggered for an update by the RadAjaxManager, and you also execute the .Update() method of that UpdatePanel in your code, the entire contents of the update panel will be removed on the CallBack.

I have been bending over backwards to work around this, but it really needs to be fixed.  In my code, I can execute the .Update() method of a single UpdatePanel as many times as I wish without any issues, so it is something in the way that the RadAjaxManager is handling this.  As for the EventName not filtering, there is no work-around.
Mira
Telerik team
 answered on 17 Sep 2009
4 answers
163 views
Is there any way to view rad tree nodes just in leaves?
I wrote this code but all nodes was checkbox.
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True"/> 

Mahdi
Top achievements
Rank 1
 answered on 17 Sep 2009
1 answer
180 views
Dear Support,

I have created a custom class that inherits from FileBrowserContentProvider and have implemented all the neccesary methods.  I sometimes require to reject an uploaded file in the StoreFile method due to some business logic but was not able to figure how that could be implemented. Returning a non-empty string and throwing an exception did not work well. Since the class inherited from FileBrowserContentProvider has no access to the Page-derived class, I am not able to add an Error to the page. 

Could you please help in directing me to a neat solution to my problem?


Thanks in advance,

Omtara
Fiko
Telerik team
 answered on 17 Sep 2009
1 answer
157 views
Hi,
I am using RadComboBox with item template of checkboxes as described in the demo:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

I am setting the checked items using javascript. this code works perfectly on all browsers but IE6. in IE6 the checkboxes are not checked.

Has anybody encoutered such problem?

This is my javascript code:

function onCheckBoxClick(chk) {  
 
            var combo = $find("<%=cmbExt.ClientID %>");  
 
            //holds the text of all checked items  
            var text = "";  
            //holds the values of all checked items  
            var values = "";  
            //get the collection of all items  
            var items = combo.get_items();  
 
            //enumerate all items  
            for (var i = 0; i < items.get_count(); i++) {  
                var item = items.getItem(i);  
                //get the checkbox element of the current item  
                var chk1 = $get(combo.get_id() + "_i" + i + "_chk1");  
                if (chk1.checked) {  
                    text += item.get_text() + ", ";  
                    values += item.get_value() + ",";  
                }  
            }  
            //remove the last comma from the string  
            text = removeLastComma(text);  
            values = removeLastComma(values);  
 
            var extValues = document.getElementById("<%= hiddenExtensions.ClientID %>");  
            extValues.value = values;  
            var ExtValuesHiddenField = document.getElementById("<%=ExtValuesHiddenField.ClientID %>");  
            ExtValuesHiddenField.value = values;  
 
            if (text.length > 0) {  
                //set the text of the combobox  
                combo.set_text(text);  
                combo.ToolTip = text;  
            }  
            else {  
                //all checkboxes are unchecked  
                //so reset the controls  
                if (items.get_count() == 0) {  
                    var HiddenFieldNoExtensionsString = document.getElementById("<%=HiddenFieldNoExtensionsString.ClientID %>");  
                    combo.set_text(HiddenFieldNoExtensionsString.value);  
                }  
                else {  
                    var HiddenFieldSelectExtensionsString = document.getElementById("<%=HiddenFieldSelectExtensionsString.ClientID %>");  
                    combo.set_text(HiddenFieldSelectExtensionsString.value);                   
                }  
            }  
        }  
 
        //this method removes the ending comma from a string  
        function removeLastComma(str) {  
 
            return str.replace(/, $/, "");  
        }  
 
        function ExtensionsComboClientLoad(sender) {  
 
            var extValues = document.getElementById("<%= hiddenExtensions.ClientID %>");  
 
            var ExtValuesHiddenField = document.getElementById("<%=ExtValuesHiddenField.ClientID %>");  
            ExtValuesHiddenField.value = extValues.value;  
 
            var combo = $find("<%=cmbExt.ClientID %>");  
 
            //get the collection of all items  
            var items = combo.get_items();  
 
            var text = "";  
 
            if (extValues != null && extValues.value != null && extValues.value != "") {  
 
                var ext_array = extValues.value.split(", ");  
 
                for (var j = 0; j < ext_array.length; j++) {  
 
                    //enumerate all combo items  
                    for (var i = 0; i < items.get_count(); i++) {  
 
                        var item = items.getItem(i);  
                        //get the checkbox element of the current item  
                        var chk1 = $get(combo.get_id() + "_i" + i + "_chk1");  
 
                        var itemitemValue = item.get_value();  
                        if (itemValue == ext_array[j]) {  
                            chk1.checked = true;  
                            text += item.get_text() + ", ";  
                        }  
                    }  
                }  
            }              
              
            if (text.length > 0) {  
                //remove the last comma from the string  
                text = removeLastComma(text);  
 
                //set the text of the combobox  
                combo.set_text(text);  
                combo.ToolTip = text;  
 
            }  
            else {  
                if (items.get_count() == 0) {  
                    var HiddenFieldNoExtensionsString = document.getElementById("<%=HiddenFieldNoExtensionsString.ClientID %>");  
                    combo.set_text(HiddenFieldNoExtensionsString.value);  
 
                }  
                else {  
                    var HiddenFieldSelectExtensionsString = document.getElementById("<%=HiddenFieldSelectExtensionsString.ClientID %>");  
                    combo.set_text(HiddenFieldSelectExtensionsString.value);  
 
                }  
            }  
        } 

Thanks is advance,
Ruth
Yana
Telerik team
 answered on 17 Sep 2009
3 answers
108 views
Hi,

I link an external CSS file to an Editor from codebehind:

NLtext.CssFiles.Add("~/" & TablePrefixStrip & "/css/telerik.css")

This works OK, the stylesheet is coupled.
But when I try to select classes from this sheet and add it with

NLtext.CssClasses.Add("Links class ", ".link")

it cannot find the classes. I think this problem occurs when a stylesheet is coupled which lies above the root of our CMS.

But even when I try

NLtext.CssFiles.Add("http://f2p-server:8136/css/telerik.css")
NLtext.CssClasses.Add("Links class", ".MarLeft")

It is not working.

Please assist, TIA

Marc
Rumen
Telerik team
 answered on 17 Sep 2009
1 answer
88 views
I have a telerik grid control and use in-place editing. Since telerik does not support checkboxlist columns, I want to popup a small window with a checkboxlist and a close button when the user clicks on a cell that requires the user to select multiple items. When the close button on the popup is hit, I want to populate the cell with a comma separated list of choices selected. Is this possible and is there an example that I can look into for doing this?

Thanks
Shanthala
Princy
Top achievements
Rank 2
 answered on 17 Sep 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?