Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
79 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
208 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
390 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
165 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
106 views
Is this possible? DO you have a yearly view?
Peter
Telerik team
 answered on 03 Jul 2012
1 answer
78 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
774 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
178 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
81 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
1 answer
306 views
Hi,

I'm Experiencing one anoying problem and i would apreciate any help.

So, i have a treelist with skin=Hay and i also have one TreeListTemplate column where i want to add 5 icons with size 24px by 24px.
When i remove all the images the treelist rows are with the correct height, but when i add the icons the row height grows (seems to me to 32px). If in the middle of the treelist one row does not contain any picture the row heigth is diferent.
Besides this problem i still have one left. When i select the row only part of the height becomes selected.



The pictures in attach ilustrates the issue.


Note: the icons are really 24x24 i am not resizing
Also Note that at itemdatabound i'm setting item.height to 24 pixels.

Thanks in Advance,

 

Tsvetina
Telerik team
 answered on 03 Jul 2012
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?