Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 views
Hello!

I am implementing a TreeList with 2 columns. One is a name and the other one is a SelectColum, with checkboxes. 

This list displays a hierarchy. 

Is that possible to have tri-state checkbox behaviour for the SelectColumn?


Any help will be much appreciated.


Thanks,
Christian
Christian
Top achievements
Rank 1
 answered on 23 Jan 2013
2 answers
85 views
Hello all,

I am using a RadEditor in where I need to enable Edit Mode or Preview Mode based on permissions (Only specific users can edit the content).

So, it is working OK but because of space, I need to use the "Floating" toolbar option.

The issue appears when I set Preview Mode + Floating Toolbar...and it is that the toolbar allows me to edit the content...If I use "Default" Toolbar mode...it appears as "grey out" and I cannot use it...achieving what I need...but if I go back to "Floating" mode, the restriction goes off.

Please let me know if you have any ideas about what could be happening.

This is what I am calling in the "OnLoad" method...

private void SetEditorMode()
       {       
           this.HelpContentRadEditor.ToolbarMode = EditorToolbarMode.Floating;
           this.HelpContentRadEditor.EditModes = EditModes.Preview;
       }


I also tried with JavaScript with no luck...

function OnClientLoad(editor, args) {
    setTimeout(function () {
        editor.set_mode(4);
    }, 150);
}


Thanks all for your help!!!

Christian
Christian
Top achievements
Rank 1
 answered on 23 Jan 2013
1 answer
121 views
Hi,

I followed Grid/NestedViewTemplate Relations demo to bind one grid that has a nested view, everything is working properly.
But when using ObjectDataSource as a DateSource for NestedView and that object datasource uses a server side method to pull data from a Session variable, I'm getting
System.NullReferenceException: Object reference not set to an instance of an object

Here is ObjectDataSource declarative markup
<asp:ObjectDataSource runat="server" ID="MemberSubmissionData" TypeName="FacultyAnnualReview" SelectMethod="BindNestedView">
     <SelectParameters>
        <asp:Parameter Name="SubmissionId" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource> 

and here is server side method
        public FacultyMemberSubmission BindNestedView(int submissionId)
        {
            return  (
                        from data
                        in GetFacultyMemberSubmissions()
                        where data.SubmissionId == submissionId
                        select data
                    ).SingleOrDefault();            
        } 

GetFacultyMemberSubmissions() method pulls data from a Session variable. When updating it to not use session, everything is working. So is that something that is related to ObjectDataSource or NestedView binding doesn't accept session variables. Any suggestions?
Ahmed
Top achievements
Rank 1
 answered on 23 Jan 2013
4 answers
193 views
When doing a filter in a string field in a RadGrid, is there any way to filter on a multi-word string?

That is, suppose you want to find all string fields in a column that begin with anything between "this is" and "this will"?
Boris
Top achievements
Rank 1
 answered on 23 Jan 2013
2 answers
173 views
I need to know where the caret is in a RadTextBox while an action is occurring in RadComboBox.  For example, somebody selects an item in the combobox, an item's value is to be inserted into the text in the RadTextBox at the position of the caret. As I try to determine the location of the caret by calling "get_caretPosition" on the RadTextBoxm I always get the same value -7341.

This is an incomplete function but enough to determine that I'm not getting the value I expected:

            function CannedNoteSelected(sender, eventArgs) {
                var selectedValue = eventArgs.get_item().get_value();
                var pos = $find('<%= NoteToClientTxt.ClientID %>').get_caretPosition();
... do stuff here to insert merge new text into existing text but pos always contains -7310 no matter where the caret really is ...
                $find('<%= NoteToClientTxt.ClientID %>').set_value(selectedValue);
            }
 What am I doing wrong?
Maria Ilieva
Telerik team
 answered on 23 Jan 2013
1 answer
159 views
How to remove the path shown in the textbox of fileexplores? 
Princy
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
157 views
Hi
     How can I change the radgrid's filter icon tooltip. Right now its showing 'filter'. I want it to be 'do filter'.
thanks in advance
Ryan
Shinu
Top achievements
Rank 2
 answered on 23 Jan 2013
1 answer
74 views
Hi

I want to edit the radtreenode on double clicking of the node. How can I achieve that scenario??

thanks
Allen
Princy
Top achievements
Rank 2
 answered on 23 Jan 2013
6 answers
213 views
Hello,

I am using the rad editor to manipulate the html contents on my site, I have added some commands to the rad editor which are shown when use right clicks in the editor area. Problem is that images are not showing see the attached image for details...

Here is my code..

//Create a draft editor tool.
EditorTool SaveDraftTool = new EditorTool();
SaveDraftTool.Text = "Spara utkast";
SaveDraftTool.Name = "SaveDraft" + this.ContentItemId.ToString(); //creating a unique command name so that correct article draft is saved.
SaveDraftTool.ImageUrl = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";
SaveDraftTool.ImageUrlLarge = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";
 
EditorTool DeleteDraftTool = new EditorTool();
DeleteDraftTool.Text = "Redeara utkast";
DeleteDraftTool.Name = "DeleteDraft" + this.ContentItemId.ToString(); //creating a unique command name so that correct article draft is saved.
DeleteDraftTool.ImageUrl = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";
DeleteDraftTool.ImageUrlLarge = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";

Hope this is enough information to figure out the problem... I can provide more information if required!!

Rumen
Telerik team
 answered on 23 Jan 2013
5 answers
371 views
I'm using RadToolbar as CommandItem, and I want to be able to export grid data to Excel by pressing a button on toolbar. I have to mention that grid is ajaxified using RadAjaxManager. I'm having troubles disabling ajax on toolbar button
function onRequestStart(ajaxPanel, eventArgs) {
    if (eventArgs.EventTarget == "ExportToExcel") {
        eventArgs.EnableAjax = false;
    }
as I can't get the button in the toolbar. Can anyone, please, post some working sample code with exporting grid data from toolbar button?
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?