Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 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
75 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
47 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
46 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
99 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
44 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
76 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
131 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
5 answers
114 views
Hello All,

I need to have a radeditor set to readonly with a toggle for full screen.  Full screen should also be readonly.
I have a radeditor set to height=100px and editmodes=Preview.  The following works but not in full screen.

**Once I toggle from full screen back, the editor is no longer readonly.

<telerik:RadEditor Skin="Default" ID="RadEditor1" EditModes="Preview" OnClientModeChange="OnClientModeChange" Enabled="true" runat="server" Width="100%" Height="150px" ToolsFile="~/includes/NoTools.xml">
</telerik:RadEditor>

function OnClientModeChange(editor, args) {
                var mode = editor.get_mode();
                switch (mode) {
                    case 1:
                        //alert( "We are in Design mode");
                        //do something
                        break;
                    case 2:
                        //alert("We are in HTML mode");
                        break;
                    case 4:
                        setTimeout(function () {
                            var tool = editor.getToolByName("ToggleScreenMode");
                            tool.setState(0);
                        }, 0);
                        //alert( "We are in Preview mode");
                        //do something
                        break;
                }
            }

Khanh
Top achievements
Rank 1
 answered on 04 Jan 2013
2 answers
89 views
Help.

My boss caught a glimpse of the RadGrid with no skin assigned and liked it, mainly because of the compactness of the display.  On top of that, he wants row borders.

Now I'm trying to customize it and I'm getting nowhere.

It looks to me like having a null skin setting also eliminates the ability to center a radgrid within a div.  (I've been using this to center the grid:  div.RadGrid { margin-left: auto !important; margin-right: auto !important;}.

Is any of this even possible?
Boris
Top achievements
Rank 1
 answered on 04 Jan 2013
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?