Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 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
199 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
853 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
110 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
112 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
107 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
97 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
5 answers
841 views
Hello,

Does anyone know of a mask or a way to have the standard IP Address mask NOT require entering the leading 0s, i.e.

192.168.1.1 instead of 192.168.001.001.

<telerik:RadMaskedTextBox ID="RadMaskedTextBox2" Runat="server" Mask="<0..255>.<0..255>.<0..255>.<0..255>">  
</telerik:RadMaskedTextBox> 
 


-Steve
Vasil
Telerik team
 answered on 09 May 2014
3 answers
126 views
While reading the installation and deployment documentation for the Telerik ASP.NET AJAX tools, it states in several places that you need to install ASP.Net AJAX and provides a link to the ASP.Net AJAX toolkit downloads.  Is this really true?  I have tried several of the samples and do not have the ASP.Net AJAX toolkit installed and everything seems to run fine. 

Also there are a lot of references to Visual Studio 2005, 2008, and 2010 and Windows Server 2003, and IIS5 and 6.  No references to Visual Studio 2013 or Windows Server 2012, and IIS 8.  I am not sure what does or does not apply to the newer Visual Studio 2013, .Net 4.5, and IIS 8 as they are not mentioned in the docs.  It seems to me that the docs need an update or maybe just a new addendum of docs that apply to the newer tools and platforms.

Thanks,
Charlie
Rumen
Telerik team
 answered on 09 May 2014
1 answer
142 views
I want Select node value of dropdowntree at server side 
for that I used dropdowntree.selectedvalue,dropdowntree.selectedvalue but it is not working
Shinu
Top achievements
Rank 2
 answered on 09 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?