Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
93 views
Hello,

I want to implement client-side recursive (de)selection. This works so far, but I have a problem regarding the deselecting:

1) If a user selects a parent node, all children get selected (works fine)
2) If a user deselects a parent node, all children get deselected (works fine)
3) If a children gets deselected, the parent node gets deselected. Here is the problem: The parent node gets deselected, which triggers the children of the parent to be deselected (because of 2.)

How can I determine if an itemDeselected client-side event is triggered because of the user to (un)check an item or if it was triggered internally, because of me setting the selected state?

Thanks!
Eyup
Telerik team
 answered on 09 May 2014
1 answer
101 views
Can we start the slideshow automatically on page load?
Pavlina
Telerik team
 answered on 09 May 2014
3 answers
203 views
Hi,

Please take a look at the chart below. I am displaying data per hour and need to show the time in the X axis as shown below.

However when there is no data for a given hour the system comes back as undefined, even though i can see the time label below it.

How can i remove the 'undefined' text so that it does not spoil the view?

Thanks

Danail Vasilev
Telerik team
 answered on 09 May 2014
15 answers
454 views
How can we find the items of the Radlistbox while traversing through the list of items using javascript....

Note:I got 5 controls for each item ,I have to find the instance of each control while traversing through the list...

could you please help me in finding the solution....
Shinu
Top achievements
Rank 2
 answered on 09 May 2014
1 answer
135 views
In latest release 2014.1.225.45 please double check css for rgUpdate in Silk skin.
For the code below all icons displayed except rgUpdate (see attached image)
<CommandItemTemplate>
    <div style="margin:5px 10px;">
        <asp:Button ID="Button1" runat="server" CommandName="Reprocess" CssClass="rgAdd"  />
        <asp:Button ID="Button5" runat="server" CommandName="Reprocess" CssClass="rgUpdate"  />
        <asp:Button ID="Button2" runat="server" CommandName="Reprocess" CssClass="rgCancel" />
        <asp:Button ID="Button4" runat="server" CommandName="Reprocess" CssClass="rgSave" />
        <asp:Button ID="Button3" runat="server" CommandName="Reprocess" CssClass="rgRefresh"  />
    </div>
</CommandItemTemplate>
Pavlina
Telerik team
 answered on 09 May 2014
