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

I believe this is the last issue with the scheduler that I need fixed.  I want to know if there's a way through code to tell the difference between when they update an appointment through an advanced form or when they simply drag the appointment to another date?  I want to do this in the AppointmentUpdate method.
T. Tsonev
Telerik team
 answered on 26 Sep 2008
2 answers
101 views

Hello

i have a GridTemplateColumn that this column have a sub column.
this sub column type is numerical
i want add a sum of this column in footer

i previus do this for GridBounColumn with below code

if (e.Item is GridFooterItem)
{
            GridFooterItem FooterItem = e.Item as GridFooterItem;
            FooterItem["PriceTest"].Text = String.Format("{0:n0}", Convert.ToDouble(Sum_Total));
 }

Can I Do this

Thanks
Davari

Princy
Top achievements
Rank 2
 answered on 26 Sep 2008
2 answers
148 views
Hello,

I don't know if this is the case with other builds as I have only the latest build on my system (2008.2.826), but I am seeing an anomaly with RadScheduler and RadToolTip that I can easily reproduce in the examples.

I am running this example from the Live Demos:

/Scheduler/Examples/RadToolTip/DefaultCS.aspx

All is well in the demos - when you hover over an appointment, the custom tooltip appears, no problem.  However, when I attempt to change the day's start time to 7am (instead of the default 8am) by inserting into DefaultCS.aspx.cs at the end of the Page_Load event the following line:

RadScheduler1.DayStartTime = new TimeSpan(7, 0, 0);

The start time is changed to 7am, but now the RadToolTip no longer appears.  You get the "Loading..." message, then it immediately goes away and no tooltip pops up.

This behavior in the demos is identical to what I am seeing in my production code.  Is there another step (some kind of rebind) that needs to be done, or is this a bug?

Thanks in advance for any feedback.

  - Tony
Solutionwhere
Top achievements
Rank 1
 answered on 26 Sep 2008
1 answer
103 views
I am looking at the example that talks about how to save grid state on the server: Saving grid settings on a per user basis.  This works fine except the column positions are not saved.  I've enabled the resizing options in the grid..

<

Resizing ResizeGridOnColumnResize="true" AllowColumnResize="true"/>


This causes resize to occur on the client but unless I post back the col positions are not saved.  Because my column view state is disabled, I am performing server order changes on the server.  Is there something similar for column resize?  How can I force a post back to so that the column sizes are stored when changed?


Thanks,

Iana Tsolova
Telerik team
 answered on 26 Sep 2008
2 answers
134 views
I read this topic below:

http://www.telerik.com/help/aspnet-ajax/grdgettingcellvaluesforselectedrowsclientside.html

But my scenario is like this:
1.> I have 3-level heirarchy.
2.> In my client-side script, it is possible for a user to select a row that belongs to any heirarchy
3.> What I want to retrieve is a value on one of the fields from the 1st level of the hierarchy

The code sample on the link works fine if I select a row that belongs to the 1st level of the grid itself. If I select the second and third levels, wrong values are retrieved.
Eric
Top achievements
Rank 1
 answered on 26 Sep 2008
3 answers
144 views

Respected sir,

 

Thank you for giving me solution to expand collapse functionality. Of rad grid

 

 protected void RadGrid1_PreRender(object sender, EventArgs e) 

    { 

        foreach (GridDataItem item in RadGrid1.MasterTableView.Items) 

        { 

            if (item.Expanded) 

            {  

foreach (GridTableView childTableView in item.ChildItem.NestedTableViews)

                {

                  

                    foreach (GridDataItem childitem in childTableView.Items)

                    {

                        childitem.Expanded = true;

                                        }

                              }

            } 

        } 

    } 

 

 

 

, now I want to call this function on update event of parent. I.e. if I click on update button its child items should expand.

Following is the code I have written for same,

 

protected void gvClientSetup_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)

    {

        if (e.CommandName != "ExpandCollapse")

        {

            if (e.Item.OwnerTableView.Name == "gvClientSetup")

            {

 

                if (e.CommandName == "PerformInsert" || e.CommandName == "Update")

                {

                    gvClientSetup_Insert_Update(source, e);

                    gvClientSetup_PreRender(source, e);  

                               }

                                bindGrid()

                      }

               }

}             

 

It jump to pre render procedure , but  if (item.Expanded)  returns false

How should I make this to return true so that it will expand child items

 

Thanks.

Ajay

ajay
Top achievements
Rank 1
 answered on 26 Sep 2008
2 answers
105 views
$0I have a scenario in which I dont want to show the Filter Row and want to handle filtering through my controls and not extending the existing functioanilty and want to do something like this when ever a person clicks Search button$0$0protected void btnSubmit_Click( object sender , EventArgs e )$0$0{ $0$0ClearFilters();$0$0if (ValidationManager.IsNotEmpty(ddlSearch1.SelectedValue))    $0$0{     $0$0 GridColumn Columnn = Grid.MasterTableView.GetColumn("Column1");      Columnn.CurrentFilterFunction = GridKnownFunction.EqualTo;      Columnn.CurrentFilterValue = ddlSearch1.SelectedValue;    $0$0}   $0$0 if (ValidationManager.IsNotEmpty(ddlSearch2.SelectedValue))   $0$0 {     $0$0 GridColumn Columnn = Grid.MasterTableView.GetColumn("Column2");      Columnn.CurrentFilterFunction = GridKnownFunction.EqualTo;      Columnn.CurrentFilterValue = ddlSearch2.SelectedValue;        $0$0  }   $0$0 if (!ddlStatus.SelectedValue.Equals("All"))    {     $0$0 GridColumn Columnn = Grid.MasterTableView.GetColumn("Reviewed");      Columnn.CurrentFilterFunction = GridKnownFunction.EqualTo;      Columnn.CurrentFilterValue = ddlStatus.SelectedValue;  $0$0  }$0$0Grid.DataBind();$0$0}$0$0$0$0$0But the grid is not recocnixing the filters that I apply. Any help would be awesome $0
sharma_deepak
Top achievements
Rank 1
 answered on 26 Sep 2008
8 answers
259 views
Hi all,

Using the latest trial-version of the ajax-controls, my treeview loads-on-demand from a web service. This works brilliantly and looks shhweeeet! :-)

The problem is that the child-level inherits the "checkboxes=true" property from the treeview-control and there doesn't seem to be a way turn that off! I need only my top-levels to be checkable - is there any way to obtain this functionality?

Thanks in advance,

/Don.
DonRex
Top achievements
Rank 1
 answered on 26 Sep 2008
2 answers
77 views
Hi

I am new to the radGridView windows control, may I ask a couple of questions?

1. I have a data source of 20 columns/properties, but i only require to display 5 of them in the grid. I have manually added the columns that I require to the grid. When binding to the data source all of the remaining columns are loaded as well, how can I stop this auto generation of columns?

2. In the Property Builder design view of the grid I, have created a view and added the required columns. Can I add another view and add another set of columns (all from the same data source)?

Thanks

P
Paul Gallen
Top achievements
Rank 1
 answered on 26 Sep 2008
1 answer
127 views
Hi,

 I have come across a rare bug in the Rad Upload control. when the file size exceeds 5000 KB, not only the upload fails completely but it blocks the page from being posted back, and the "Internet Explorer cannot display the webpage" is shown instead.

I tried to hook the upload error event in "protected void RadUpload1_ValidatingFile(object sender, ValidateFileEventArgs e)"

But break point doesn't reach even there.

Please help me to find a solution for this.

Thanks in advance.
Edwin
Atanas Korchev
Telerik team
 answered on 26 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?