This is a migrated thread and some comments may be shown as answers.

How to make redhtmlfield readonly(non-editable)?

6 Answers 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rajat
Top achievements
Rank 1
Rajat asked on 06 May 2011, 08:37 AM
Hi Telerik Team

I have many Redhtmlfield on same page, and on that page i want to make one of the redhtmlfields to readonly(non-editable)?
Can you provide the support for that? Its urgent.

Thanks and regards

Rajat Jindal

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 May 2011, 11:14 AM
Hi Rajat,

You should get a reference to the RadEditor that you want to disable in the Sys.Application.add_load client event of ASP.NET AJAX and fire the enableEditing and set_editable methods with false argument, e.g.

<script type="text/javascript">
    Sys.Application.add_load(function ()
    {
        var editor = $find("PUT_HERE_THE_CLIENT_ID_OF_RadEditor"); //get a reference to RadEditor's client object
        editor.enableEditing(false);
        editor.set_editable(false);
    }
);
</script>


Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Rajat
Top achievements
Rank 1
answered on 24 Sep 2012, 11:25 AM
Hi Telerik team

I am trying to implement RadDataPager  with Rad Grid but  i am getting the below error:
'No pageable item container was found'

Is it possible to implement RadDataPager  with Rad Grid ?
If it is possible then please provide me demo.


Thanks & Regards!
Rajat Mathur
0
Pavlina
Telerik team
answered on 24 Sep 2012, 01:37 PM

Hello Rajat,

Using RadDataPager with RadGrid is not supported scenario. Keep in mind that RadDataPager can be used with controls, which implement the IPageableItemContainer or IRadPageableItemContainer interface.
Such controls include the RadListView and MS ListView, however, RadGrid does not implement such interfaces.

http://www.telerik.com/help/aspnet-ajax/datapageroverview.html

Greetings,

Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Rajat
Top achievements
Rank 1
answered on 25 Oct 2012, 08:09 AM
Hi Telerik team,

I am using a pager Control on the telerik RadGrid, but when i am clicking  on selected pagenumber in pager second time then it is postback the page again.
For example:
<< 1 2 3 >>
If i click on the page number 1, it's working fine.
when i click again on the page number 1 , then it's postback the page again.
I wanna stop the postback event when i click again on the same page number.
Please suggest how to stop that.  


Thanks & Regards!
Rajat Mathur
0
Rajat
Top achievements
Rank 1
answered on 26 Oct 2012, 05:23 AM
Hi Telerik Team

We are stuck in the midway of our development.
Please provide some solution of the previous post.
your suggestion would be very helpful for us.


Thanks & Regards
Rajat Mathur
0
Pavlina
Telerik team
answered on 30 Oct 2012, 08:33 AM
Hi Rajat ,

You can prevent postback while paging if you ajaxify the grid either wrapping it with an AJAX panel or using an AjaxManager as shown below:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Rajat
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Rajat
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or