Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
112 views
Greetings,

Is it possible to allow only certain rows within a grid to be selectable?  Here is the scenario:  you have a set of users, say 20.  They have a grid that logs comments, which has the ability to add and edit comments (it's EditMode is PopUp).  There is a set of users, primarily webmasters, who can edit anyone's comment, while everyone else can only edit their own comments.  To edit, you must select a record and hit the edit button.  What I want to do is to stop a user from being able to select that record either by stopping them in javascript or not allowing the row to be selectable at all.  Thanks.

Chad
Morten
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 23 Mar 2014
2 answers
126 views
I used the below link for performing a 'select all' using javascript and it worked perfectly.
http://www.telerik.com/forums/highlight-a-word-in-radeditor

However, when trying to do the same for 'Copy', it does not work. There is no error thrown.
'Allow programmatic access to clipboard' has been enabled in IE8 security settings.
Using ToolsFile.xml to define controls.

Note: Clicking the editor's 'copy' button works fine, but I need to fire this programmatically.

Actual Code:

<telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="StartWithPreviewMode"
StripFormattingOnPaste="NoneSupressCleanMessage" EditModes="Design,Preview" ToolsFile="ToolsFile.xml">

<script type="text/javascript">
function PerformCopy() {
var editor = $find("<%=RadEditor1.ClientID%>");
editor.fire("SelectAll");
editor.fire("Copy");    //--> Does not copy anything to clipboard.

function StartWithPreviewMode(editor, args) {
editor.set_mode(4);
}
</script>
Pramod
Top achievements
Rank 1
 answered on 21 Mar 2014
2 answers
597 views
I have followed this code before and for different things I was doing it worked fine.  But in this situation I am stumped on how to tie it all in.  On my radwindow close when I press the x i wna the window to close and then the page to refresh.  I tried calling the close window function inside the pagerefresh but it doe snot work.  I can call one or the other  but not both.  If I just call the pageRefresh it leaves a white space on page before it refreshes and looks tacky, So I figure if I can close it then refresh the page it should looke good.
<telerik:RadWindowManager ID="rwManager" runat="server" CenterIfModal="true" Modal="true" Animation="FlyIn" Behaviors="Close" Skin="Web20"  ReloadOnShow="true" VisibleStatusbar="false" OnClientClose="RefreshParentPage">
              <Windows>
                  <telerik:RadWindow ID="rwdelete" runat="server" NavigateUrl="~/MAC/Delete.aspx" Width="600px" Height="300px" ShowContentDuringLoad="false"></telerik:RadWindow>
                  <telerik:RadWindow ID="rwChange" runat="server" NavigateUrl="~/MAC/Change.aspx" Width="800px" Height="600px" ShowContentDuringLoad="false"></telerik:RadWindow>
                  <telerik:RadWindow ID="rwNew" runat="server" NavigateUrl="~/MAC/NewUser.aspx"></telerik:RadWindow>
              </Windows>
          </telerik:RadWindowManager>
 
 
 
function GetRadWindow() {
           var oWindow = null;
           if (window.radWindow) oWindow = window.radWindow;
           else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
           return oWindow;
       }
 
       function closeWindow() {
           var oWnd = GetRadWindow();
           oWnd.close();
       }
 
       function RefreshParentPage() {
           document.location.reload();
       }






Kevin
Top achievements
Rank 1
 answered on 21 Mar 2014
7 answers
273 views
Hi,

I have a radgrid in which i am using filter functionality,when i enter some text on one of the column and press tab the focus gets lost whereas i want the focus on next radgrid column, i am not able to do so.


Please suggest.


Thanks.
Viktor Tachev
Telerik team
 answered on 21 Mar 2014
12 answers
176 views
How can we enable Adaptive Behavior to a menu.
What version do we need for this to work, I am on 2014.1.225.35?
Issac
Top achievements
Rank 1
Iron
 answered on 21 Mar 2014
1 answer
380 views
Hi, 
I am using RadWindow on an asp.net application using Boostrap for responsive design but the RadWindow is not been responsive when been viewed on different devices. What I need to do to get it responsive on different devices.

Also where are the RadPageLayout demos?
Marin Bratanov
Telerik team
 answered on 21 Mar 2014
4 answers
122 views
i have a document manager and when i insert a document with the editor i want the url to be like http://domain/filelocation/DownloadHandler.ashx?path=../filelocation and name without the extension because the default behaviour dont allow to change url for a file

so when i insert the document it should be like that and not just like filelocation/filename.extension
Troika
Top achievements
Rank 1
 answered on 21 Mar 2014
11 answers
194 views

Hi, i got a problem that during the postback of ajax, the grid height shrink and expend (flicks)
using latest version.

Code as follows

  <telerik:RadAjaxLoadingPanel ID="PnlLoading" runat="server" Height="75px" Width="75px" Transparency="50">  
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /> 
        </telerik:RadAjaxLoadingPanel> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    <AjaxSettings> 
         <telerik:AjaxSetting AjaxControlID = "GridListing">  
           <UpdatedControls> 
             <telerik:AjaxUpdatedControl ControlID ="GridListing" LoadingPanelID="PnlLoading" /> 
           </UpdatedControls>        
         </telerik:AjaxSetting>     
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting>           
    </AjaxSettings> 
    </telerik:RadAjaxManager>    
 
   <table class="style1">  
          <tr> 
              <td align="left" valign="top">  
                  <asp:Label ID="lblSearchNum" runat="server" Text="Search Results (17)"></asp:Label> 
              </td> 
              <td align="left" valign="top" width="550">  
                  <asp:Label ID="Label1" runat="server" Text="Result Map"></asp:Label> 
              </td> 
          </tr> 
          <tr> 
              <td align="left" valign="top" width="300">  
                  <telerik:RadGrid ID="GridListing" runat="server" AllowPaging="True"   
                      AutoGenerateColumns="False" GridLines="None" PageSize="50"   
                      Skin="WebBlue" ShowHeader="False" Width="280px" Height="500px">  
                      <PagerStyle EnableSEOPaging="True" Mode="Slider" /> 
<MasterTableView> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn UniqueName="column" DataField="HRef_no"   
            HeaderText="Reference">  
            <HeaderStyle Width="80px" /> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Latitude" UniqueName="column2"   
            Visible="False">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Longitude" UniqueName="column3"   
            Visible="False">  
        </telerik:GridBoundColumn> 
    </Columns> 
</MasterTableView> 
                      <ClientSettings enablepostbackonrowclick="True" enablerowhoverstyle="True">  
                          <Selecting AllowRowSelect="True" /> 
                          <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                      </ClientSettings> 
                  </telerik:RadGrid> 
              </td> 
              <td align="left" valign="top" width="550">  
              </td> 
          </tr> 
      </table> 
Bibhudutta
Top achievements
Rank 1
 answered on 21 Mar 2014
1 answer
121 views
Hi, we have an application in which we are using rad grid. We are using .NET 4.0 framework, AJAX Toolkit version - 3.0 and Telerik version - 2013.3.1114.40. We are facing a peculiar problem with grid height. At first our grids were not filling up the entire window, so we took the suggestion from here 

http://www.telerik.com/support/code-library/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers

and modified the grid. Everything worked fine and the grids resized properly and fitted the window perfectly on initial load. But we found out that after any AJAX operation in the grid(such as new row addition or edit or save or cancel) the grid height shrinked after the load. We searched and found out that this, is a problem with MS AJAX itself. As mentioned over here 

http://www.telerik.com/forums/grid-height-between-ajax-postback#7bKm9CY-u0K3Ymwwa978wg

But when we applied the solution, as mentioned in the above thread that is this :

           
Sys._ScriptLoader.getInstance()._loadScriptsInternal = function () {
      
if (this._scriptsToLoad && this._scriptsToLoad.length > 0) {
         
var nextScript = Array.dequeue(this._scriptsToLoad);
         
var scriptElement = this._createScriptElement(nextScript);
         
if (scriptElement.text && Sys.Browser.agent === Sys.Browser.Safari) {
            scriptElementscriptElement.innerHTML = scriptElement.text;
            
delete scriptElement.text;
         }
         
if (typeof (nextScript.src) === "string") {
            
this._currentTask = new Sys._ScriptLoaderTask(scriptElement, this._scriptLoadedDelegate);                         this._currentTask.execute();
         }
         
else {
            document.getElementsByTagName(
'head')[0].appendChild(scriptElement);                                             Sys._ScriptLoader._clearScript(scriptElement);
            
this._loadScriptsInternal();
         }
      }
      else {
          
var callback = this._allScriptsLoadedCallback;
          
this._stopLoading();
          
if (callback) {
             callback(
this);
          }
     }
}

But it does not work out and throws an error at the line 
this._stopLoading();

The aps.net web blog says that they have fixed this in the .NET 3.5 framework release itself, but its still comming. Can anybody help me on this ?
Bibhudutta
Top achievements
Rank 1
 answered on 21 Mar 2014
2 answers
26 views
Hello,

RadDataPager was working properly until we upgrated our project to Silverlight 5.
Last page button is not firing.

I attached an example regarding this issue.

Telerik.Windows.Controls                              
Telerik.Windows.Controls.Charting                     
Telerik.Windows.Controls.Data                         
Telerik.Windows.Controls.GridView                     
Telerik.Windows.Controls.Input                        
Telerik.Windows.Controls.Navigation
Telerik.Windows.Data 

Version : 2014.1.224.1050 are used in the demo.
I would be glad if you help me.

Hincal
Top achievements
Rank 1
 answered on 21 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?