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

My requirement is that i need tool tips with rounded corners to be put on my project. The current tool tips have a square/ rectangle border and there seems to be no skin with a rounded rectangle border.

Could you please help me.

Regards,
Ayshwarya
Marin Bratanov
Telerik team
 answered on 07 Jun 2011
3 answers
109 views
Hi,

I am using RadTextbox in our application . I have a Radwindow on which we can add user. The problem is that a linkbutton on that window is used to generate password .User can edit the system generated password and can save it. For example: if the system generated a password ‘YYUTRE’. Now user modified the password to ‘YYUTREQWE’. System will display all the characters of the password which are system generated and all the manually entered characters as hidden.For example: If the user clicks on ‘Generate Password’ and system generates ‘YYUTRE’ and then user adds ‘YTU’ to it. Then the password will look like YYUTRE●●●.  I want to achieve this functionality . Please suggest how can I make the RadTextbox TextMode both text and password.


Thanks,
Rahul
Tsvetina
Telerik team
 answered on 07 Jun 2011
1 answer
57 views
Hi all,

When I added some controls to the panelbar, say textbox (regular or radTextBox),
The item's ID are not recognized - no Item is recogzined.

any ideas?

Thanks!
Princy
Top achievements
Rank 2
 answered on 07 Jun 2011
2 answers
77 views
Hello,

I've created a portal page much like the one from this example:

http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx

My problem is that I have one particular dock with a dynamic user control containing a RadListView. I've set AllowPaging = true and created the Paging mechanism as such in my LayoutTemplate:
<div style="float: left; margin-left: 30%;">
    <asp:Button runat="server" ID="btnFirst" CommandName="Page" CommandArgument="First"  
             Text="First" Enabled="<%#Container.CurrentPageIndex > 0 %>" Font-Size="10px" />
    <asp:Button runat="server" ID="btnPrev" CommandName="Page" CommandArgument="Prev"
             Text="Prev" Enabled="<%#Container.CurrentPageIndex > 0 %>" Font-Size="10px" />
    <span style="vertical-align: top; position: relative; top: 4px">Page
            <%#Container.CurrentPageIndex + 1 %>
             of
             <%#Container.PageCount %>
   </span>
   <asp:Button runat="server" ID="btnNext" CommandName="Page" CommandArgument="Next" Font-Size="10px"
            Text="Next" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
    <asp:Button runat="server" ID="btnLast" CommandName="Page" CommandArgument="Last" Font-Size="10px"
              Text="Last" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
</div>

My problem is that the paging isn't working as in the example. In the example you have a datasource from a .rss, but in my code I am linking the datasource to a List<T> type. I also noticed that every time i press 'next' or 'prev' it triggers the page_load or onneeddatasource methods which recreate and bind the data again...so maybe this is whats causing the issue. But I don't know how to get around to this. I tried using Page.Ispostback in my user Control but fail to get the correct postback because it is getting the state of the Parent page's postback and not the usercontrol's.
Does anybody know how to set up paging correctly in this scenario?

Thanks!
Pero
Telerik team
 answered on 07 Jun 2011
1 answer
103 views
I am using Telerik on my page ..now i need password strength Control i got it fro asp ajax when i change the script Manager From RAd script Manager to toolkit script Manager it shows me Js Error.Below
Error: Sys.ArgumentNullException: Value cannot be null.Parameter name: panelsCreated[6].Send me the solution as soon as possible
Vasil
Telerik team
 answered on 07 Jun 2011
4 answers
165 views
Hi,
Is it possible to style header of columns in excel in ExcelExportCellFormatting event?
I have to add border to the first row with column name in excel.
wnl
Top achievements
Rank 1
 answered on 07 Jun 2011
1 answer
86 views
Hello everyone,

 I have a gridview that has a link button in it. Whenever the user clicks on the link button they are redirected to a  web page. the web page is same, but displays different data. There is a button at the top of the gridview that says export to MS word. whenever that button is clicked, I need to export all the web pages that the link button  redirects to into ms word. so for e.g.

A                B                C
12              xyz               PQR
13              RST             jpn

Clicking on any item in column  C redirects to a web page.
I want that when the user clicks on the ms word button then all these web pages are exported to MS word as seperate pages.

Please let me know if it is possible. I want to know if there is any elegant solution in Telerik controls.

