How to make redhtmlfield readonly(non-editable)?

7 posts, 0 answers
  1. Rajat
    Rajat avatar
    3 posts
    Member since:
    Apr 2011

    Posted 06 May 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14459 posts

    Posted 11 May 2011 Link to this post

    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.

  3. Rajat
    Rajat avatar
    4 posts
    Member since:
    Sep 2012

    Posted 24 Sep 2012 Link to this post

    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
  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 24 Sep 2012 Link to this post

    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.
  5. Rajat
    Rajat avatar
    4 posts
    Member since:
    Sep 2012

    Posted 25 Oct 2012 Link to this post

    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
  6. Rajat
    Rajat avatar
    4 posts
    Member since:
    Sep 2012

    Posted 26 Oct 2012 Link to this post

    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
  7. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 30 Oct 2012 Link to this post

    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.
Back to Top