Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
Hi,
I am new in Rad control implementation in ASP.NET,I am using two RadListBoxes in my project.
when i select an item at Source RadListbox then destination RadListBox is flickering,
i used Update panel the whole page is not flickring but only inside RadListBox(at Destination) is flickering.
i used OnTexrtChanged server event and made autopostback=true at source side.

so how to avoid flickering after postback happen?

Please support.

Thanks & Regards,
ShanthKumar Naik
Bozhidar
Telerik team
 answered on 11 May 2012
4 answers
137 views
Hey guys,
Is there a way to set a tool tip or something similar for the filter icon in the grid? I was hoping to have a distinct one for each column. Is there a setting for this?
Thanks
mdk
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 May 2012
1 answer
218 views
Hello Team,

i would like to use all telerik controls in my page to have the same look and feel.
Can u please suggest which control i can use to have the functionality of Asp.Net CheckboxList

Thanks in advance,
Hari
Slav
Telerik team
 answered on 11 May 2012
1 answer
167 views
Hi,
I am using 2 Radlistbox controls in my application for trnasferring items.
the item is transferring well when i press inbuilt transfer button but same it not working on server side after publishing my application in IIS.
i wrote below code:
<telerik:RadListBox runat="server" ID="RadListBoxSource" OnItemDataBound="RadListBoxSource_ItemDataBound"
OnTransferring="RadListBoxSource_Transferring" AllowTransferOnDoubleClick="true" AutoPostBack="true"
AllowTransfer="true" SelectionMode="Multiple" TransferToID="RadListBoxDestination"
AutoPostBackOnTransfer="true" OnSelectedIndexChanged="RadListBoxSource_SelectedIndexChanged">
</telerik:RadListBox>

<telerik:RadListBox runat="server" ID="RadListBoxDestination" AllowTransferOnDoubleClick="true"
EnableDragAndDrop="false" OnSelectedIndexChanged="RadListBoxDestination_SelectedIndexChanged"
SelectionMode="Multiple" OnItemDataBound="RadListBoxDestination_ItemDataBound" AutoPostBack="true"
AutoPostBackOnTransfer="true" />

in c# code behind:

protected void RadListBoxSource_Transferring(object sender, RadListBoxTransferringEventArgs e)
        {            
                if (e.SourceListBox.ID == "RadListBoxSource")
                {
                    if (e.Items.Count == e.SourceListBox.Items.Count)
                    {
                        RadListBoxSource.ClearSelection();
                    }
                    if (RadListBoxSource.SelectedIndex == -1)
                    {
                        if (e.SourceListBox.ButtonSettings.ShowTransferAll == true)
                        {
                            for (int i = 0; i < RadListBoxSource.Items.Count; i++)
                            {
                              if (RadListBoxSource.Items[i].Text == RadListBoxSource.Item[i].Value)
                                    RadListBoxSource.Items[i].Selected = false;
                                else
                                    RadListBoxSource.Items[i].Selected = true;
                            }
                            foreach (RadListBoxItem item in RadListBoxSource.SelectedItems)
                            {
                                AddToDestination(item.Text, item.Value);
                                BindListBoxes();
                            }
                            e.Cancel = true;
                        }                       
                    }
                    else
                    {
                        LeftLstboxSelection();
                        e.Cancel = true;
                    }
                }
                if (e.SourceListBox.ID == "RadListBoxDestination")
                {
                    if (e.Items.Count == e.SourceListBox.Items.Count)
                    {
                        RadListBoxDestination.ClearSelection();
                    }
                    if (RadListBoxDestination.SelectedIndex == -1)
                    {

                        if (e.SourceListBox.ButtonSettings.ShowTransferAll == true)
                        {
                            for (int i = 0; i < RadListBoxDestination.Items.Count; i++)
                            {
                   if (RadListBoxDestination.Items[i].Text == RadListBoxDestination.Items[i].Value)
                                    RadListBoxDestination.Items[i].Selected = false;
                                else
                                    RadListBoxDestination.Items[i].Selected = true;
                            }
                            foreach (RadListBoxItem item in RadListBoxDestination.SelectedItems)
                            {
                                AddToSource(item.Text, item.Value);
                            }
                            BindListBoxes();
                            e.Cancel = true;

                        }
                    }
                    else
                    {
                        RightLstboxSelection();
                        e.Cancel = true;
                    }
                }
                if (RadListBoxDestination.Items.Count == 0)
                {
                                    
                    btnExportTemplate.CssClass = "my_custom_button_gray_l";
                    btnExportTemplate.Enabled = false;
                }
                else
                {                                   
                    btnExportTemplate.CssClass = "my_custom_button_l";
                    btnExportTemplate.Enabled = true;
                }          
           
        }

after publishing on server item is not tranferring when  double click or selecting item.

Please support.waiting for quick response from Telerik Team


Thanks & Regards,
Santhosh Naik
Dimitar Terziev
Telerik team
 answered on 11 May 2012
1 answer
69 views
Hello,

I tried to setup server side autoload with a combobox in an ascx control - however it didn't seem to work.  Tracing in fiddler I could see the requests to the page but a breakpoint was never reached.

Is this a supported scenario, or would I need to use a web service or page method?


Also ... is it possible to add a 'context key' or something to the control that's included in the load on demand requests?  For example, if I'm loading foo's for a given customer, I need the customer ID and I was hoping to set a value on the control during page load... rather than have to retrieve it every ajax request.

Thanks
Adam
Top achievements
Rank 1
 answered on 11 May 2012
