Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 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
89 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
98 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
279 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
183 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
245 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
7 answers
311 views
Hello
I'm facing an intersting issue

I want to select an item in a paged listview when the page is displayed.
The selected item key is stored in session

How can I achieve that?

Thanks and regards
Philippe


Jason Horspool
Top achievements
Rank 1
 answered on 10 May 2012
2 answers
130 views
Ever since we have installed newest Telerik release 2012 (Q1 sp1), I've started to notice one issue with page navigation for RadGrid.
I have provided three images to illustrate my point. Screen shot one and two everything is working properly  page navigation works fine, but when I am trying to click button 3 (screen shot 3)  grid does not navigate to third page and remains on a second page with buttons 1 and 2  selected. If I click once more on button 3, grid displays page 3 and the pattern repeats for all the other pages.

This particular grid is a bit unique it is totally dynamic and is build in code using column templates to handle variable number of columns and also to allow count and sum in a single column.

All other grids work as expected in latest release. Previous release 2011 Q3 Sp1 paging was working fine for all our grids.

Thanks
Pavlina
Telerik team
 answered on 10 May 2012
5 answers
134 views
Hi,

When we try the newer dll's (version 2012.1.215.40) we are facing problems, the grid's are getting messed up as shown in screenshot.
The older version 2010.2.826.35 works fine.

What is the fix for this?

Attached is the screenshot.
Pavlina
Telerik team
 answered on 10 May 2012
0 answers
119 views
Hello,
           var strClientID = getClientID(obj.id, "chkSelectAll") + "RgGridCt";
            var stClientRi = getClientID(obj.id, "chkSelectAll") + "RgGridR";
            var strClientRe = getClientID(obj.id, "chkSelectAll") + "rgGridRe";
       
    tableView = $find(strClientID).get_masterTableView();

In the above code, if the grid is not rgGridCt, tableview is throwing error.

In my page, I am having 3 different grids. If I select one of them, how can I pass the correct value so that tableview will not throw error.

TIA
Atchut
Top achievements
Rank 1
 asked on 10 May 2012
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?