Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views
I have been using RadWindow for some time now in various applications and with no problems.  I have successfully sent parm's to the window and received values back on close.  I only say this so you know I've been using it for some time and am not a complete newbie.

I have a RadWindow which I am trying to display from a user control (which is, of course, located on a web page which uses a master page).  When I display the window, resizing does not work, setting the title text value does not work, and setting the behaviors has no effect on the window that is displayed.

I can take exactly the same code, put it on another web page that does not use a user control or master page and it works fine.  Is there something about doing this from a user control that causes the RadWindow to behave improperly?

            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
            <Windows> 
                <telerik:RadWindow   
                    id="RadWindow2"   
                    runat="server" 
                    showcontentduringload="false" 
                    width="900px" 
                    height="100px" 
                    title="Telerik RadWindow" 
                    behaviors="Close">  
                </telerik:RadWindow> 
            </Windows> 
            </telerik:RadWindowManager> 
 
        function openy() {  
            radopen("UserControls/ARadWindowTest.aspx", "RadWindow2");  
        }  
 
<asp:LinkButton ID="LinkButton2" OnClientClick="openy(); return false;" runat="server">RadOpen</asp:LinkButton> 

The attached file contains a screen capture of the results of this action.  Please note that the RadWindow2 is defined as being 900 pixels wide, 100 pixels high, and containing a title of "Telerik RadWindow".

Is there some kind of problem with displaying a RadWindow from within a User Control?  Is there something you can see that I am doing wrong, because I have taken this same code to another page (without the user control) and it has worked perfectly.

Help, please!
Lynn
Top achievements
Rank 2
 answered on 10 Jun 2010
18 answers
284 views
I really would like to be able to crossfade images when using RadRotator in slide show mode.  But option doesn't exist.

My options are to use Flash (I really don't want to do that), to go out and buy another component, write it myself from scratch or figure out how to extend the Telerik script to do it.

I'd like to try the latter with some help from Telerik if possible.

Surely it is just a matter of stacking the images in one spot and then gradually changing opacity of the top image until the one below is completely revealed.  Then shuffle the top image's z-index to put it at the bottom of the stack, no?

And as far as opacity, I think there are only three CSS implementations I need to worry about:

1. Mozilla pre-CSS3 -> MozOpacity (a value between 0 and 1)
2. CSS3 compatible -> opacity (a value between 0 and 1)
3. IE -> filter(alpha=???)  where ??? is a value between 0 and 100

Of course, some browser don't support opacity.  They'll just ignore the dynamic changing of opacity in CSS and will change images when the top image is shuffled to the bottom of the stack.

Telerik: Can you help me get going?  I'll upload the code back to Telerik.com.
Coty
Top achievements
Rank 1
 answered on 10 Jun 2010
1 answer
147 views
I have a question regarding this style class.  I know that I can override this in my page to control the background opacity for modal radWindows by putting this in my page:

 

<style type="text/css">

 

 

.TelerikModalOverlay

 

{

 

  filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=90) !important;

 

 

  opacity: .9 !important;

 

 

  -moz-opacity: .9 !important;

 

}

 

</style>

However, is there any way to modify the background shading differently for different radwindows?  I have a scenario on a single page where I want the normal lightly shaded gray background (opacity=50) for one radwindow but I want a complete covering of the parent window (opacity=100) for another.  The above override will set the opacity the same for both.

Thanks in advance.

 

Petio Petkov
Telerik team
 answered on 10 Jun 2010
4 answers
755 views
Is it possable to change the "Max file size allowed:200.00 KB" from 200.00kb to something else? I have changed the the

 

Upload.MaxFileSize to something else but when i push the upload button it still tells me the max size is 200 kb. Thanks

Charles Faramarzi-rad
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
422 views
Hello there;
We have installed the latest version of the mosseditor in our sharepoint environment. We have ran into the max size issue when trying to upload , for example, wmv files. This particular file is 29 mbs.
I have followed suggestions to modify the Config.xml file <property name="MaxDocumentSize">512000</property>

Also I have modified, or tried to modify the maxRequestLength in our sharepoint web application , however, it was already set to 512000.  After performing these changes, my expectation was to be able to upload the file, however, that is not the case.

please help.

thanks
Charles


Charles Faramarzi-rad
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
356 views
I would like to be able to hide the 'refresh' button on every single radgrid on my site. I came across this page on how to hide the control manually, but if I've got a dozen radgrids on the site, it makes maintaining/adding new ones a pain. Is there some hidden property I can add to my asp skin file that would apply to all of the radgrids?
Clayton
Top achievements
Rank 1
 answered on 10 Jun 2010
1 answer
145 views
I have ASP.NET AJAX installed on my computer and I just purchased VS 2010.

