Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
367 views
Hi all,

I have implemented a simple RadEditor on the page, where I want to display the contents within the RadEditor and a Print button on the top, to print the contents. I want to disable the content area specifically, so that users cannot make any changes to the populated text, but can still print. 
Here is the code:

<telerik:RadEditor ID="red1" runat="server" EnableResize="false" Width="100%" EditModes="Design" AutoResizeHeight="true" EmptyMessage="No notes">
<Tools>
    <telerik:EditorToolGroup>
        <telerik:EditorTool Name="Print" />
    </telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>

If I change the EditModes to Preview, then the Print toolbar button gets disabled as well, which I dont want. 
Rumen
Telerik team
 answered on 16 Aug 2013
1 answer
71 views
Hi ,

I have a grid with 40 columns and I need to filter the data

My requirement is Suppose I have Id Column and when I enter 2,3,4 in the ID Filtering Column, I need to get the records with all the ID's 2,3,4 .Is it possible in Telerik.
Eyup
Telerik team
 answered on 16 Aug 2013
2 answers
149 views
I am working with the following sample project.

http://www.telerik.com/community/code-library/aspnet-ajax/grid/excel-look-and-feel-for-radgrid.aspx#tForumTop

I am receiving the following errors in the stack trace. I am using the code directly within a User Control. Any help would be great.

[NullReferenceException: Object reference not set to an instance of an object.]
   dsCloud.UserControls.SpreadSheetSample.get_GridSource() +497
   dsCloud.UserControls.SpreadSheetSample.RadGrid1_NeedDataSource(Object source, GridNeedDataSourceEventArgs e) +16
   Telerik.Web.UI.RadGrid.OnNeedDataSource(GridNeedDataSourceEventArgs e) +190
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +108
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +253
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3177
Angel Petrov
Telerik team
 answered on 16 Aug 2013
3 answers
121 views
Hi there,

I use a system that makes use of the Telerik RadCalendar control. I do not have access to modify the function called on OnPopUpOpening, and it contains an error that breaks in non-IE. I was wondering if there is a way i can change the function call at runtime through javascript?

Regards,

Jack
Vasil
Telerik team
 answered on 16 Aug 2013
1 answer
99 views
Hi ,

I am having Update panels in my application, and our requirement is to develop AjaxLoadingPanel instead of update progress.
But while doing with AjaxLoadingPanel, the controls inside update panel are not updating with data.
Please help me.

Thanks,
Eyup
Telerik team
 answered on 16 Aug 2013
1 answer
109 views
Hi,

I need to be able to create a graph that has multi level category grouping (see attached picture).  Is it possible to do it with Telerik?

Rosko
Telerik team
 answered on 16 Aug 2013
1 answer
109 views
Hi,

i'm using org chart control to build employee hierarchy.
one of our web application contains search page with asp.ne text box where users will search others hierarchy by last name.
i'm using JQUERY auto complete to populate employee last names from sql table 
i created a new file with name search.js and pasted below code 

my search page contains below telerik controls
 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 <telerik:RadOrgChart ID="RadOrgChart1" >
 <telerik:RadListBox ID="RadListBox1">
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
 
---------------------------------------------------------- search.js file code-----------------
var searchbutton;
jQuery(document).ready(function() {
    searchbutton = jQuery('[id$="_tbAuto"]');
    $(searchbutton).watermark('Type Last Name', { useNative: false, className: 'innercolor' });
});



$(function () {
    $(".tb").autocomplete({
        source: function (request, response) {
            $.ajax({
                url: "EmployeeList.asmx/GetEmployeeInfo",
                data: "{ 'mail': '" + request.term + "' }",
                dataType: "json",
                type: "POST",
                contentType: "application/json; charset=utf-8",
                dataFilter: function (data) { return data; },
                success: function (data) {
                    response($.map(data.d, function (item) {
                        return {
                            value: item.EmployeeLastName
                        }
                    }))
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert("There was a search error please contact admin");
                }
            });
        },
        minLength: 2
    });
});
Peter Filipov
Telerik team
 answered on 16 Aug 2013
2 answers
219 views
Hi,

I have a form which contains a few TextBoxes with RequiredFieldValidators and serveral UserControls each containing RadGrid's, inside each UserControl I am using the following to ajaxify

<telerik:RadAjaxManagerProxy runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Grid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="server" />

The problem is, everytime I do a postback in any of the RadGrid's, the RequiredFieldValidator messages are duplicated.

I've read elsewhere that I need to add the ValidationSummary as an UpdatedControl to what is causing the problem but this does not work in this case as the ValidationSummary is in the page, the Grid is in a UserControl

Any ideas?
Angel Petrov
Telerik team
 answered on 16 Aug 2013
1 answer
299 views
Hi All,

I have a rad grid in my page. I need to provide filter option for 4 columns. we need only "EqualTo" filter.

What i need is that, filter button should show in the header. And will clicking on the button, the options should not show. While clicking on the button, the grid should filter for "EqualTo" filter function.

The code we have wrritten given below. But its showing the filter menu. Please help.
Thanks in advance.

<telerik:GridTemplateColumn UniqueName="Column1" SortExpression="Column1" 
    HeaderStyle-ForeColor=
"#245E9E" HeaderText="Column 1" ItemStyle-Wrap="true" Resizable="true"
    AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" DataField="Column1"
    FilterImageUrl="_layouts/Images/CoreSystem.LayoutsApp/filter.png">
     <ItemTemplate>
         <asp:Label ID=
"LblColumn1" Text='<%#Eval("Column1")%>' runat="server"></asp:Label>
     </ItemTemplate>
     <HeaderStyle Width=
"280px" />
     <ItemStyle Font-Names=
"Arial" Font-Size="11px" Wrap="true" />
    </telerik:GridTemplateColumn>

Andrey
Telerik team
 answered on 16 Aug 2013
1 answer
115 views
Hi there ,
I have a page with client side code only.
On a button click (using javascript) I want to check if inputs are valid , and if so , execute the javascript (in my case , changing tab on form)
How can I do it?

<asp:TextBox ID="tbFirstName" runat="server" Font-Size="1em" style="width: 150px;" ></asp:TextBox>
 
<telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Office2007" >
     <telerik:TextBoxSetting BehaviorID="TextBoxBehavior1" EmptyMessage=""  Validation-IsRequired="true" >
         <TargetControls>
             <telerik:TargetInput ControlID="tbFirstName" />
         </TargetControls>
         <ClientEvents OnValidating="onValidating" />
     </telerik:TextBoxSetting>       
</telerik:RadInputManager>

And this is the javascript I want to run in case the input is valid (while clicking on button)

function GeneralContinue() {
    tabStrip = $find('RadTabStrip1');
    tabStrip.findTabByValue('General').select();
}
Shinu
Top achievements
Rank 2
 answered on 16 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?