Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
85 views
i have window manager for whic i want to set height.
now its too big.. how to set height for the same in CSS file.

Below is my code.

<telerik:RadWindowManager ID="rdWindowManager" runat="server" EnableEmbeddedSkins="false"
    Skin="rdWindowsAlert">
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="rdAjaxmanager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting>
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rdWindowManager" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

* Window Background */
  
/* Horiznotal */
.RadWindow_rdWindowsAlert .rwTopLeft,
.RadWindow_rdWindowsAlert .rwTopRight,
.RadWindow_rdWindowsAlert .rwTitlebar,
.RadWindow_rdWindowsAlert .rwFooterLeft,
.RadWindow_rdWindowsAlert .rwFooterRight,
.RadWindow_rdWindowsAlert .rwFooterCenter,
.RadWindow_rdWindowsAlert .rwTopResize,
.RadWindow_rdWindowsAlert .rwStatusbar div,
.RadWindow_rdWindowsAlert .rwStatusbar,
.RadWindow_rdWindowsAlert .rwPopupButton,
.RadWindow_rdWindowsAlert .rwPopupButton span,
.RadWindow_rdWindowsAlert.rwMinimizedWindow .rwCorner
{
    background-image: url('Window/WindowHorizontalSprites.gif');
      
}
  
  
/* Vertical */
.RadWindow_rdWindowsAlert .rwBodyLeft,
.RadWindow_rdWindowsAlert .rwBodyRight,
.RadWindow_rdWindowsAlert .rwStatusbarRow .rwCorner
{
    background-image: url('Window/WindowVerticalSprites.gif');
}
  
  
/* Window Shadows */
  
/* Horiznotal */
.RadWindow_rdWindowsAlert .rwShadow .rwTopLeft,
.RadWindow_rdWindowsAlert .rwShadow .rwTopRight,
.RadWindow_rdWindowsAlert .rwShadow .rwTitlebar,
.RadWindow_rdWindowsAlert .rwShadow .rwFooterLeft,
.RadWindow_rdWindowsAlert .rwShadow .rwFooterRight,
.RadWindow_rdWindowsAlert .rwShadow .rwFooterCenter,
.RadWindow_rdWindowsAlert .rwShadow .rwTopResize,
.RadWindow_rdWindowsAlert .rwShadow .rwStatusbar div,
.RadWindow_rdWindowsAlert .rwShadow .rwStatusbar,
.RadWindow_rdWindowsAlert .rwShadow .rwPopupButton,
.RadWindow_rdWindowsAlert .rwShadow .rwPopupButton span,
.RadWindow_rdWindowsAlert .rwShadow .rwBodyLeft,
.RadWindow_rdWindowsAlert .rwShadow .rwBodyRight,
.RadWindow_rdWindowsAlert .rwShadow .rwStatusbarRow .rwBodyLeft,
.RadWindow_rdWindowsAlert .rwShadow .rwStatusbarRow .rwBodyRight
{
    background-image: url('Window/WindowHorizontalSprites.png');
}
  
/* Vertical */
.RadWindow_rdWindowsAlert .rwShadow .rwBodyLeft,
.RadWindow_rdWindowsAlert .rwShadow .rwBodyRight,
.RadWindow_rdWindowsAlert .rwShadow .rwStatusbarRow .rwBodyLeft,
.RadWindow_rdWindowsAlert .rwShadow .rwStatusbarRow .rwBodyRight
{
    background-image: url('Window/WindowVerticalSprites.png');
}
  
/* Shadows End */
  
.RadWindow_rdWindowsAlert .rwControlButtons a
{
    background-image: url('Window/CommandButtonSprites.gif');
}
  
.RadWindow_rdWindowsAlert a.rwIcon
{
    background-image: url('Window/WindowHorizontalSprites.gif');
}
  
div.RadWindow_rdWindowsAlert .rwTitlebarControls em
{
    color:#28638f; /* Model title Color */
    background-image:none !important;
}
  
div.RadWindow_rdWindowsAlert .rwDialogInput
{
    border-top: solid 1px #afb1b2;
    border-right: solid 1px #e1e4e6;
    border-bottom: solid 1px #ebeef0;
    border-left: solid 1px #e8eaeb;
}
  
div.RadWindow_rdWindowsAlert .rwDialogInput:hover
{
    border-top: solid 1px #86a6bf;
    border-right: solid 1px #cedeeb;
    border-bottom: solid 1px #dce9f2;
    border-left: solid 1px #d8e4ed;
  
}
  
.RadWindow_rdWindowsAlert td.rwWindowContent
{
    margin-left: 15px !important
    /* background-color: #dcdcdc; */
}
  