How can I integrate the Telerik controls into VS 2010 like my VS 2008?  i.e. the toolbox,  project templates, etc.

Do I have to un-install and re-install?  I'm hoping there is a quick solution.

Thanks!
Jaime
Erjan Gavalji
Telerik team
 answered on 10 Jun 2010
5 answers
239 views
Please find the attached image for the issue and let us know if there is any fix for this issue.
Bozhidar
Telerik team
 answered on 10 Jun 2010
36 answers
1.7K+ views
Hello,

We get many requests for samples which demonstrates how to create a portal site, incorporating RadDock. Attached is a simple site, which, I hope, will be of help to everybody.

In order to keep this thread clean, please report bugs and feature requests in separate threads. We will update the application on a regular basis and most probably it will be uploaded on our site.

Best regards,
Valeri Hristov
the Telerik team



Pero
Telerik team
 answered on 10 Jun 2010
1 answer
143 views
protected void Page_Load(object sender, EventArgs e)  
        {  
            try  
            {  
                //Get all parents in hierarchy for the client and set First Level Ultimate ParentDuns  
                ControllerController.NodeUltimateParentsList = Controller.GetClientUltimateParentsList(Controller.ClientId);  
                SetUltimateParentDuns();          
                //TreeView event on expanding any node in tree view  
                t1.NodeExpand += new RadTreeViewEventHandler(t1_NodeExpand);  
                t1.NodeCreated += new RadTreeViewEventHandler(t1_NodeCreated);  
                t1.NodeClick += new RadTreeViewEventHandler(t1_NodeClick);  
                t1.OnClientMouseOver = "ClientMouseOver";  
                  
                  
            }  
            catch (Exception ex)  
            {  
 
            }  
        }  
void t1_NodeClick(object sender, RadTreeNodeEventArgs e)  
        {  
            if (OnNodeClick != null)  
                OnNodeClick(sender, e);  
              
        }  
  public void BindHierarchy()  
        {  
           LoadRootNodes();  
                   }  
void t1_NodeCreated(object sender, RadTreeNodeEventArgs e)  
        {  
 
            RadTreeNode currentNode = e.Node;  
            RadTreeNode parentNode = e.Node.ParentNode;  
            if (currentNode.Value.ToString() != string.Empty)  
            {  
                //If parent not null then set UltimateParent attribute to current node  
                if (parentNode != null)  
                {  
                    currentNode.Attributes.Add("UltimateParent", parentNode.Attributes["DUNSNbr"]);  
                }  
                //Check if current node has DUNSNbr which is current parent in client hierarchy branch then expand and bind it's next level  
                if (currentNode.Value.Trim() != string.Empty && currentNode.Value == UltimateParent && NodeLevel >= 0)  
                {  
                    //First of all set next ultimate parent so that it can be checked for next loop  
                    currentNode.ExpandMode = TreeNodeExpandMode.ClientSide;  
                    SetUltimateParentDuns();  
                    currentNode.Expanded = true;                      
                    BindNextLevelHierarchy(currentNode, currentNode.Value);  
                }  
                else  
                {  
                    currentNode.ExpandMode = NodeExpandMode;  
                }  
            }  
        }  
void t1_NodeExpand(object sender, RadTreeNodeEventArgs e)  
        {  
            try  
            {  
                if (e.Node.Value.Trim() != string.Empty)  
                {  
                    AppendChildNodesOnExpand(e.Node);  
                    t1.DataBind();  
                }  
            }  
            catch (Exception ex)  
            {  
                  
            }  
        }  
 private void LoadRootNodes()  
        {  
            try  
            {  
                bool isHierarchyExist = false;  
                if (!string.IsNullOrEmpty(GlobalUltimateDuns))  
                {  
                    t1.Nodes.Clear();  
                    //Fetch Root node for the GlobalultimateDuns of client  
                    HierarchyNodeDTO globalRootNodeInfo = Controller.GetGlobalUltimateNode(GlobalUltimateDuns);  
 
                    if (globalRootNodeInfo != null)  
                    {  
                        RadTreeNode rootNode = null;  
                        //Add Root Node  
                        rootNode = CreateNewNode(globalRootNodeInfo);                          
                        t1.Nodes.Add(rootNode);  
 
                        //Fetch all child nodes for the root node  
                        IList<HierarchyNodeDTO> lstChildNodes = Controller.GetChildHierarchyNodes(GlobalUltimateDuns);  
                        //Add child nodes to root one by one  
                        if (lstChildNodes != null && lstChildNodes.Count > 0)  
                        {  
                            foreach (HierarchyNodeDTO nodeInfo in lstChildNodes)  
                            {  
                                RadTreeNode node = CreateNewNode(nodeInfo);  
                                t1.Nodes[0].Nodes.Add(node);  
                            }  
                        }  
                        rootNode.ExpandMode = TreeNodeExpandMode.ClientSide;  
                        rootNode.Expanded = true;  
                        t1.DataBind();  
                        isHierarchyExist = true;  
                    }  
                }  
                if (!isHierarchyExist)  
                {  
                    //Bind current client as single root node  
                    RadTreeNode rootNode = CreateNewNode(Controller.ClientToHierarchy);  
                    t1.Nodes.Add(rootNode);  
                    t1.DataBind();  
                }  
            }  
            catch (Exception ex)  
            {  
 
            }  
        }  
