Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
346 views
Hi, in the attached image I'm seeing a thin gray line that I can't remove from the bottom of the every other row.  I tried removing it by overriding the following styles I saw in the source since I thought it was part of the rgAltRow class but I had no luck

.rgAltRow .rgRow

 background-image: none !important; 
 border-style:none !important;
}

Any help would be appreciated.  I probably find these type of css formatting issues the most difficult to deal with regarding telerik controls since I'm not sure what I need to override.

Thanks, Dave
Princy
Top achievements
Rank 2
 answered on 05 Jan 2013
2 answers
190 views
I have a RadGrid with two columns. One of them is a GridMaskedColumn, but I want it to let the user write letters in uppercase and spaces. Actually, my mask is "LLLLLLLLLLLLLLLLLLL", but this does not allow spaces in the input.

Is there any way to create this? I have done a custom RadMaskedTextBox, but that approach doesn't work in the Grid.
Code:

    <telerik:RadMaskedTextBox ID="RadMaskedTextBox8" runat="server" style="text-transform:uppercase;" Mask="aaaaaaaaaaaaaaaaaaaaaaa" >        
<
ClientEvents  OnKeyPress="keyPressMask"/>    
      </
telerik:RadMaskedTextBox><br>

        function keyPressMask(sender, args){           
if (!(args.get_keyCharacter() == "A" || args.get_keyCharacter() == "B" || args.get_keyCharacter() == "C" || args.get_keyCharacter() == "D" ||           
args.get_keyCharacter() ==
"E" || args.get_keyCharacter() == "F" || args.get_keyCharacter() == "G" || args.get_keyCharacter() == "H" ||           
args.get_keyCharacter() ==
"I" || args.get_keyCharacter() == "J" || args.get_keyCharacter() == "K" || args.get_keyCharacter() == "L" ||            
args.get_keyCharacter() ==
"M" || args.get_keyCharacter() == "N" || args.get_keyCharacter() == "O" || args.get_keyCharacter() == "P" ||           
args.get_keyCharacter() ==
"Q" || args.get_keyCharacter() == "R" || args.get_keyCharacter() == "S" || args.get_keyCharacter() == "T" ||            
args.get_keyCharacter() ==
"U" || args.get_keyCharacter() == "V" || args.get_keyCharacter() == "W" || args.get_keyCharacter() == "X" ||            
args.get_keyCharacter() ==
"Y" || args.get_keyCharacter() == "Z" || args.get_keyCharacter() == " " || args.get_keyCharacter() == "a" ||            
args.get_keyCharacter() ==
"b" || args.get_keyCharacter() == "c" || args.get_keyCharacter() == "d" || args.get_keyCharacter() == "e" ||            
args.get_keyCharacter() ==
"f" || args.get_keyCharacter() == "g" || args.get_keyCharacter() == "h" || args.get_keyCharacter() == "i" ||            
args.get_keyCharacter() ==
"j" || args.get_keyCharacter() == "k" || args.get_keyCharacter() == "l" || args.get_keyCharacter() == "m" ||            
args.get_keyCharacter() ==
"n" || args.get_keyCharacter() == "o" || args.get_keyCharacter() == "p" || args.get_keyCharacter() == "q" ||            
args.get_keyCharacter() ==
"r" || args.get_keyCharacter() == "s" || args.get_keyCharacter() == "t" || args.get_keyCharacter() == "u" ||            
args.get_keyCharacter() ==
"v" || args.get_keyCharacter() == "w" || args.get_keyCharacter() == "x" || args.get_keyCharacter() == "y" ||            
args.get_keyCharacter() ==
"z"))
{                
args.set_cancel(
true);                
var eventArgs = new Telerik.Web.UI.InputErrorEventArgs(
                     Telerik.Web.UI.InputErrorReason.ParseError,                    
sender.get_textBoxValue(),                    
args.get_keyCode(),                    
args.get_keyCharacter()                    
);                
sender.raise_error(eventArgs);            
}        
}

I know the above code is brute force, but it works for me. But the key press event on the grid doesnt work properly.

I've tried to set a GridTemplateColumn and adding the RadMaskedTextbox, but the datasource data doesn't show

Is there any way to create a custom mask, let's say, "MMMMMMMMMMMMMMM", where M means uppercase letters AND spaces?
David
Top achievements
Rank 1
 answered on 04 Jan 2013