.RadWindow_rdWindowsAlert .rwWindowContent .radalert  
{
   background-image:none !important
}
  
  
div.RadWindow_rdWindowsAlert a.rwCancel,
div.RadWindow_rdWindowsAlert a.rwCancel span
{
    background: none;
    cursor: pointer;
}
  
div.RadWindow_rdWindowsAlert a.rwCancel span span
{
    color: #000000;
    text-decoration: underline;
}
  
/* Shadow Control Buttons */
  
.RadWindow_rdWindowsAlert .rwShadow .rwControlButtons 
{
    margin: 5px -2px 0 0;
}
  
.RadWindow_rdWindowsAlert .rwShadow .rwControlButtons 
{
    margin: 5px -1px 0 0\9;
}
  
.RadWindow_rdWindowsAlert .rwShadow .rwControlButtons li
{
    float: left;
    padding: 0;
}
  
div.RadWindow_rdWindowsAlert .rwControlButtons a
{
    width: 26px
}


Mugdha Aditya
Top achievements
Rank 1
 answered on 08 Nov 2011
4 answers
190 views
Hi,
I am using Radgrid, I have a colum with the html link upon clicking on that we are opening a radwindow , I have to preserve the rad windows even when the parent Radgrid refreshes ( Postback), I am using asp.net timer control to refresh the grid at a particular interval, as soon as the grid refreshes the windows disappear , Please suggest me how can I preserve the rad window during postback..

Thanks,
Ambuj
Ambuj
Top achievements
Rank 1
 answered on 08 Nov 2011
1 answer
117 views
Hello, 

We are using version 2010.3.1317.35.

I'm currently having an issue with the Filter feature of the control on IE9. 
It works as expected on Chrome 15 and FF7.

Here's the exact code I am using:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
 
<!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>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <telerik:RadComboBox ID="testRadCombo1" runat="server" Filter="Contains"
                    AutoPostBack="True">
                    <Items>
                        <telerik:RadComboBoxItem Text="AAA" Value="1" />
                        <telerik:RadComboBoxItem Text="AAB" Value="2" />
                        <telerik:RadComboBoxItem Text="AAC" Value="3" />
                        <telerik:RadComboBoxItem Text="BBB" Value="4" />
                        <telerik:RadComboBoxItem Text="BBA" Value="5" />
                        <telerik:RadComboBoxItem Text="BBC" Value="6" />
                        <telerik:RadComboBoxItem Text="CCC" Value="7" />
                        <telerik:RadComboBoxItem Text="CCA" Value="8" />
                        <telerik:RadComboBoxItem Text="CCB" Value="9" />
                    </Items>
                </telerik:RadComboBox>
            </div>
        </form>
    </body>
</html>

On IE, the Filter feature just doesn't work and we are very frustrated with it. I spent more than an hour reading documentation and other sites and forums to find a solution and/or what I'm doing wrong before I decided to write here.

Is there anything I'm missing here? Is there any extra configuration for IE? Is IE no longer supported? What should we do?

Repeating: It works as expected on Chrome 15 and FF7

Thanks
------

Update: I've modified the aspx page by adding a meta tag as follows:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

This seems to keep the behavior compatible with other browsers, and of course, IE9.

Wish I didn't have to do this and that it would work the same on all browsers.
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2011
1 answer
230 views
Hi,
I have a RadTreeView in a RadSlidingPane. The tree has a context menu and one of the options is Select Date. When clicking this option, I would like to pop up a modal window or pane with a RadCalendar inside. I tried to add a radcalendar to a radwindow, but it would not work . What's the best way to achieve this? 

Thanks,
awni
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2011
1 answer
119 views
Hi,
I'm using this code:
function nodeClicking(sender, eventArgs) {
   var comboBox = $find("<%= radComboBoxUnits.ClientID %>");
   var node = eventArgs.get_node()
   node.set_selected(true);
   comboBox.set_text(node.get_text());
   comboBox.hideDropDown();
}

But sometimes I need to click twice on a node for the text to show up in the combobox.
I click once, and the combobox collapses but the combobox text is still the old one.
I open the combobox again and clicks on a node, this time the text is showing up.
Why is that? Can I change this code for any other "working" code?

Most of the times it works as it should, but sometimes, randomized, it's not working.

Regards,
Mattias
Princy
Top achievements
Rank 2
 answered on 08 Nov 2011
3 answers
201 views
HI,
Telerik Team

I have been using Telerik grid with Scrolling enabled, like

<Scrolling AllowScroll="true" ScrollHeight="400" SaveScrollPosition="true" UseStaticHeaders="true"

