Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
169 views
Hi,

MasterPage>Default.aspx>MainUserControl.ascx

MainUserControl.ascx has a tabstrip and multipage which in turns holds 5 other user controls each having a RadGrid.

On each grid I need to open a window from one of the grid columns and pass through the row a data item.

I have tried from your examples both using the javascript function called from the ItemCreated event and also direct from code behind.
In some cases this works but not always and not on every grid.

I've tried changing viewstate, adding and taking away window managers and everything else I can think of.
Is there a prescribed method or sample that will show this functionality please?

Thanks,
Jon
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 26 Sep 2011
3 answers
150 views
Hi guys,

I know IE8's fieldsets are pretty notorious, and I have been working through some other visual issues with IE8, but this one has me a bit stumped. I think that any fixes I am trying to apply to the fieldset class might be getting quashed by FormDecorator. Not wanting to fight the battle from two ends at once, I thought it might be prudent to ask you guys real quick.

So, check it out. This dialog window renders properly under all webkit browsers, and under IE9, but under IE8 the fieldset margin/padding/border seems to have disappeared and the fieldset is being rendered inline instead of block? 

<%@ Page Language="C#" EnableViewState="False" AutoEventWireup="True" CodeBehind="DashboardGlobalSettings.aspx.cs" Inherits="CableSolve.Web.Dashboard.Dialog.Windows.DashboardGlobalSettings" %>
 
<!DOCTYPE html>
<html lang="en">
    <head runat="server">
        <title></title>
    </head>
    <body onclick='OnClientMouseClick("body")' >
        <form id="form1" runat="server">
            <link rel="stylesheet" type="text/css" href="../../../Content/Dashboard/DashboardGlobalSettings.css" />
 
            <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
                <CompositeScript>
                    <Scripts>
                        <asp:ScriptReference Path="~/Scripts/Dashboard/DashboardGlobalSettings.js" />
                    </Scripts>
                </CompositeScript>
            </telerik:RadScriptManager>
 
            <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" Skin="Web20" />
 
            <telerik:RadAjaxManager ID="RadAjaxManager1" Runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="CheckBox1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadNumericTextBox1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadListBox1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadListBox1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadButton1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadListBox1" />
                            <telerik:AjaxUpdatedControl ControlID="RadTextBox1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="CheckBox4">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadNumericTextBox2" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
 
            <telerik:RadCodeBlock ID="RadCodeBlock1" Runat="server">
                <script type="text/javascript">
                    var radListBox1ID = "<%= RadListBox1.ClientID %>";
                    var radTextBox1ID = "<%= RadTextBox1.ClientID %>";
                    var radButton1ID = "<%= RadButton1.ClientID %>";
                    var radNumericTextBox1ID = "<%= RadNumericTextBox1.ClientID %>";
                    var radNumericTextBox2ID = "<%= RadNumericTextBox2.ClientID %>";
                    var checkBox1ID = "<%= CheckBox1.ClientID %>";
                    var checkBox4ID = "<%= CheckBox4.ClientID %>";
                    var ajaxManagerID = "<%= RadAjaxManager1.ClientID %>";
                </script>
            </telerik:RadCodeBlock>
 
            <fieldset id="RefreshProperties">
                <legend>Refresh Settings</legend>
                <div id="RefreshArea">
                    <div id="RefreshLeftSide">
                        Auto-Refresh Enabled:
                        <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged" />
                    </div>
                    <div id="RefreshRightSide">
                        <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" Label="Auto-Refresh Interval (Minutes):" MaxValue="60" MinValue="1" ShowSpinButtons="True" Value="1" Width="225px" Enabled="False" LabelCssClass="riLabel LabelDisabled" DataType="System.Int32">
                            <NumberFormat DecimalDigits="0" AllowRounding="False" />
                        </telerik:RadNumericTextBox>
                    </div>
                </div>
            </fieldset>
 
            <fieldset id="TabProperties">
                <legend>Tab Settings</legend>
                    <div>
                        <div id="TabLeftSide">
                            <telerik:RadListBox ID="RadListBox1" Runat="server" AllowDelete="True" AllowReorder="True" EnableDragAndDrop="True" Skin="Web20" Height="95px" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" Width="150px" OnClientLoad="OnClientLoad"/>
                        </div>
                        <div id="TabRightSide" onclick='OnClientMouseClick("notbody")'>
                            <telerik:RadTextBox ID="RadTextBox1" Runat="server" EmptyMessage="Enter tab name" Skin="Web20" Width="150px" />
                            <div id="TabButton">
                                <telerik:RadButton ID="RadButton1" Runat="server" Skin="Web20" Text="Add Tab" OnClientClicked="OnButtonClicked" AutoPostBack="False">
                                </telerik:RadButton>
                            </div>
                        </div>  
                    </div>
            </fieldset>
 
            <fieldset id="CycleProperties">
                <legend>Tab Cycle Settings</legend>
                <div id="CycleArea">
                    <div id="CycleLeftSide">
                        Auto-Cycle Enabled:
                        <asp:CheckBox ID="CheckBox4" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox4_CheckedChanged" />
                    </div>
                    <div id="CycleRightSide">
                        <telerik:RadNumericTextBox ID="RadNumericTextBox2" Runat="server" Label="Auto-Cycle Interval (Minutes):" MaxValue="60" MinValue="1" ShowSpinButtons="True" Value="1" Width="225px" Enabled="False" LabelCssClass="riLabel LabelDisabled" DataType="System.Int32">
                            <NumberFormat DecimalDigits="0" AllowRounding="False" />
                        </telerik:RadNumericTextBox>
                    </div>
                </div>
            </fieldset>
 
            <div id="BottomButton">
                <telerik:RadButton ID="RadButton2" Runat="server" Skin="Web20" Text="Apply" OnClientClicked="CloseAndSave" OnClick="RadButton2_Click" />
            </div>
        </form>
    </body>
