Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 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
94 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
75 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
566 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
40 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
157 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
1 answer
206 views
How can I deselect rows selected in a RadGrid (ID's are being stored in a session variable) on click of a Clear/Reset button?
Princy
Top achievements
Rank 2
 answered on 18 Sep 2013
1 answer
80 views
I have the following code for a radgrid. When i click on Add a little form comes up and when i fill it out and click insert, i am trying to loop through the form values but i don't know what exactly i should loop or how. Because its not really a form collection. Any help is very much appreciated.


protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["GridData"] == null)
            {
                DataTable table = GetTable();
                Session.Add("GridData", table);
            }
            DefineGridStructure();
        }
     
     
        private void DefineGridStructure()
        {
            RadGrid grid = new RadGrid();
            grid.ID = "RadGrid1";
            grid.NeedDataSource += new GridNeedDataSourceEventHandler(grid_NeedDataSource);
            grid.AutoGenerateEditColumn = true;
            grid.AutoGenerateDeleteColumn = true;
            grid.AllowAutomaticInserts = true;
            grid.Width = Unit.Percentage(100);
            grid.PageSize = 15;
            grid.AllowPaging = true;
            grid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
            grid.AutoGenerateColumns = false;
            grid.MasterTableView.Width = Unit.Percentage(100);
            grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.TopAndBottom;
            grid.AllowAutomaticDeletes = true;
            grid.AllowAutomaticUpdates = true;
            grid.InsertCommand +=grid_InsertCommand;
            grid.MasterTableView.DataKeyNames = new string[] { "RowNumber" };
            GridBoundColumn boundColumn = new GridBoundColumn();
            boundColumn.DataField = "RowNumber";
            boundColumn.HeaderText = "RowNumber";
            boundColumn.ReadOnly = true;
            grid.MasterTableView.Columns.Add(boundColumn);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "Size";
            boundColumn.HeaderText = "Size";
            grid.MasterTableView.Columns.Add(boundColumn);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "Description";
            boundColumn.HeaderText = "Description";
            grid.MasterTableView.Columns.Add(boundColumn);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "Quantity";
            boundColumn.HeaderText = "Quantity";
            grid.MasterTableView.Columns.Add(boundColumn);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "Duration";
            boundColumn.HeaderText = "Duration";
            grid.MasterTableView.Columns.Add(boundColumn);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "DurationType";
            boundColumn.HeaderText = "DurationType";
            grid.MasterTableView.Columns.Add(boundColumn);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "Amount";
            boundColumn.HeaderText = "Amount";
            grid.MasterTableView.Columns.Add(boundColumn);
            PlaceHolder1.Controls.Add(grid);
        }
     
        private void grid_InsertCommand(object sender, GridCommandEventArgs e)
        {
            // Looking to loop through the form so i can insert the values into the datatable
        }
     
         
     
     
     
        void grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            DataTable current = (DataTable)Session["GridData"];
            RadGrid grid = (RadGrid)sender;
            grid.DataSource = current;
     
        }
     
     
     
        static DataTable GetTable()
        {
            //
            // Here we create a DataTable with a few columns.
            //
            // Create Datatable to store all colums
            DataTable dt = new DataTable();
            DataRow dr = null;
            dt.Columns.Add(new DataColumn("RowNumber", typeof(string)));
            dt.Columns.Add(new DataColumn("Size", typeof(string)));
            dt.Columns.Add(new DataColumn("Description", typeof(string)));
            dt.Columns.Add(new DataColumn("Quantity", typeof(string)));
            dt.Columns.Add(new DataColumn("Unit", typeof(string)));
            dt.Columns.Add(new DataColumn("Duration", typeof(string)));
            dt.Columns.Add(new DataColumn("DurationType", typeof(string)));
            dt.Columns.Add(new DataColumn("Amount", typeof(string)));
            dr = dt.NewRow();
            dr["RowNumber"] = 1;
            dr["Size"] = string.Empty;
            dr["Description"] = string.Empty;
            dr["Quantity"] = string.Empty;
            dr["Unit"] = string.Empty;
            dr["Duration"] = string.Empty;
            dr["DurationType"] = string.Empty;
            dr["Amount"] = string.Empty;
            dt.Rows.Add(dr);
            return dt;
        }
Princy
Top achievements
Rank 2
 answered on 18 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?