6 answers
204 views
I am trying to use a menu on the page but I am having issues with it's display.
I have attached a picture to explain what I am trying to do. I need the box in blue( it is just on the top right hand bar between profile and logout.
I am not able to figure out why it is being pushed down.
I am using the WebBlue skin.

Attached is my declaration of the menu

<table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td class="welcomeUser" colspan="3">
                                <div>
                                    <ul>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="_loginView" runat="server">
                                                <LoggedInTemplate>
                                                    <asp:LoginName ID="_loginName" runat="server" />
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="LoginView1" runat="server">
                                                <LoggedInTemplate>
                                                    <span class="welcomeuserpipe"> </span>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="LoginView2" runat="server">
                                                <LoggedInTemplate>
                                                    <asp:HyperLink runat="server" ID="linkProfile" NavigateUrl="~/welcome/personalinfo.aspx">
                                               Profile</asp:HyperLink>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="LoginView6" runat="server">
                                                <LoggedInTemplate>
                                                    <span class="welcomeuserpipe"> </span>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="loginViewQuickLinks" runat="server">
                                                <LoggedInTemplate>
                                                     
                                                    <telerik:RadMenu ID="rmQuickLinks" runat="server" BackColor="LightBlue" ForeColor="Black"  Width="20px" >
                                                        <Items>
                                                            <telerik:RadMenuItem Text="Quick Links" CssClass="welcomeMenu">
                                                                <Items>
                                                                    <telerik:RadMenuItem NavigateUrl="https://www.nationwide.com/access/web/login.htm"
                                                                        Target="_blank" Text="Nationwide Login">
                                                                    </telerik:RadMenuItem>
                                                                </Items>
                                                            </telerik:RadMenuItem>
                                                        </Items>
                                                    </telerik:RadMenu>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="LoginView3" runat="server">
                                                <LoggedInTemplate>
                                                    <span class="welcomeuserpipe"> </span>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="LoginView5" runat="server">
                                                <LoggedInTemplate>
                                                    <asp:HyperLink runat="server" ID="linkProfile">                                            
                                               Help</asp:HyperLink>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="LoginView4" runat="server">
                                                <LoggedInTemplate>
                                                    <span class="welcomeuserpipe"> </span>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                        <li class="welcomeuserli">
                                            <asp:LoginView ID="_loginViewStatus" runat="server">
                                                <LoggedInTemplate>
                                                    <asp:LoginStatus ID="_loginStatus" runat="server" meta:resourcekey="_loginStatusResource1" />
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </li>
                                    </ul>
                                </div>
                            </td>
                        </tr>                       
                    </table>
 
the css for the ul:
.welcomeUser
{
    font-size: 9px;
    font-weight: bold;
    text-align:right;
    padding-top: 7px;
    padding-left: 2px;
    line-height: 0.75;
}
.welcomeUser a
{
    color: blue;
    font-size: 12px;
}
.welcomeuserli {
     display:inline;
     list-style-type:none;
     padding-right:0.25em;    
     padding-left:0.25em;
}
.welcomeuserpipe
{
    color: #ccc;
    font-size: 10px;
    border-right: 1px solid #ccc;
}
.welcomeMenu
{
    padding: 1px;
    float: none;
}


PS: I have another menu beneath it for my website navigation so I don't want to change the  css file for Menu.
Basically I want to have a menu like dropdown eefect where i specify links to go to a new webpage window. I couldn't get that effect with any other control (dropdownlist/combo). If you can suggest another control I am ok to use that.
Please suggest.
Magdalena
Telerik team
 answered on 09 May 2014
3 answers
860 views
I have followed mutiple examples of Clsoing the Radwindow from the code behind, but nothing seems to be working. I have a couple applications where I have a need to do this but neither will close the radWindow and tehn refresh the existing page.  SO in this example, I am exporting to excel and then closing the Radwindow but it never closes.

<script type="text/javascript">
        function getRadWindow() {
            var oWindow = null;
            if (window.radWindow)
                oWindow = window.radWindow;
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;
            return oWindow;
        }
 
        // Reload parent page
        function refreshParentPage() {
            getRadWindow().BrowserWindow.document.location.href = url;
        }
 
Or this one as well
 function refreshParentPage() {
            getRadWindow().BrowserWindow.location.reload();
        }
 
    </script>
 
 
Here is the code behind, after the export I want the window to close but its a nogo.
 protected void lnkExport_Click(object sender, EventArgs e)
    {
        //Get the Admins that are checked from the dropdown
        String checkId = string.Empty;
        foreach (RadComboBoxItem checkeditem in cbAdmins.CheckedItems)
        {
             checkId += checkeditem.Value + ',';
        }
 
        checkId = checkId.TrimEnd(' ', ',');
 
        if (checkId == string.Empty)
        {
            ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "OpenWindow", "alert('Need to pick an Administrator. If none are able to be picked please assign via admin page.');", true);
        }
        else
        {
            //Create the Excel File and ready it to be written and shown.
            var ExistFile = Server.MapPath("~/Excel/NSS.xlsx");
            var File = new FileInfo(ExistFile);
 
            using (ExcelPackage package = new ExcelPackage(File))
            {
                ExcelWorksheet workSheet = package.Workbook.Worksheets["Sheet1"];
 
                //get all the admins that where Checked but only allow 2
                sql = "Select TOP 2 Name, Mail, strFtPhone, strAddress from vw_tblAdmins where intAdminId in (" + checkId + ")";
 
                dt = new DataTable();
                dt = c.GetReader(sql);
 
                //1st Row starts on A8 to E8
                int rowC = 8;
                foreach (DataRow row in dt.Rows)
                {
                    workSheet.Cells["A" + rowC].Value = row[0].ToString();
                    workSheet.Cells["B" + rowC].Value = "MN-ARNG";
                    workSheet.Cells["C" + rowC].Value = row[1].ToString();
                    workSheet.Cells["D" + rowC].Value = row[2].ToString();
                    workSheet.Cells["E" + rowC].Value = row[3].ToString();
                    rowC += 1;
                }
 
                //Get all the Exportables for the SpreadSheet
                sql = "Select Name, Persona, Email, Phone, Address, intRequestId from vw_TokenExport where dtOrdered IS NULL and location = " + cbLocations.SelectedValue;
 
                dt = new DataTable();
                dt = c.GetReader(sql);
 
                //1st Row starts on A16 to E16
                string requestId = string.Empty;
                int user = c.GetUserId();
                int rowCount = 16;
                foreach (DataRow row in dt.Rows)
                {
                    workSheet.Cells["A" + rowCount].Value = row[0].ToString();
                    workSheet.Cells["B" + rowCount].Value = row[1].ToString();
                    workSheet.Cells["C" + rowCount].Value = row[2].ToString();
                    workSheet.Cells["D" + rowCount].Value = row[3].ToString();
                    workSheet.Cells["E" + rowCount].Value = row[4].ToString();
                    requestId += row[5].ToString() + ',';
                    rowCount += 1;
                }
 
                //take of the end Comma
                requestId = requestId.TrimEnd(' ', ',');
 
                //Update the table with the dtOrdered and by Whom
                sql = "Update tblTokenRequest set dtOrdered = '" + DateTime.Today + "', intOrderedBy = " + user + " where intRequestId in (" + requestId + ")";
 
                c.InsertUpdateDelete(sql);
 
                Response.Clear();
                Response.ContentType = "application/vnd.ms-excel";
 
                Response.AddHeader("Content-Disposition", "attachment; filename=NSSRequest" + DateTime.Today + ".xlsx");
                Response.BinaryWrite(package.GetAsByteArray());
                Response.Flush();
                Response.Close();
 
                Page.ClientScript.RegisterClientScriptBlock(GetType(), "CloseScript", "redirectParentPage('ManageRequests.aspx')", true);
 
or this one as well
 Page.ClientScript.RegisterClientScriptBlock(GetType(),"CloseScript", "refreshParentPage()", true);
            }
        }
    }







































































Marin Bratanov
Telerik team
 answered on 09 May 2014
1 answer
114 views
We want to include a special node item at the top of the DropDownTree that when checked by the user would toggle the embedded treeview's _checkChildNodes property.  Of course, when the "special" item is checked DropDownTree automatically adds it to the Entry area.  Is it possible to remove this newly added entry but keep the node checked?

Thanks...Bob Baldwin
Trabon Solutions
Shinu
Top achievements
Rank 2
 answered on 09 May 2014
1 answer
113 views
I noticed this on the demo for batch editing and it is impacting my application as well.  If you edit the value in a cell and then scroll the page, the edited value is ignored and the cell resorts to the value that was previously in the cell.  Is there anyway to work around this?

See attached picture for a visual.
Kostadin
Telerik team
 answered on 09 May 2014
1 answer
108 views
Hi there.

How do I get the interactive google charts to work inside a rad ajax panel? I want to be able to post back the panel and update the data for the charts and have them redraw.

Thanks in advance.
Chris
Marin Bratanov
Telerik team
 answered on 09 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?