Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
Hi All

please see attached picture first

I Have 3 questions

1. How can I add Add new record button for Insert like sample
    How change text of it ?

2. How can I change text of Edit ? (telerik:GridEditCommandColumn)

3. How can I have Refresh button like sample ?
    How change text of it ?


Princy
Top achievements
Rank 2
 answered on 24 Mar 2014
3 answers
197 views
I have a grid where users can open the rows in edit mode to perform updates, and they can also select the rows and perform actions on those selected rows.  The problem is that a row in edit mode appears to be seen as selected by default from what I am seeing. 

Therefore, if my application wants to perform certain actions on selected rows and there are rows in edit mode at the same time, it will apply those actions to the rows in edit mode as well.  Since I can't seem to find a way to seelct rows in edit mode and have them show in the grid as selected, how do you get around this?  it's possible the user may want to select both rows in edit mode and rows not in edit mode at the same time and apply actions to both.

Is there any way to visually select a row in edit mode?

Thanks
Morten
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 23 Mar 2014
4 answers
147 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
151 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
764 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
304 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
226 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
412 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
142 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
238 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?