</html>

body
{
    font-size: 12px;
    font-family: "segoe ui",arial,sans-serif;
    overflow: hidden;
}
 
.LabelEnabled
{
    color: Black !important;
}
 
.LabelDisabled
{
    color: Gray !important;
}
 
.riTextBox
{
    color: Black !important;
}
 
.RadForm_Web20.rfdFieldset legend
{
    color: #6788be;
}
 
.rwTable
{
    height: 337px;
}
 
#TabLeftSide
{
    float: left;
}
 
#TabRightSide
{
    float: right;
    padding-right: 55px;
}
 
#TabButton
{
    text-align: left;
    padding-top: 2px;
}
 
#BottomButton
{
    margin-top: 10px;
    margin-left: 170px;
}
 
#TabProperties
{
    height: 112px;
    width: 380px;
    padding-right: 10px;
}
 
#RefreshArea
{
    padding: 2px;
}
 
#RefreshLeftSide
{
    text-align: center;
    float: left;
    clear: none;
    margin-top: 3px;
}
 
#RefreshRightSide
{
    text-align: center;
    float: left;
    clear: none;
    margin-left: 5px;
}
 
#CycleArea
{
    padding: 2px;
}
 
#CycleLeftSide
{
    text-align: center;
    float: left;
    clear: none;
    margin-top: 3px;
}
 
#CycleRightSide
{
    text-align: center;
    float: left;
    clear: none;
    margin-left: 13px;
}

I went ahead and tried a few things in the CSS:
  • I tried setting the padding/margins explicitly. This didn't have any affect on IE8, and had adverse effects on Chrome.
  • I tried forcing the style "display" to "block" via "display: block !important", but still saw inline-esque properties in IE8.
  • I looked at this thread and attempted to use more-specific class names to apply the CSS, but wasn't successful.

At that point, I started wondering what parts of my problem were already fixed by Telerik's FormDecorator (most noticeably it seems to fix the fieldset/legend/IE8 issue) and what problems needed a little more polishing. As such, I am here.

Any advice?

Cheers,

Sean
Bozhidar
Telerik team
 answered on 26 Sep 2011
3 answers
131 views
When I enable a RadComboBox on the client side like comboBox._enabled = true;, and the AllowCustomText property is already true, the input element should also be enabled.  But it isn't.

I have to make a separate check and call like so.

if (comboBox._allowCustomText == true)
    comboBox._inputDomElement.disabled = false;
Ivana
Telerik team
 answered on 26 Sep 2011
1 answer
124 views
Hello Community and telerik,

I have read a lot and even seen the video-tutorial but there seems to be no simple client-side-sorting.

Can some1 point me to a WORKING, 100%-client-side-sorting-example?

Thanks a lot,
Gint
Vasil
Telerik team
 answered on 26 Sep 2011
1 answer
114 views
I am using "creation date" as custom column. 

this colum shows in the middle (depending on how big name of file and size are).    Is there a way to set up width and align all the way to left? for custom column ? 

Thanks in advanced
Dobromir
Telerik team
 answered on 26 Sep 2011
0 answers
66 views
Hi there

This is no big deal, but just wondering if there's a solution to it. I've a combobox with a fairly large list of items (mostly about 100). If I have a item selected, then go to click the drop-down button to select another value the current selected item initially appears about half way down the list and then jumps back up to the top of the list. It can be quite offputting at times. Is there any way to keep the selected item at the top of the list?
Steven Webster
Top achievements
Rank 1
 asked on 26 Sep 2011
5 answers
157 views
Hello,

I have downloaded the update through visual studio, but I still dont have the "RadNotification" control in my toolbox. Also it's not recognized through code. Could you please explain how I can get this control? I have the RadControls for ASP.NET AJAX (.NET 3.5).

Thanks!
Marin Bratanov
Telerik team
 answered on 26 Sep 2011
1 answer
211 views
Hai,

I have a RadDatePicker. I want the current date to be highlighed in the datepicker. I understood from your support site that the current date will be highlighted by default.  It is not showing the current date highlighted. Plz help
Shinu
Top achievements
Rank 2
 answered on 26 Sep 2011
2 answers
180 views
The problem I'm having is if you have over the Level 1c and then Level 1b the submenu grows in width.  The attached images may help to explain better what is happening.

|  Level 1     Level 1a     Level 1b    Level 1c    Level 1d  |
|            Sublevel 1a1  Sublevel 1a2  Sublevel 1a3                     |  width excedes
Prathap
Top achievements
Rank 1
 answered on 26 Sep 2011
1 answer
76 views
Hi all,

I am having some issues with the RadAjaxPanel when using it to develop Webparts for Sharepoint 2010.
I have a RadGrid inside a RadAjaxPanel.
When i do a filter or a paging, i have a fullpostback on the first time then everything works as expected (no postback the second time).
This first time postback is causing me a lot of problems.
Please can you help me with this issue? It is an urgent matter.

Thank you in advance.

Fady Raad.

P.S: if any code snippets is required please inform me.
Maria Ilieva
Telerik team
 answered on 26 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?