1 answer
96 views
I have some ASP buttons inside a RadWindow Content Template that are behaving strangely. The first time a button is clicked, no postback occurs, but any javascript that I have set to run on the client click event does run. However, a postback does occur after every subsequent click. Currently, VisibleOnPageLoad is false, but if I set VisibleOnPageLoad to true, the buttons post back every time. I cannot see any javascript errors in the error console of any browser when I click the button for the first time. What is happening?

The buttons in question are btnPrintPrivacyPolicy and btnContinue. The button btnCancel is a javascript-only button, so it isn't expected to postback.

<telerik:RadCodeBlock ID="rsbCodeBlock" runat="server">
    <script type="text/javascript">
        function validate() {
            var validationResult = Page_ClientValidate("ConsumerCreditApplication");
            if (validationResult && $get("tblCoapplicant").style.display != "none") {
                validationResult = (validationResult && Page_ClientValidate("ConsumerCreditCoapplication"));
            } // end if
 
            if (validationResult) {
                this.disabled = "disabled";
            } // end if
 
            return validationResult;
        } // end validate()
 
        function showPrivacyPolicy(show) {
            var wndPrivacyPolicy = $find('<%=wndPrivacyPolicy.ClientID %>');
            if (show) {
                wndPrivacyPolicy.show();
            } else {
                wndPrivacyPolicy.close();
            } // end else
        } // end showPrivacyPolicy()
    </script>
</telerik:RadCodeBlock>
 
<asp:Button ID="btnSubmit" runat="server" Text="Submit"
            OnClientClick="if (validate()) { showPrivacyPolicy(true); } return false;" />
 
<telerik:RadWindow ID="wndPrivacyPolicy" runat="server" AutoSize="true" VisibleOnPageLoad="false" Behaviors="Close" VisibleStatusbar="false" Title="Privacy Policy" Modal="true" MinWidth="800" MinHeight="600">
    <ContentTemplate>
        <div id="divPrivacyPolicy" runat="server"><span>test</span></div>
        <div style="text-align: right; padding: 3px;">
            <asp:Button ID="btnPrintPrivacyPolicy" runat="server" Text="Print" UseSubmitBehavior="false" CausesValidation="false"
                OnClick="btnPrintPrivacyPolicy_Click" />
            <asp:Button ID="btnContinue" runat="server" Text="Continue"
                OnClientClick="if (!validate()) { return false; }"
                OnClick="btnContinue_Click" />
            <asp:Button ID="btnCancel" runat="server" Text="Cancel"
                OnClientClick="showPrivacyPolicy(false); return false;" />
        </div>
    </ContentTemplate>
</telerik:RadWindow>
Josh
Top achievements
Rank 1
 answered on 04 Jan 2013
1 answer
85 views

We are using windows8 r2 , IIS7.5 and web site is configured to use classic mode instead of Integrated mode. We have issues with Page methods failing when we use RadCompression in HttpModules. But the same setup works fine with integrated mode.

Here is the error message:

HTTP Post used to access the path "webform1.aspx\PageMethodTest" is not allowed.

Page methods are working fine when we remove the RadCompression from the web.config.
Any help how to resolve this issue with using RadCompression in classic mode ?
web.config  -

 

    <httpModules>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>

 <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </modules>

 

Martin
Telerik team
 answered on 04 Jan 2013
1 answer
58 views
Hi,
i'm using  Auto-generated Edit Form to insert record to the data base.I have 20 text boxes to insert data.Now all the text boxes are display in one column (after one by one).I want to display this tetboxes using two columns.(Something like colspan 2). How can i do this ?.
Elliott
Top achievements
Rank 2
 answered on 04 Jan 2013
3 answers
67 views
I have a problem.  The problem isn't what I can't do, it's what I can do, with RadEditor.

I have a RadEditor running in the FormTemplate Popup of a RadGrid.  The application itself is an ASP.Net C# 4.0 web app running a relatively recent version of Telerik (2012.2.607).  The Editor itself is bound to a varchar(max) field in a SQL database through LinqToSQL.

The problem (if it a problem) is this.  Way back when, when I was first starting this project, I could have sworn that the ability to paste images from the clipboard into a RadEditor in Firefox (and only FireFox) was a fluke and a curiosity, since it was impossible to do it in IE or Chrome.  Furthermore I could have sworn I tested the ability of my program to save same images and I thought it had failed.

I've just retested my app and it appears not only can I save graphic images pasted into the RadEditor while running in FireFox, I can view them in IE and Chrome.  I've tested this running my app both on my local machine and on a server.

