Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Can we start the slideshow automatically on page load?
Pavlina
Telerik team
 answered on 09 May 2014
3 answers
206 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
464 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
140 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
207 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
866 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
119 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
115 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
1 answer
104 views
Can I set the monthly "more" link to go to the Agenda view instead of the Day view?

How? thanks!
Plamen
Telerik team
 answered on 09 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?