Any help will be greatly appreciated.
Tsvetoslav
Telerik team
 answered on 07 Jun 2011
2 answers
205 views
Hi,

I'm wondering if there's an easy way to always displays both of the sort icons (up and down) for all columns in a grid, (when AllowNaturalSort is set to false), all of the time. I know I can add the icons to the header cell myself, but was wondering if there was a cleaner approcach.

I know that the out of the box functionality is for a column to be clicked on, then the sort an icon appears beside the title letting the user see the column that we're sorting on and allowing them to "reverse" the sort.

The reason for this is the business user wants to limit the number of mouse clicks used for sorting... if this makes sense :-)

Thanks in advance for your help.


Rgds
Liam
Liam
Top achievements
Rank 1
 answered on 07 Jun 2011
1 answer
40 views
Hi All,

I would like to ask that I am migrating from Classic RadMenu to ASP.NET AJAX radMenu, following is my code for Classic control. Can any please tell me code for ASP.NET AJAX



MenuGroup TopGroup = new MenuGroup(rmColumnPicker);
TopGroup.CssClass = "CP_MenuGroup";
rmColumnPicker.RootGroup = TopGroup;


Telerik.WebControls.MenuItem miRoot = new Telerik.WebControls.MenuItem(this.rmColumnPicker.RootGroup);
miRoot.ID = "miRoot";
miRoot.Width = 164;
miRoot.Text = "Column Picker";
miRoot.RightLogo = "../RadControls/Menu/Skins/IWFAlertMenu/dropdown.gif";
miRoot.RightLogoDisabled = "../RadControls/Menu/Skins/IWFAlertMenu/dropdownDisabled.gif";
miRoot.RightLogoClicked = "../RadControls/Menu/Skins/IWFAlertMenu/dropdown.gif";
miRoot.CssClass = "CP_MainItem";
miRoot.CssClassOver = "CP_MainItemOver";
miRoot.CssClassDisabled = "CP_MainItemDisabled";
this.rmColumnPicker.RootGroup.AddItem(miRoot);

rmColumnPicker is my Classic RADMENU
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2011
1 answer
127 views
I can't seem to get to the grid in a function
the function throws a null object error
        <telerik:RadGrid ID="rgEditOrder" OnNeedDataSource="rgEditOrder_NeedDataSource" OnItemCommand="rgEditOrder_ItemCommand" OnItemUpdated="rgEditOrder_UpdateRow" OnItemCreated="rgEditOrder_OnItemCreated" runat="server">
        <GroupingSettings CaseSensitive="false" />
        <MasterTableView DataKeyNames="OrderSeq" AutoGenerateColumns="false" AllowSorting="true" AllowPaging="true" AllowFilteringByColumn="False" EditMode="InPlace" >
        <Columns>
            <telerik:GridBoundColumn UniqueName="StoreNumber" DataField="StoreNumber" HeaderText="Store #" DataFormatString="{0:#####}" DataType="System.Int32" ReadOnly="True">
                <HeaderStyle Width="40px" />
            </telerik:GridBoundColumn>
a bunch of columns
            <telerik:GridTemplateColumn UniqueName="Qty" HeaderText="Cases" >
                <ItemTemplate>
                    <asp:Label ID="lblQty" Text='<%# Bind("Qty") %>' Width="40px" runat="server" />
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadNumericTextBox ID="rntbQty" Text='<%# Eval("Qty") %>' MinValue='<%# Bind("Qty") %>' Width="40px" runat="server">
                        <NumberFormat DecimalDigits="0" />
                    </telerik:RadNumericTextBox>
                </EditItemTemplate>
                <HeaderStyle Width="40px" />
            </telerik:GridTemplateColumn>
more columns
            <telerik:GridBoundColumn UniqueName="OrderSeq" DataField="OrderSeq" DataType="System.Int64" Visible="false">
            </telerik:GridBoundColumn>
        </Columns>
        </MasterTableView>
        <ClientSettings EnablePostBackOnRowClick="true" >
            <ClientEvents OnRowDblClick="RowDblClick" />
        </ClientSettings>
        </telerik:RadGrid>
