Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
294 views
Hello Anyone,
I guess i am missing something here. I have created an ITemplate as below and adding it to the FilterTemplate of one of the column of RadGrid. 

public class cblItemTemplate : ITemplate
{
    /// <summary>
    /// Create the template
    /// </summary>
    /// <param name="container"></param>
    public void InstantiateIn(Control container)
    {
        Panel pnl = new Panel();
 
        //checkbox
        CheckBoxList cbl = new CheckBoxList();
        cbl.ID = "cblCounty";
        cbl.AutoPostBack = false;
        cbl.DataBinding += cbl_DataBinding;
 
        //button
        Button btn = new Button();
        btn.ID = "btnApply";
        btn.Text = "Apply";
         
        //button
        Button btnClear = new Button();
        btnClear.ID = "btnClear";
        btnClear.Text = "Clear";
 
        pnl.Controls.Add(cbl);
        pnl.Controls.Add(btn);
        pnl.Controls.Add(btnClear);
 
        container.Controls.Add(pnl);
    }
 
    void cbl_DataBinding(object sender, EventArgs e)
    {
        CheckBoxList cbl = (CheckBoxList)sender;
        cbl.Items.Add(new ListItem("County1"));
        cbl.Items.Add(new ListItem("County2"));
    }
}

On first load, i see the template added to the column. But when i click on the Apply button, the template vanishes; i do not see it. I am adding the template on the ColumnCreated event of the radgrid as below:

protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
     if (col.UniqueName == "county")
     {
           var cbl = new cblItemTemplate();
           col.FilterTemplate = cbl;
     }
}

Can someone please let me know where i am going wrong? Do i need to add the filtertemplate in a different event?
Rumen
Telerik team
 answered on 13 Nov 2019
3 answers
148 views

I skipped Logincontrols in rfd like this:

 <telerik:RadFormDecorator ID="RadFormDecorator1" Skin="Default" Visible="true" DecoratedControls="All" ControlsToSkip="LoginControls,Buttons" EnableRoundedCorners="false" runat="server" />

but they are styled with rfd:

 

<table id="cph_content_Login1" class="rfdLoginControl" style="width:100%;border-collapse:collapse;" cellspacing="0" cellpadding="0">

What's wrong here?

 

Marc

Rumen
Telerik team
 answered on 13 Nov 2019
2 answers
242 views

Hello, I am using code like so to populate a RadAutoCompleteBox in ASP.NET:

RadAutoCompleteBoxNextID.Entries.Add(new AutoCompleteBoxEntry { Text = "ABC" });

RadAutoCompleteBoxNextID.Entries.Add(new AutoCompleteBoxEntry { Text = "DEF" });

RadAutoCompleteBoxNextID.Entries.Add(new AutoCompleteBoxEntry { Text = "GHI" });

 

How do I display a default value of "ABC" --  which is the first item in the Entries list -- in the AutoCompleteBox?

Gopi
Top achievements
Rank 1
 answered on 12 Nov 2019
14 answers
313 views

Hello,

if I press the edit button and the form template comes up modal the entry in the grid looks strange. See attachement.

Best, Rainer

Rumen
Telerik team
 answered on 12 Nov 2019
1 answer
129 views
Error while installing setup. windows cannot find http://www.telerik.com/products/aspnet-ajax.aspx?utm_sourse=tcp'
Vesko
Telerik team
 answered on 11 Nov 2019
5 answers
112 views

sometimes when i clicked the search,always showed the circle.

Can you help me why  Thanks.

Attila Antal
Telerik team
 answered on 11 Nov 2019
9 answers
388 views

My overall goal is to use a raddatepicker where weekend days and federal holidays are disabled. On PageLoad, the date picker is populated with a date which could be as far as 5 years in the future.

So far I have implemented the solution given by Eyup in this thread and get the almost desired result with OnDayRender.

However, by doing this, when i click on the calendar icon to show the calendar popup, it does a full post back. My understand is because the calendar popup wrapper is outside my ajax panel, right under the <body>.

How can i force the calendar popup wrapper to be created in my ajax panel?

Thank you

Gregory

Rumen
Telerik team
 answered on 11 Nov 2019
1 answer
128 views

Hi guys,

Thanks for your support in advance,

I have a user control, which has ajax in it for some dropdownlists. it works fine, but when I add a Radgrid into that page, the new grid doesn't work, maybe I miss to set the ajax settings for the grid.

 

Attila Antal
Telerik team
 answered on 11 Nov 2019
3 answers
301 views

Hello

Please I need help ,first  I am not an expert in Telerik  tools , As you can see in the attachments I have radgrid when User click grid row (context menu 1) appear  when user click Emplyee from cntx1 (Context menu 2) appear and (context menu 1) hide , when user click command from cntx2 call server side method and pass cntx1 & cntxt2  selected values.

 

thank you

Attila Antal
Telerik team
 answered on 11 Nov 2019
0 answers
110 views

I define a DropDownTree in RadAjaxPanel with LoadingPanel.

I open the DropDownTree and use keyborad ↑↓ to find a item, then I press enter key to select some one.

It will trigger Infinite loading.

(Mouse operation is working fine, but keyborad doesn't work.)

 

Can anyone help? THX~

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">

     <telerik:RadDropDownTree RenderMode="Lightweight" ID="rddtCustomer" runat="server" Width="300px" Skin="Default" AutoPostBack="true"               EnableFiltering="true" OnEntryAdded="rddtCustomer_EntryAdded" ></telerik:RadDropDownTree>

</telerik:RadAjaxPanel>

n/a
Top achievements
Rank 1
 asked on 11 Nov 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?