private void AppendChildNodesOnExpand(RadTreeNode parentNode)  
        {  
            IList<HierarchyNodeDTO> lstChildNodes = Controller.GetChildHierarchyNodes(parentNode.Value, parentNode.Level);  
            if (lstChildNodes != null && lstChildNodes.Count > 0)  
            {  
                foreach (HierarchyNodeDTO nodeInfo in lstChildNodes)  
                {  
                    RadTreeNode node = CreateNewNode(nodeInfo);  
                    parentNode.Nodes.Add(node);  
                }  
            }  
        }  
 private void BindNextLevelHierarchy(RadTreeNode parentNode, string parentDuns)  
        {  
            IList<HierarchyNodeDTO> lstCurrentChildNodes = Controller.GetChildHierarchyNodes(parentDuns);  
            if (lstCurrentChildNodes != null && lstCurrentChildNodes.Count > 0)  
            {  
                foreach (HierarchyNodeDTO nodeInfo in lstCurrentChildNodes)  
                {  
                    RadTreeNode node = CreateNewNode(nodeInfo);  
                    parentNode.Nodes.Add(node);  
                    //If we get Client node then select it  
                    if (nodeInfo.ClientId == Controller.ClientId)  
                    {  
                        node.Selected = true;  
                        UltimateParent = "";  
                        NodeLevel = -1;  
                    }  
                }  
            }  
        }  
/// <summary> 
        /// AddCustomAttributesToNode  
        /// </summary> 
        /// <param name="attributeInfo"></param> 
        /// <param name="node"></param> 
        private void AddCustomAttributesToNode(HierarchyNodeDTO attributeInfo, RadTreeNode node)  
        {  
            node.Attributes.Add("ClientId", attributeInfo.ClientId.ToString());  
            node.Attributes.Add("CompanyName", attributeInfo.CompanyName);  
            node.Attributes.Add("DUNSNbr", attributeInfo.DUNSNbr);  
            node.Attributes.Add("ParentDuns", attributeInfo.ParentDuns);  
            node.Attributes.Add("GlobalUltimateDuns", attributeInfo.GlobalUltimateDuns);  
            node.Attributes.Add("WLEInd", attributeInfo.WLEInd);  
            node.Attributes.Add("UltimateParent", attributeInfo.UltimateParentInHierarchy);  
        }  
          
        /// <summary> 
        /// CreateNewNode  
        /// </summary> 
        /// <param name="nodeInfo"></param> 
        /// <returns></returns>  
        private RadTreeNode CreateNewNode(HierarchyNodeDTO nodeInfo)  
        {             
            RadTreeNode node = new RadTreeNode();  
            node.Text = nodeInfo.Caption;  
            node.Value = nodeInfo.DUNSNbr;  
            node.ExpandMode = NodeExpandMode;              
            AddCustomAttributesToNode(nodeInfo, node);  
            node.PostBack = true;  
            node.DataBind();  
            return node;  
        }  
 
        /// <summary> 
        /// SetUltimateParentDuns  
        /// </summary> 
        private void SetUltimateParentDuns()  
        {  
            try  
            {  
                //Get ultimate hierarchy                  
                if (Controller.NodeUltimateParentsList != null)  
                {  
                    IList<HierarchyNodeDTO> lstUltimateParents = Controller.NodeUltimateParentsList;  
                    if (lstUltimateParents != null && lstUltimateParents.Count > 0)  
                    {  
 
                        HierarchyNodeDTO ultimateParentDTO = (HierarchyNodeDTO)lstUltimateParents.First(e => e.NodeGeneration == lstUltimateParents.Count-1);  
                        UltimateParent = ultimateParentDTO.DUNSNbr;  
                        NodeLevel = ultimateParentDTO.NodeGeneration;  
                        lstUltimateParents.Remove(ultimateParentDTO);  
                        Controller.NodeUltimateParentsList = lstUltimateParents;  
                    }  
                }  
                else  
                {  
                    UltimateParent = string.Empty;  
                    NodeLevel = -1;  
                }  
            }  
            catch (Exception ex)  
            {  
 
            }  
        } 
Yana
Telerik team
 answered on 10 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?