Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
I have a Radgrid with a footer which contains sums for a few columns.  When I click to add a new row to the grid the new row appears below the footer row.  This just looks odd and feels wrong.  Is there any way to get new rows to appear as the last data row in the grid but still above the footer?

Thanks,

Mike
Daniel
Telerik team
 answered on 20 May 2010
4 answers
149 views
I fought with this for a few hours thinking it was something I was doing, but then I decided to look in IE and it looks fantastic there. See the screenshot. Is there a fix or workaround for this?

Thanks!
Mike
Michael
Top achievements
Rank 1
 answered on 20 May 2010
3 answers
218 views

Hi,

i am using RadMaskedTextBox (Telerik Version Q2 2009). I want to apply custom CssClass for it.

<telerik:RadMaskedTextBox ID="lblPhone" runat="server" CssClass="field_data_element" Mask="(###) ###-####" ReadOnly="true" TextWithLiterals="--" Width="100px"></telerik:RadMaskedTextBox>

My Css class goes like this,
.field_data_element 
{
font-family: Arial; 
font-weight: normal;
font-size: 12px;
color:#000000; 
background-color: #FEF4DE;
border: solid 1px #FEF4DE;
padding: 2px 2px 1px 2px;
white-space: nowrap; 
}

The css class properties are not getting reflected in RadMaskedTextBox. Can anyone know how to apply custom styles for RadMaskedTextBox please share with me.

Thanks.

 

 

 

 

 

Dimo
Telerik team
 answered on 20 May 2010
5 answers
727 views
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="" Name="" Path="~/js/AjaxExceptionHandling.js" />
        </Scripts>
    </telerik:RadScriptManager>

Error:

Error    15    System.Web.UI.ScriptReferenceCollection must have items of type 'System.Web.UI.ScriptReference'. 'asp:ScriptReference' is of type 'System.Web.UI.ScriptReference'.    C:\Development\Website\Main.aspx    82   

Why would I receive this error?  The last thing I did was upgrade from v415 to v619.

Hector
Top achievements
Rank 1
 answered on 20 May 2010
2 answers
192 views
Gotta be something simple I'm missing here.

I have a list view of Products.  I also have a tooltip.
<telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="ManualClose" MouseTrailing="true"  
        Width="450" runat="server" Animation="Resize" Sticky="true" EnableEmbeddedSkins="true" ShowCallout="true" OnAjaxUpdate="OnAjaxUpdate" Height="400" ContentScrolling="Auto" RelativeTo="Element" Skin="Telerik" AutoCloseDelay="0" Position="MiddleRight"> 
    </telerik:RadToolTipManager> 

In the code behind I attach the tooltip to the product Image in the listview.
protected void rlvWishlist_ItemDataBound(object sender, RadListViewItemEventArgs e) 
        { 
 
            var target = e.Item.FindControl("rbiProduct"); 
            if (Equals(target, null)) return; 
 
            var item = (RadListViewDataItem) e.Item; 

            RadToolTipManager1.TargetControls.Add(target.ClientID, 
                                                  e.Item.OwnerListView.DataKeyValues[item.DisplayIndex]["ProductID"].ToString(), 
                                                  true); 
        } 

I then use the OnAjaxUpdate to load a user control to display the contents of the tooltip.
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) 
        { 
            UpdateToolTip(args.Value, args.UpdatePanel); 
        } 
 
        private void UpdateToolTip(string elementID, UpdatePanel panel) 
        { 
             
 
            var ctrl = Page.LoadControl("~/UserControls/ucProductDetail.ascx"); 
            panel.ContentTemplateContainer.Controls.Add(ctrl); 
            var productDetail = (ucProductDetail) ctrl; 
            rlvWishlist.Rebind(); 
            productDetail.ProductID = Convert.ToInt32(elementID); 
        } 

The problem is; it works great when I load the listview initially.  However, if I rebind the list view with another set of products the OnAjaxUpdate still sends in the previous bound listview productIDs. I can see in the rlvWishlist_ItemDataBound that the new ProductID is being set in the target control add method, but when I invoke the tooltip by hovering over the image the args.Value is still the original bound set of data (ProductIDs).

