Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
Hi i have this validation


<asp:TextBox runat="server" ID="txbcantidad" CssClass="borde_txb" Width="45"></asp:TextBox>
<asp:RegularExpressionValidator
EnableClientScript="true"
SetFocusOnError="true"
ID="Regtxbcantidad"
Display="None"
ValidationGroup="valaccion_paso3_tab2"
runat="server"
ControlToValidate="txbcantidad"
ErrorMessage="Debe digitar números en el campo, sin caractéres especiales ni letras." ValidationExpression="^[0-9]*$">
</asp:RegularExpressionValidator>
<cc1:ValidatorCallOutExtender
CssClass="valtooltip"
PopupPosition="TopLeft"
WarningIconImageUrl="~/admin/img_alcalist/ico_alerta_val.gif"
CloseImageUrl="~/admin/img_alcalist/ico_cerrar_val.gif"
ID="Valtxbcantidad"
runat="server"
TargetControlID="Regtxbcantidad"
HighlightCssClass="campofallido" />

the textbox txbcantidad is in radgrid, this is the radbutton that activate the validation

 <telerik:RadButton ID="btnaccion2_paso3_tab2" runat="server" Skin="Office2010Blue" CssClass="txt11000" Text="Guardar Cambios" ValidationGroup="valaccion_paso3_tab2" CommandArgument="guardarref" OnCommand="realizaraccion"></telerik:RadButton>

my problem is that even if validation is enabled in the click event, the button causes postback and gets an error.

normal in this situation is that if the validation is enabled the button doesn't postback, how i fix this?

note that this controls are in a file ".ascx", which is called in a page ".aspx" that have one update panel. maybe this helps.

thanks.
Slav
Telerik team
 answered on 03 Jul 2012
6 answers
84 views
Hi,

I tried using the scheduler of the latest build version. Everything was fine, but now I'm caught in a strange behaviour of the reminder popup. First I suspected my own code, but then I tried the live demo and found the same problem.

http://demos.telerik.com/aspnet-ajax/scheduler/examples/reminders/defaultcs.aspx

The problem is not existent im my Firefox and latest Opera. It just appears when I'm using IE 8 or 9. I did not try IE7 or lower.

Problem (IE 8 or 9):
When the reminder poped up, I choosed to be notified again in (e.g.) 4 hours. After clicking 'snooze' the dialog vanished. Now I did something else that caused a postback, e.g. clicking on week view. After a few seconds the reminder poped up again. I tried it many times with different remind intervalls, but every time it was ignored and poped up after postbacks within seconds.

I checked the cookies and noticed that the cookie were stored, so no cookie blocking was active. Of course I also tried 'allow every cookie', but with no success.

As I didn't find anyone else facing the same problem, I suspect myself to miss something. Every hint would be very appreciated.

Kind regards
Oliver
Peter
Telerik team
 answered on 03 Jul 2012
0 answers
216 views
I am doing a task Master-Detail, for this I have taken two grids where I will initially bind a grid view at this point I would like to select the first row and display the corresponding details in the second grid view. Like that when I select the later I would like to bind the corresponding details.

Sample data in my database

Table1

EmpID  FedID
   1        1234
   2         6546

Table2 

EmpID  Name

   1        ABCD
   2         EFGH


Initially I would like to load the first record details in the second grid view and show .

Means on Initial page load I will show the Table1 data in gridview1 immediately I would like to show the second grid view as follows

EmpID    Name
  1           ABCD

I would like to achieve this from server side code

This is the one I would like to achieve http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx 
from server side code



Dorababu
Top achievements
Rank 1
 asked on 03 Jul 2012