So I suppose my question is, is this still just a fluke or can I expect in the near future the ability to paste and save in IE and Chrome?  Is this intentional on the part of Telerik or more a matter of browser technology?
Rumen
Telerik team
 answered on 04 Jan 2013
1 answer
102 views
I have a radgrid that auto generates its columns from a data table. I need to allow the user to enter a value in a textbox and search all columns of the grid for matches. I have the filter working for every column of the table that is pure text. The problem occurs with the date assigned column since it is not pure text but a datetime column.

The current Filter expression is:
WorkPackageGrid.MasterTableView.FilterExpression = "(([Title] LIKE \'%" + OtherFilter.Text + "%\')OR([Number] LIKE \'%" + OtherFilter.Text + "%\')OR([Status] LIKE \'%" + OtherFilter.Text + "%\')OR([ApprovalStatus] LIKE \'" + OtherFilter.Text + "\')OR([ScopeName] LIKE \'%" + OtherFilter.Text + "%\'))"

Is there a way to filter the datetime column based on the cells text value so all i need to add is "OR([DateAssigned] LIKE \'%" + OtherFilter.Text + "%\')" or convert the column to a pure text value so the same line would work?
Matthew
Top achievements
Rank 1
 answered on 04 Jan 2013
0 answers
48 views
Hi, 

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx

In the above example when we click on the edit button it opens the form below the item. Can we open that item on the top instead of below the item??


Thanks,
Nimmy
Nirmala
Top achievements
Rank 1
 asked on 04 Jan 2013
0 answers
82 views
Hello sir,
We are using the telrik controls in our company.
Our client using the Apache server .
On Apache server lots of Rad control are not working.
so can you please provide us the proper solution for our issue it is an urgent problem

Regards
Amit
Amit
Top achievements
Rank 1
 asked on 04 Jan 2013
2 answers
141 views
Hello,

I want to make a csv export of my RadGrid (see below). My grid is in a RadAjaxPanel with RadAjaxLoadingPanel.
I first tried with the export button in the command area of the grid, but when I clicked on the button, I saw the loading panel but no popup appeared to make me choose the filename.

I tried  with a personal export button to be sure to call the export function in the code behind (see below), but I have the same behaviour: no popup.

Someone could say me what I forgot ?

Thanks by advance
Regards
Damien


<telerik:RadGrid ID="RadGrid1" runat="server"
                                                    AllowSorting="true"
                                                    ShowGroupPanel="true"
                                                     
                                                    GridLines="Both"
                                                  
                                                    ItemStyle-CssClass="RowStyle"
                                                    AlternatingItemStyle-CssClass="AlternatingRowStyle"
                                                    HeaderStyle-CssClass="HeaderStyle"
                                                    SelectedItemStyle-CssClass="SelectedRowStyle"
 
                                                    ClientSettings-Selecting-AllowRowSelect="true"
                                                    ClientSettings-Resizing-AllowColumnResize="true"
                                                    ClientSettings-Resizing-AllowRowResize="true"
                                                    ClientSettings-Scrolling-AllowScroll="true"
                                                    ClientSettings-Scrolling-UseStaticHeaders="true"
                                                    ClientSettings-Scrolling-FrozenColumnsCount="1"
                                                    ClientSettings-Scrolling-SaveScrollPosition="true"
                                                    ClientSettings-AllowColumnsReorder="true"
                                                    MasterTableView-AllowMultiColumnSorting="true"
                                                    ClientSettings-ClientEvents-OnGridCreated="GridCreated"
                                                    SortingSettings-SortedBackColor="Beige"
                                                    SortingSettings-EnableSkinSortStyles="false"
                                                    SortingSettings-SortToolTip="tri">
 
                                        <ClientSettings AllowDragToGroup="true" />
                                        <GroupingSettings ShowUnGroupButton="true" />
                                        <ExportSettings IgnorePaging="true" >
                                            <Csv ColumnDelimiter="Semicolon" EncloseDataWithQuotes="true" />
                                        </ExportSettings>
 
                                    </telerik:RadGrid>
                                  
 
                                    <asp:Button ID="btnExportCVS" runat="server" Text="Export" CssClass="CTAButton" Enabled="true" OnClick="btnExportCVS_OnClick"></asp:Button>

protected void btnExportCVS_OnClick(object sender, EventArgs e)
{
    this.RadGrid1.MasterTableView.ExportToCSV();
}
Damien
Top achievements
Rank 1
 answered on 04 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?