Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hi,

I have been searching the forums (and internet at large) for examples of creating RadFilter dynamically (zero markup).  I have been able to do it piecing together samples and dissecting non-dynamic samples, but I always run into weird issues.  Right now I'm stuck at not being able to read expression values at the ProcessGroup step; the filters are intact, but values are always empty string.

I suspect there are samples out there that do what I'm trying to do so I'm just asking someone to point me to them.

1. create RadFilter dynamically at run time.
2. use dynamically-populated DropDown lists, and MultiSelect lists in my expressions (probably loaded at the ExpressionItemCreated event, think of populating a Zipcode list based on what the user selected in State)
3. after Apply, bind the filter to a RadGrid and load the grid.  The grid can't beloaded beforehand because it would return a zillion records without the filter applied, bogging down the server and creating long wait times for the user.

Thanks in advance,
JD  
Antonio Stoilkov
Telerik team
 answered on 18 Sep 2013
3 answers
170 views
I need to get the current height of a RadWindow in codebehind.  The "Height" property seems to be always the original height of the window, not the current height.

Failing that, I need some function on the client that fires after every postback on the client.
Marin Bratanov
Telerik team
 answered on 18 Sep 2013
1 answer
158 views
Hello.
I have a Radwindow that load a website in the middle of a webpage.
The website needs proxy setting to load and work but the webpage does not work with proxy.
In fact I cannot set proxy setting on my browser because in this case, the browser cannot load the webpage.
So the Radwindow content needs proxy setting and the main website(webpage) does not need. How can I handle it?
Marin Bratanov
Telerik team
 answered on 18 Sep 2013
1 answer
96 views
I have a scenario where I would like multiple Buttons on a RadToolBarDropDown to be checked, but in my code, each time a have one item where the checked property is true and then set the checked property of a second button to true, the checked property of the first button is now false.

Can only one Button on a RadToolBarDropDown be checked at one time? If multiples can be checked at one time, can you please provide an example as I seem to be missing something. Thanks!

Kerry
Kate
Telerik team
 answered on 18 Sep 2013
3 answers
122 views
If give my depth as static in aspx page it`s working fine.
<SelfHierarchySettings ParentKeyName="XXXXXXXXXX" KeyName="XXXXXXXX" MaximumDepth="5"/>

But when i try to change this dyanmically in .cs page it`s not working.
In which event i have to write the following code?
grdView.MasterTableView.SelfHierarchySettings.MaximumDepth = Convert.ToInt32(txt_DepNo.Text);

Eyup
Telerik team
 answered on 18 Sep 2013
1 answer
84 views
Hello,
I need to create a gauge with 2 ticks, but when I declare the second tick, the first is not displayed. Does anyone know if there is a way to obtain what I desire?

Thanks
Mario
Marin Bratanov
Telerik team
 answered on 18 Sep 2013
9 answers
576 views
Hi All,

I have a radGrid in a radTabStrip that has paging enabled like so:
        </telerik:RadTabStrip>
            <telerik:RadGrid ID="gridWORKORDERS" runat="server" OnRowDrop="gridWORKORDERS_RowDrop"  Height="400px"
                         AllowMultiRowSelection="false" EnableHeaderContextMenu="false" Width="444px" HorizontalAlign="Center"
                         OnItemCommand="radgridWORKORDERS_ItemCommand"
                         OnNeedDataSource="gridWORKORDERS_NeedDataSource">
 
            <MasterTableView DataKeyNames="pm_strWorkOrderID" Width="444px" HorizontalAlign="Center"
                             TableLayout="Fixed" ClientDataKeyNames="pm_strWorkOrderID"
                             AllowPaging="True"
                             AllowCustomPaging="true"
                             AutoGenerateColumns="false">
... etc.

In the code behind I have this:
protected void gridWORKORDERS_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
    int recordCount = 0;
    List<WorkOrderEx> workOrders = new List<WorkOrderEx>();
    string sessionTab = Session[_WO_FILTER_TAB] == null ? "Unassigned" : Session[_WO_FILTER_TAB].ToString();
    gridWORKORDERS.DataSource = null;
 
    switch (sessionTab)
    {
        case "Unassigned":
            // Need to do this in a couple of steps or the grid paging doesn't work properly
            recordCount = DbContext.WorkOrders.Where(f => f.AssignedTechs.Count <= 0).Count();
 
            // Save ourselves some time..
            if (recordCount > 0)
                workOrders = DbContext.WorkOrders.Where(f => f.AssignedTechs.Count <= 0)
                                      .OrderBy(x => x.WorkOrderId)
                                      .Skip(gridWORKORDERS.PageSize * gridWORKORDERS.CurrentPageIndex)
                                      .Take(gridWORKORDERS.PageSize)
                                      .Select(k => new WorkOrderEx(DbContext, k)).ToList();
            break;
 
        case "blah blah blah.. Looks very much like the first case statement.":
            break;
    }
 
    gridWORKORDERS.VirtualItemCount = recordCount;
    gridWORKORDERS.DataSource = workOrders;
    //gridWORKORDERS.Rebind();      <-- Enabling this blows everything up.. You know what I mean. :)
}

This whole thing kind of works.  I can't use .Bind() or .Rebind() because of the implicit binding that happens with this event. However, the paging doesn't work all that great.  If I page to the last page the final two records are displayed.  If I change tabs (yes in a tab strip) I manually call the NeedDataSource(null, null) to get the dataset to change from 'Unassigned' to some other filtered value of the data.  The problem is that the old data that was on the grid + the new data shows up! What the heck?  What I could use right now is a way to clear this grid of it's contents and bind it to a new list.  Where is the .ClearGridContents() method I so desire right now? Maybe a grid.Refresh thrown in for good measure.

So, long story short. How do I clear this darn grid and have it auto-bind (like i have a choice), with a fresh set of data that is artifact free?

Thanks,

Felix
BTW, I'm using OpenAccess which I find very easy to use.
Princy
Top achievements
Rank 2
 answered on 18 Sep 2013
1 answer
44 views
Hello!

I am using the RadScheduler with Timeline view and I want to order the row resource on two different things.

I've tried to use "Order by" in my sql syntax but the schedule is not working properly. The resources is showing in the different orders each time you update the page. The problem is not that common, it depends on how many meetings there is in the schedule.

Is there any other way then "Order by " to sort the resources that don't make my radscheduler all jumpy and not working. 

Thank you

Simon
Bozhidar
Telerik team
 answered on 18 Sep 2013
1 answer
63 views
Hi,
i am having a grid in which i used editmode and automatic insert mode but problem is when i am exporting that data to pdf or any other format the edit and delete keyword coming with data
i have attached the images for reference
how can i avoid this
Thanks
Princy
Top achievements
Rank 2
 answered on 18 Sep 2013
2 answers
158 views
Hello,

  I am trying to use the radasyncupload on ipad, but it is not working. It works on all the other browsers including the safari browser on my windows pc.
Any suggestions?

Appreciate the help
Thanks
Shinu
Top achievements
Rank 2
 answered on 18 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?