FrozenColumnsCount="2" />


but my table columns are exceding the actual size of the table, then i have included the
bellow propery (style="table-layout: fixed;")

<table border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout: fixed;">

so, now my telerik grid is getting flickering when scrolling and loading.
Plese provide me the solution for this.

Hanso
Top achievements
Rank 1
 answered on 08 Nov 2011
1 answer
112 views
is that possible to export treelist?
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2011
0 answers
132 views
Hi

I am trying to work on telerik Treeview Control in the follwoing scenario.

Client
...........Sites
................site1
................site2

If i have sites more than 100 then i am adding the serach control (textbox and a button) just above the site1 node, to give the user to enter the site name and click enter,it automatically shows the entered site.Everything is working fine.

Problem: As i am adding the search control dynamically , On page refresh(when i click on any node item) the search control disappears.

Below is my code:(below method will be called on OnNodeExpand="tree_NodeExpand" internally)

 

<telerik:RadPanelItem Text="ClientDetails" Expanded="True" CssClass="radPanelItem"
              DisabledCssClass="radPanelItemDisabled">

      <ContentTemplate>

             <telerik:RadTreeView ID="clienttree" runat="server" OnNodeExpand="tree_NodeExpand"
                       
EnableDragAndDrop="true"

                       OnClientNodeExpanded="cleinttree_OnClientNodeExpanded" CssClass="radTreeView">

              </telerik:RadTreeView>

        </ContentTemplate>

 </telerik:RadPanelItem>

 


 

 

Protected Sub tree_NodeExpand(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs)

 

       If showSearchBox Then addSearchNode(e.Node, searchText)
End Sub

 

 

Private

Sub addSearchNode(ByVal root As RadTreeNode, ByVal defaultText As String)

Dim node As New RadTreeNode()

 node.AllowDrag = False

 node.Expanded = True

 node.ExpandMode = TreeNodeExpandMode.ClientSide

 

node.Attributes.Add(

"IsSearch", True.ToString())

 root.Nodes.Add(node)

 Dim nodeSearchBox As NodeSearchBox = LoadControl("~/Controls/TreeviewControls/NodeSearchBox.ascx")

 nodeSearchBox.ParentTreeID = root.TreeView.ClientID

nodeSearchBox.NodeID = root.ClientID

 If Not String.IsNullOrEmpty(defaultText) Then nodeSearchBox.Text = defaultText

 node.Controls.Add(nodeSearchBox)

 End Sub


Kindly Help ,

Thank you in advance
Ramesh.T.
mrramu@yahoo.com

 

Ramesh
Top achievements
Rank 1
 asked on 08 Nov 2011
2 answers
534 views
HI there,

I'm attempting to scan uploaded files for malicious content. 
I'm using the itemcommand 'UploadFile' to get a stream from the UploadedFiles property.

My problem is that regardless of content all files are uploaded with 0 bytes.
The file is created with the correct name but the file is empty.

Do I need to do something to reset the stream after reading it?
Also if I wanted to just remove the offending elements how would i do that?

     
protected void rfeFiles_ItemCommand(object sender, RadFileExplorerEventArgs e)
{
    if (e.Command == "UploadFile")
    {
        ArrayList illegalStrings = new ArrayList { "<script", "< script" };
        UploadedFileCollection _uploadedFiles = (sender as RadFileExplorer).Upload.UploadedFiles;
 
        foreach (UploadedFile file in _uploadedFiles)
        {
            StreamReader sr = new StreamReader(file.InputStream);
            string contents = sr.ReadToEnd();
 
            foreach (string badString in illegalStrings)
            {
                if (contents.ToLower().Contains(badString))
                {
                    //popup Javascript alert
                    ScriptManager.RegisterStartupScript(Page, Page.GetType(), "KEY", "alert('Cannot upload files with <script> elements..');", true);
                    e.Cancel = true;//cancel the event
                    sr.Close();
                    break;
                }
            }
 
            // do I need to do something here? Tried file.InputStream.Position = 0;
 
            sr.Close();
        }
    }
}

Thanks for any help

Paul Carroll

Paul
Top achievements
Rank 1
 answered on 08 Nov 2011
1 answer
91 views
I have a grid with a popup edit form and a dropdown in that form. What I would like to do is if the selected value of the drop down = 'closed', Set the SQL UpdateCommand [DateClosed] = @DateClosed

So @DateClosed = Getdate()  if drop down = 'closed'
Else  @DateClosed = NULL

Thanks


Najid Hanif
Top achievements
Rank 2
 answered on 07 Nov 2011
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?