1 answer
395 views
Hi all i have designed a ModalPopupExtender with some controls in that rad drop down exists. But when I select on the drop down I am unable to view the items can some one help me

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="modal.aspx.cs" Inherits="modal" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <link href="StyleSheet2.css" rel="stylesheet" type="text/css" />
    <link href="TabStrip.WebBlue.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function ok(sender, e) {
            $find('<%# mpeModalPopUp.ClientID %>').hide();
            __doPostBack('btnModalPopUp', e);
        }
        function cancel(sender, e) {
            $find('<%# mpeModalPopUp.ClientID %>').hide();
        }
        function pageLoad(sender, args) {
            //Note that the OnKeyPress event handler will not work unless you register it with the Microsoft AJAX     //Library. The best place to run this registration code is the pageLoad function, like so:
            $addHandler(document, "keydown", onKeyDown);
        }
        function onKeyDown(args) {
            //Closing the Popup Using the Esc Key
            if (args.keyCode == Sys.UI.Key.esc) {
                $find('<%# mpeModalPopUp.ClientID%>').hide();
            }
            if (args.keyCode == Sys.UI.Key.enter) {
                $find('<%# mpeModalPopUp.ClientID%>').hide();
            }
        }
    </script>
    <script type="text/javascript">
        function closepopup1() {
            $find('<%# mpeModalPopUp.ClientID %>').hide();
 
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="script" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:ModalPopupExtender ID="mpeModalPopUp" runat="server" TargetControlID="btnModalPopUp"
            PopupControlID="pnlNoPayroll" CancelControlID="ImgOk" BackgroundCssClass="modalBackground">
        </asp:ModalPopupExtender>
        <div class="text" style="background-color: #ffffff">
            <ul class="formList" id="pWHolding">
                <asp:Button ID="btnModalPopUp" runat="server" Style="display: none" />
                <asp:Panel ID="pnlNoPayroll" runat="server" BackColor="White" Height="500px" Width="300px"
                    Style="display: none">
                    <table width="100%" style="border: Solid 2px #999; width: 100%; height: 100%" cellpadding="0"
                        cellspacing="0">
                        <tr style="background-image: url(Images/title.gif)">
                            <td style="height: 10%; color: Black; padding: 2px; font-size: larger; font-family: Calibri"
                                align="center">
                                Information
                            </td>
                            <td style="color: White; font-weight: bold; padding: 3px; font-size: larger" align="right">
                                <a href="javascript:void(0)" onclick="closepopup1()">
                                    <img src="Images/x.png" style="border: 0px" align="right" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div class="text" style="background-color: #ffffff">
                                    <ul class="formList" id="Ul1">
                                        <asp:UpdatePanel ID="upWith" runat="server">
                                            <ContentTemplate>
                                                <asp:Panel ID="pnlpopWithHolding" runat="server">
                                                    <li>
                                                        <asp:Label ID="lblwhpopTaxAuthority1" AssociatedControlID="rdwhpopTaxAuthority1"
                                                            runat="server" Text="Tax Authority" Width="200px"></asp:Label>
                                                        <asp:DropDownList ID="rdwhpopTaxAuthority1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rdwhpopTaxAuthority1_SelectedIndexChanged">
                                                            <asp:ListItem Text="1" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="2" Value="2"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </li>
                                                    <li>
                                                        <asp:Label ID="lblpopwhMaritalStatus1" AssociatedControlID="rdwhpopMartialStatus1"
                                                            runat="server" Text="Marital Status" Width="200px"></asp:Label>
                                                        <telerik:RadComboBox ID="rdwhpopMartialStatus1" Width="200px" runat="server" AutoPostBack="true"
                                                            OnSelectedIndexChanged="rdwhpopMartialStatus1_SelectedIndexChanged">
                                                        </telerik:RadComboBox>
                                                    </li>
                                                    <li><b>Allowances</b> </li>
                                                    <asp:Panel runat="server" ID="pnlpopAllowance" Visible="false">
                                                        <li>
                                                            <asp:Label ID="lblpopAllowances" AssociatedControlID="rdwhpopAllowances" runat="server"
                                                                Text="Allowance" Width="200px"></asp:Label>
                                                            <telerik:RadNumericTextBox ID="rdwhpopAllowances" NumberFormat-GroupSeparator=""
                                                                Width="200px" runat="server" Type="Number" IncrementSettings-InterceptMouseWheel="false"
                                                                IncrementSettings-InterceptArrowKeys="false">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox
                                                            <asp:RequiredFieldValidator ID="rqrdpopAllowances" runat="server" ControlToValidate="rdwhpopAllowances"
                                                                ErrorMessage="Required Allowances" CssClass="error" ValidationGroup="vgPop">
                                                            </asp:RequiredFieldValidator>
                                                        </li>
                                                    </asp:Panel>
                                                    <asp:Panel runat="server" ID="pnlpopPersonal" Visible="false">
                                                        <li>
                                                            <asp:Label ID="lblwhpopTaxAllowances1" AssociatedControlID="rdwhpoptxtAllowances2"
                                                                runat="server" Text="Personal Allowances" Width="200px"></asp:Label>
                                                            <telerik:RadTextBox ID="rdwhpoptxtAllowances2" runat="server" Width="200px">
                                                            </telerik:RadTextBox>
                                                            <telerik:RadNumericTextBox ID="rdwhpoptxtAllowances1" NumberFormat-GroupSeparator=""
                                                                IncrementSettings-InterceptMouseWheel="false" IncrementSettings-InterceptArrowKeys="false"
                                                                Width="200px" runat="server" Type="Number">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox
                                                            <asp:RequiredFieldValidator ID="rqrdpopwhAllowances1" runat="server" ControlToValidate="rdwhpoptxtAllowances1"
                                                                ErrorMessage="Required perosnal Allowances" CssClass="error" ValidationGroup="vgPop">
                                                            </asp:RequiredFieldValidator>
                                                        </li>
                                                    </asp:Panel>
                                                    <asp:Panel runat="server" ID="pnlpopDependent" Visible="false">
                                                        <li>
                                                            <asp:Label ID="lblwhpopDependentAllowances" AssociatedControlID="rdwhpoptxtdepAllowances"
                                                                runat="server" Text="Dependent Allowances" Width="200px"></asp:Label>
                                                            <telerik:RadNumericTextBox ID="rdwhpoptxtdepAllowances" NumberFormat-GroupSeparator=""
                                                                Width="200px" runat="server" Type="Number" IncrementSettings-InterceptMouseWheel="false"
                                                                IncrementSettings-InterceptArrowKeys="false">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox
                                                            <asp:RequiredFieldValidator ID="rqrdwhpopdepAllowance" runat="server" ControlToValidate="rdwhpoptxtdepAllowances"
                                                                ErrorMessage="Required dependent Allowances" CssClass="error" ValidationGroup="vgPop">
                                                            </asp:RequiredFieldValidator>
                                                        </li>
                                                    </asp:Panel>
                                                    <asp:Panel ID="pnlpopAddallowance" runat="server" Visible="false">
                                                        <asp:Label ID="lblAddAllowances" AssociatedControlID="rdtxtpopAdditional" runat="server"
                                                            Text="Additional Allowances" Width="200px"></asp:Label>
                                                        <telerik:RadNumericTextBox ID="rdtxtpopAdditional" NumberFormat-GroupSeparator=""
                                                            Width="200px" runat="server" Type="Number" IncrementSettings-InterceptMouseWheel="false"
                                                            IncrementSettings-InterceptArrowKeys="false">
                                                            <NumberFormat DecimalDigits="0" />
                                                        </telerik:RadNumericTextBox>
                                                    </asp:Panel>
                                                    <asp:Panel runat="server" ID="pnlpopAddWH" Visible="false">
                                                        <li>
                                                            <asp:Label ID="lblpopwhAddWH1" AssociatedControlID="rdwhpoptxtadditionalWH1" runat="server"
                                                                Text="Additional Withholdings" Width="200px"></asp:Label>
                                                            <telerik:RadNumericTextBox ID="rdwhpoptxtadditionalWH1" NumberFormat-GroupSeparator=""
                                                                Type="Number" Width="200px" runat="server" IncrementSettings-InterceptMouseWheel="false"
                                                                IncrementSettings-InterceptArrowKeys="false">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox>
                                                        </li>
                                                    </asp:Panel>
                                                    <li>
                                                        <asp:Label ID="lblwhpopExIS" runat="server" Text="Exemption Indicator Status" Width="200px"
                                                            AssociatedControlID="chkpopwhIS">
                                                        </asp:Label>
                                                        <asp:CheckBox ID="chkpopwhIS" runat="server" />
                                                    </li>
                                                    <li>
                                                        <asp:Label ID="lblwhpopEIC" runat="server" Text="Earned Income Credit" AssociatedControlID="chkpopwhEIC"
                                                            Width="200px">
                                                        </asp:Label>
                                                        <asp:CheckBox ID="chkpopwhEIC" runat="server" />
                                                    </li>
                                                    <asp:Panel ID="pnlpopCompensation" runat="server" Visible="true">
                                                        <asp:Label ID="lblpopCompensationRate" AssociatedControlID="rdpopcmbCompensation"
                                                            runat="server" Width="200px" Text="Compensation Rate"></asp:Label>
                                                        <telerik:RadComboBox ID="rdpopcmbCompensation" runat="server" HighlightTemplatedItems="true">
                                                            <Items>
                                                                <telerik:RadComboBoxItem Text="0.008" />
                                                                <telerik:RadComboBoxItem Text="0.013" />
                                                                <telerik:RadComboBoxItem Text="0.018" />
                                                                <telerik:RadComboBoxItem Text="0.027" />
                                                                <telerik:RadComboBoxItem Text="0.036" />
                                                                <telerik:RadComboBoxItem Text="0.046" />
                                                                <telerik:RadComboBoxItem Text="0.051" />
                                                            </Items>
                                                        </telerik:RadComboBox>
                                                    </asp:Panel>
                                                </asp:Panel>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                        <br />
                                        <table style="margin-left: 50px;">
                                            <tr>
                                                <td>
                                                    <telerik:RadButton ID="rdbtnwhSave" runat="server" Text="Save & Next" ValidationGroup="vgPop"
                                                        OnClick="rdbtnclick">
                                                    </telerik:RadButton>
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" style="padding-left: 15px">
                                                    <asp:ImageButton ID="ImgOk" CssClass="Selected" runat="server" ImageUrl="~/images/button_ok.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </ul>
        </div>
    </div>
    </form>
</body>
</html>

My code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class modal : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //rdpopcmbCompensation.DataBind();
        mpeModalPopUp.Show();
    }
 
    protected void rdwhpopTaxAuthority1_SelectedIndexChanged(object sender, EventArgs e)
    {
        chkpopwhEIC.Checked = true;
    }
 
    protected void rdwhpopMartialStatus1_SelectedIndexChanged(object sender, EventArgs e)
    {
         
    }
 
    protected void rdbtnclick(object sender, EventArgs e)
    {
        mpeModalPopUp.Hide();
    }
}