I also tried clearing the tooltip target controls in the rlvWishlist_NeedDataSource, but that doesn't seem to work either.

Any help would be appreciated.

Thank you,
Tad


TAD RHODES
Top achievements
Rank 1
 answered on 20 May 2010
1 answer
154 views
If RadTabStrip and RadMultiPage are positioned in different ContentPlaceHolders of a Master Page, RadMultipage keeps presenting the fisrt view no matter wich tab you click. Is there a known workaround for this?

Thanks

Luis

Princy
Top achievements
Rank 2
 answered on 20 May 2010
2 answers
120 views
Hi,

I Have radgrid in my page. When i turn off view state and in pageindexchanged event when click next page i am getting nothing. Simply a blank page.  But when i turn on view state I am getting data in next pages. Is there any way to get the data. I cant turn on the view state due to performance issue.   Please see the code below for the reference.

.aspx

        <telerik:RadGrid ID="RadGrid1" OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged"
            AllowSorting="True" PageSize="20" ShowGroupPanel="True" AllowPaging="True" AllowMultiRowSelection="True"
            AllowFilteringByColumn="true" AutoGenerateColumns="false" EnableViewState="false" runat="server" GridLines="None"
            OnItemUpdated="RadGrid1_ItemUpdated" OnDataBound="RadGrid1_DataBound">


aspx.cs


public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }

    private void LoadData()
    {
        SqlConnection SqlConn = new SqlConnection("uid=tempuser;password=tempuser;data source=USWASHL10015\\SQLEXPRESS;database=CCOM;");
        SqlCommand cmd = new SqlCommand();
        cmd.Connection = SqlConn;
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.CommandText = "usp_testing";
        SqlDataAdapter da = new SqlDataAdapter(cmd);
        DataSet ds = new DataSet();
        da.Fill(ds);
        RadGrid1.DataSource = ds;
        RadGrid1.DataBind();
        //RadGrid1.ClientSettings.AllowDragToGroup = true;
    }

    protected void RadGrid1_PageIndexChanged(object source, Telerik.Web.UI.GridPageChangedEventArgs e)
    {
        //RadGrid1.Rebind();
        LoadData();
    }
Babu Puchakayala
Top achievements
Rank 1
 answered on 20 May 2010
3 answers
174 views
Hi

   I have a scenario in my application to display the radconfirm when the user changes the item in the radcombo.
   I am having my radcombo inside usercontrol and i am using the usercontrol in the aspx page to load the data.
   In order to trigger the onchange event i have added onclientselectedIndexcchanged event in codebehind and the corresponding Javascript event in the aspx page.
   The issue is that i am not able to retain the radconfirm because of the postback issue. 
    Please let me know if there are any other approaches to retain the radconfirm. To be clear i have not used any AJAX for my radCombo.

  Requirement:

            After the user changes the Item in the radCombo the user will get a confirmation message.
  
 Javascript:
 

 function TextChange(sender, eventArgs) {
         radconfirm("test", event, 350, 100, null, "test");
        }

 

Code Behind :

cmbRadCombo.RadCombo.OnClientSelectedIndexChanged = "TextChange";

Your earliest reply is appreciated.

T. Tsonev
Telerik team
 answered on 20 May 2010
2 answers
206 views
Hello everybody.

I have a simple question.

I have a page with 1 textbox and 1 grid.

My grid is in an ajax panel, and my textbox not. When I make some action in grid (insert, update, delete) I'm trying to change the textbox's value, in the event, like:

Grid Update Event:
TextBox1.Text = "blablabla";

but I can't. What's the best solution for this my friends?

Thanks.

Regards.
Silvio Silva Junior
Top achievements
Rank 2
 answered on 20 May 2010
1 answer
251 views
Is there a way to create a series of Filter expression items, pre-populate them and display them when the grid is first loaded?

I saw another post that showed this example, but I cannot get it to display.

 

RadFilterTextFieldEditor editor = new RadFilterTextFieldEditor();

 

RadFilter1.FieldEditors.Add(editor);

 

if (!IsPostBack)

 

{

editor.FieldName =

"MyColumnName";

 

editor.DataType =

typeof(int);

 

}

Iana Tsolova
Telerik team
 answered on 20 May 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?