<head id="Head1" runat="server">
<title>Edit Order</title>
<script language="javascript" type="text/javascript">
<!--
// this function handles the onbeforeprint event of the body object
function window_onbeforeprint()
{
    // idprint is the id assigned to the div tag of the javascript
    // injected into the response object in the code behind which
    // actually prints the screen
    var divEle = document.getElementById("idPrint");
    // remove the display=none i.e. show the div element
    if (divEle != null)
    {
         divEle.style.display = "";
    }
 
    // hide the div elements
    idShow.style.display="none";
  //  idShow.style.display="none";
  //  idShow1.style.display="none";
    idShow1.style.display="none";
    idHeader.style.display="none";
}
// this function handles the onafterprint event of the body object
function window_onafterprint()
{
    // idprint is the id assigned to the div tag of the javascript
    // injected into the response object in the code behind which
    // actually prints the screen
    var divEle = document.getElementById("idPrint");
    // hide the div element
    if (divEle != null)
    {
         divEle.style.display = "none";
    }
 
    // remove the style.display='none'-show the div element
    idShow.style.display="";
 //   idShow1.style.display="";
    idShow1.style.display="";
    idHeader.style.display="";
}
var idx = 0;
function RowDblClick(sender, eventArgs) {
    idx = eventArgs.get_itemIndexHierarchical();
    sender.get_masterTableView().editItem(idx);
}
 
// this function is called on the click event of the Finalize Order button
// it is wired to the button in the page load event  
function check_input() {
    // both the first and last name need to be entered-if either of them is not
    // popup message box and cancel update
    var strName = document.getElementById('txtFirstName');
    if (trim(strName.value) == "") {
        alert("Please Enter First Name");
        return (false);
 
    }
    strName = document.getElementById('txtLastName');
    if (trim(strName.value) == "") {
        alert("Please Enter Last Name");
        return (false);
    }
    return (true);
}
// use regular expression to format first or last name
// per Derek-remove any imbedded white space
function trim(str) {
    return str.replace(/^\s+|\s+$/g, '');
}
// this functiom was added because the code behind is looking for it 
function PrintPage() {
    return true;
}
-->
</script>
</head>
protected void rgEditOrder_OnItemCreated(object source, GridItemEventArgs e)
{
    StringBuilder sb;
    GridEditableItem geItem;
    TableCell tcQty;
    RadNumericTextBox rntbQty;
    char DoubleQuote;
    string EscapeChar,str;
     
    DoubleQuote = (char) 34;
    sb = new StringBuilder(DoubleQuote);
    EscapeChar = sb.ToString();
    str = DoubleQuote.ToString();
    if (e.Item.IsInEditMode)
    { }
    else
        return;
 
    if (e.Item is GridEditableItem)
    { }
    else
        return;
 
    geItem = (GridEditableItem)(e.Item);
    sb = new StringBuilder("<script language=");
    sb.Append(@"'");
    sb.Append("javascript");
    sb.Append(@"'");
    sb.Append(" ");
    sb.Append(@"'");
    sb.Append("text/javascript");
    sb.Append(@"'");
    sb.Append(">");
    sb.Append("function QtyOnValueChanged(sender, eventArgs) { ");
    sb.Append("alert(");
    sb.Append(@"'");
    sb.Append("gorkomatic");
    sb.Append(@"'");
    sb.Append("); ");
    sb.Append("var grid = $find(");
    sb.Append(@"'");
    sb.Append("<%= ");
    sb.Append("rgEditOrder.ClientID");
    sb.Append(" %>");
    sb.Append(@"'");
    sb.Append(").get_masterTableView(); ");
    sb.Append("grid.updateItem(grid.get_dataItems()[");
    sb.Append(geItem.DataSetIndex.ToString());
    sb.Append("].get_element()); ");
    sb.Append("alert(");
    sb.Append(@"'");
    sb.Append("qty on value changed");
    sb.Append(@"'");
    sb.Append("); }");
    sb.Append("</script>");
    str = sb.ToString();
    rcBlock.Controls.Add(new LiteralControl(str));
 //   ScriptManager.RegisterStartupScript(this,this.GetType(), "Update", str, false);
     
    tcQty = geItem.Cells[1];
    rntbQty = (RadNumericTextBox)tcQty.FindControl("rntbQty");
    if (rntbQty == null)
        return;
    rntbQty.ClientEvents.OnValueChanged = "QtyOnValueChanged";
}
Veli
Telerik team
 answered on 07 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?