Kate
Telerik team
 answered on 03 Jul 2012
1 answer
177 views
Hi,
     I want to make the caption text in bold for both the parent and child grid. How can I accomplish this. Anybody pls help
Thanks
Savyo
Shinu
Top achievements
Rank 2
 answered on 03 Jul 2012
3 answers
111 views
Is this possible? DO you have a yearly view?
Peter
Telerik team
 answered on 03 Jul 2012
1 answer
87 views
I have created a custom skin with stylebuilder and generated a dll with the tool provided in http://www.telerik.com/community/forums/aspnet-ajax/style-builder/tool-for-embedding-custom-skins-into-an-assembly.aspx 

Then, in web config i have the following:

<add key="Telerik.Skin" value="MySkin"/>
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

It's not working... Do i need to specify the EnableEmbeddedskins in each control?
Slav
Telerik team
 answered on 03 Jul 2012
9 answers
805 views
Hi,

I have a radgrid with several columns without a width setting, and others with a width set (e.g. HeaderStyle-Width="108px").
The table itself has no specific width set (so it just fills the page).

<telerik:RadGrid ID="rgOFR" runat="server" AllowMultiRowSelection="true" AutoGenerateColumns="false"
        AllowPaging="true" PageSize="20" AllowFilteringByColumn="true"
        onneeddatasource="rgOFR_NeedDataSource" onitemcreated="rgOFR_ItemCreated"
        onitemdatabound="rgOFR_ItemDataBound" >
     
    <MasterTableView AllowSorting="true" TableLayout="Fixed" CommandItemDisplay="Bottom">