2 answers
69 views
The build in filtering features of RadGrid are great in most cases, but there is still room for improvements I feel. One are is what happens after you filter, if you want to do multiple searches (filterings) after one another, which are not related to each other (like in a Customer Telephone support). This means that the customer service rep would have to manually clear the filters in order to be able to search for something else. This is especially tricky if you have enabled the AutoPostBackOnFilter which means that when you clear the previous filter, and moves to another filter, a select for EVERYTHING will be executed (as there now is no filter).

As far as I know, there is no "ClearFilterAfterSelect" option on the RadGrid, which could be a solution to this problem. The idea would of course be to clear (reset) the filters after a search/filter has been completed. What we have done is to implement this ourselves as:
       

foreach (GridColumn column in radGrid.MasterTableView.Columns)
{
            column.CurrentFilterFunction = GridKnownFunction.NoFilter;
            column.CurrentFilterValue = string.Empty;
 }

radGrid.MasterTableView.FilterExpression = string.Empty;

after the Select has been executed, but it would be nice to have this option. Or perhaps it already exists?

Also, it would be interesting to know if there are any drawbacks to this (besides having to fill in filter data again of course)?
John
Top achievements
Rank 1
 answered on 11 May 2012
0 answers
72 views
in my project i am using radtabstrip with radmultipage and in each page i am using one user control. so now my problem is intially i have added the respective user control to the respective tab upto this fine.
problems are

1)when ever i clicked on the tab i want reload that tab user control only, how to do that?
2)each and every time all tabd user controls are getting loaded how to prevent that?

thanks,
Burepalli V S Rao.
Burepalli V S Rao
Top achievements
Rank 1
 asked on 11 May 2012
3 answers
233 views
I have a grid which I have delete , edit and addnew buttons. standard buttons nothing more.
The update works fine.  User clicks on it and then makes changes and presses standard grid on line edit check button and the codebehind fires.  When the user clicks on the delete button a row is immediatly deleted from the grid but no code behind is executed.  Now if I click on another control that forces a autopostback then all of a sudden the codebehind fires.  Do I need to set a property i am not aware of?

<Columns><telerik:GridEditCommandColumn ButtonType="ImageButton"
                                FilterControlAltText="Filter EditCommandColumn column"></telerik:GridEditCommandColumn><telerik:GridClientDeleteColumn ButtonType="ImageButton"
                                FilterControlAltText="Filter column1 column"
                                UniqueName="column1">
                                </telerik:GridClientDeleteColumn>
                                  <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="MMType">
                                    <ItemTemplate>
                                      <asp:Label ID="lblMMType" runat="server"><%# DataBinder.Eval(Container.DataItem, "MultiMediaLookupText")%>
                                      </asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                      <asp:DropDownList ID="MM_Dropdown" runat="server"  />
                                    </EditItemTemplate>
                                  </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="MultiMediaText" HeaderText="MultiMediaText" UniqueName="MultiMediaText" />
                                </Columns>
Saro
Top achievements
Rank 1
 answered on 10 May 2012
1 answer
137 views
Hi,

How to find each transfer button id of RadListbox  control in Transferring event using c# code behind

Thanks Regards,
S.Naik
Richard
Top achievements
Rank 1
 answered on 10 May 2012
2 answers
200 views
Ok so i am using SiteFinity and playing with the RadToolTipManager. Because this is SiteFinity, my RadToolTipManager is inside a UserControl. That said i am trying to dynamically load the UserControl for the RadToolTipManager from this UserControl... Now that i have confused everyone sufficients, i am also trying to access properties within the RadToolTipManager Control i am loading Dynamically. I am frustrated cause none of the example on the Telerik site show the code behind of the user control.

I need help and i need help BAD...

So here are the details:

Results.ascx.cs

On an ItemDatabound mothd i add the control to the RadToolTipManager
RadToolTipManager1.TargetControls.Add(((Label)rpti.FindControl("lblFlightNum")).ClientID, ""true); 

As per the examples the code behind here has the following methods which the RadToolTipManager calles:
    protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) 
    { 
        this.UpdateToolTip(args.Value, args.UpdatePanel); 
    } 
 
    private void UpdateToolTip(string elementID, UpdatePanel panel) 
    { 
        Control ctrl = Page.LoadControl("~/UserControls/PFV_3.0_TooltipControls/FlightInformation.ascx"); 
        panel.ContentTemplateContainer.Controls.Add(ctrl); 
 
        //ProductDetails details = (ProductDetails)ctrl;
        //details.ProductID = elementID; 
    } 

Notice above i have commented out the lines where the property on the loaded control is accesses as i do not know how ProductDetails is inherited down and there is no explaination of this anywhere... If it were part of the ASPX page i might be able to access it but in my case it is part of a ASCX UserControl and being loaded dynamically.

So here is my UserControl i am trying to LoadOnDemand

FlightInformation.ascx.cs

using System; 
using System.Data; 
using System.Configuration; 
using System.Collections; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
 
public partial class UserControls_TooltipControls_FlightInformation : System.Web.UI.UserControl 
    string ParameterArray; 
    public virtual string Parameters 
    { 
        get 
        { 
            return ParameterArray; 
        } 
        set 
        { 
            ParameterArray = value; 
        } 
    } 
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 


Can someone please help me load this control Dynamically and have access to it property from the OnAjaxUpdate method!

Thanks in advance,

Duncan


InfySam
Top achievements
Rank 1
 answered on 10 May 2012
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?