I need to hide columns on the client side, however this seems to then shuffle the columns along and leave the width in the original position. (Sorry, hard to explain in text!)

e.g.

|           Column 1          ||           Column 2          ||  Column 3  ||                      Column 4                    | 

Hide column 2 and you get this:

|           Column 1          ||           Column 3          ||  Column 4  |

Where I would expect (and require!):

|           Column 1          ||  Column 3  ||                      Column 4                    |  



Any advice would be appreciated.

Regards,

Ryan


Tsvetina
Telerik team
 answered on 03 Jul 2012
1 answer
192 views
Hi - I use the RADEditor to create HTML which is then saved to a database. On extracting the HTML from the database I need to display it as simply as possible in a lightweight control which resembles a textbox with no borders.
Is the simplest way to use the AccessibleRadEditor and if so how do I render it without borders or menus? Or is there a simpler way?Thanks,
Paul
Rumen
Telerik team
 answered on 03 Jul 2012
1 answer
85 views
Hi team,

I have been reading some posts trying to find out how to resize RadSplitter and RadPane height and width. I have realized that RadPane has a 400px default height value and when I resize ONLY the window height from smaller than 400px and up to 400px it resizes well but if I resize window height bigger than 400px it stop resizing, why is it happening, how can I resolve it?



Thanks guys,
Beto.
Dobromir
Telerik team
 answered on 03 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?