Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
188 views
Not sure if I need to call DataBind() when using NeedData Source:

protected void radGridRate_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("radGridRate_NeedDataSource");

            if (!e.IsFromDetailTable)
            {
                radGridRate.MasterTableView.DataSource = (DataTable)Session["dtServicesTopLevel"];
            }

        }

 
Thanks!
Dave Gilden MCSD / Ft. Worth

Pavlina
Telerik team
 answered on 24 Jan 2011
1 answer
75 views
How do we expand a specific panel from code? Like you could do with a MultiPageView or similar? Doesnt seem like each panel has an ID or similar?
Shinu
Top achievements
Rank 2
 answered on 24 Jan 2011
3 answers
156 views
We are investigating tekerik & devexpress scheduler (ASP.NET) for our intranet schedule app using by about 100 employees.
I would like to confirm if there is feature as below in telerik scheduler:
- Mark an scheduled item as completed.
1. Suppose I created a scheduled task. 
2. after ex 2 days, I completed this task.
3. I can manuaaly mark this task (by color or by checkmark or something else...) to indicate
    that this task has completed.
If there is this feature, could you can show a simple demo.

Thanks in advanced
cuongvt
Top achievements
Rank 1
 answered on 24 Jan 2011
4 answers
340 views
OK, I know that I can use the NestedViewTemplate and from the code in that template reference values of the MainView data item.  I have the example of using a NestedViewTemplate which contains another Grid and the gird in the template is bound to a DataSource server control.

I do not want to use SqlDataSource or any other data source control as my implementation is not utilizing these controls. I need to bind my grid in the NextedViewTemplate via code behind.

Problem, for testing I have an ASP:Label control that I am setting the Text property to a value from the Master Grid which works fine but, in the code behind event of RADGRID_ItemCreated when the NestedViewItem is the item being created the label control has not had it's Text property assigned yet.

Is there a more appropriate event I can use to bind my grid in the NestedViewTemplate to a value based on the corresponding row in the Master Table.

Here is a snippet of my current ASPX code:
<NestedViewTemplate> 
                    SessionID: <asp:Label ID="lblSessionID" runat="server" Text='<%# Eval("SessionID") %>' /><br /> 
                    Race Day ID:<asp:Label ID="lblRaceDayID" runat="server" Text='<%# Eval("RaceDayID") %>' /><br />                     
                                             
                            <telerik:RadGrid  
                                ID="rgLaps"  
                                runat="server"  
                                Skin="Default"
                                <MasterTableView  
                                    DataKeyNames="SessionLapID" 
                                    CommandItemDisplay="Top" 
                                    EditMode="InPlace"
                                    <CommandItemSettings AddNewRecordText="Add New Lap" RefreshText="Refresh" /> 
                                    <Columns> 
                                        <telerik:GridButtonColumn  
                                            UniqueName="LapsDeleteColumn"  
                                            Text="Delete"  
                                            CommandName="Delete" /> 
                                        <telerik:GridBoundColumn 
                                            UniqueName="LapNumber" 
                                            DataField="Number" 
                                            HeaderText="Lap Number" /> 
                                        <telerik:GridBoundColumn 
                                            UniqueName="LapTime" 
                                            DataField="Time" 
                                            HeaderText="Lap Time" /> 
                                        <telerik:GridBoundColumn 
                                            UniqueName="LapIgnore" 
                                            DataField="Ignore" 
                                            HeaderText="Ignore Lap" />                                                                                                                                     
                                        <telerik:GridEditCommandColumn  
                                            UniqueName="LapsEditCommandColumn"  
                                            CancelText="Cancel"  
                                            EditText="Edit"  
                                            InsertText="Insert"  
                                            UpdateText="Update" />                                         
                                    </Columns> 
                                    <EditFormSettings  
                                        CaptionFormatString="Edit details for lap with ID {0}"  
                                        CaptionDataField="SessionLapID"
                                        <FormTableItemStyle Width="100%" Height="29px" /> 
                                        <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2" /> 
                                        <FormStyle Width="100%" BackColor="#eef2ea" /> 
                                        <EditColumn ButtonType="ImageButton" /> 
                                    </EditFormSettings> 
                                </MasterTableView> 
                            </telerik:RadGrid> 
 
</NestedViewTemplate> 

Here is a snippet of the code from my code behind:
protected void rgRaceDaySessions_ItemCreated(object sender, GridItemEventArgs e) { 
      if (e.Item.ItemType == GridItemType.NestedView) { 
        // Bind grid that shows Laps. 
        RadGrid gridLaps = (RadGrid)e.Item.FindControl("rgLaps"); 
        Label lbl = (Label)e.Item.FindControl("lblSessionID"); 
        Label lblRace = (Label)e.Item.FindControl("lblRaceDayID"); 
 
        int sessionID = Utils.GetInteger(lbl.Text); 
        int raceID = Utils.GetInteger(lblRace.Text); 
 
        if (sessionID > 0) { 
            // Bind grid in nested view to data for SessionID being bound in Main View. 
        } 
      } 
    } 


Again, I do not want to use a DataSource server control in the ASPX page to do this binding.
Karl
Top achievements
Rank 1
 answered on 24 Jan 2011
1 answer
86 views
Hi,

            I require a small Clarification regarding the Custom Paging. Is it is Possible to create Paging Control as i have uploaded image. If it is How? Do we have any Examples in Telerik site?
Nikolay Rusev
Telerik team
 answered on 24 Jan 2011
3 answers
90 views

Hi, I get the following errors when I attempt to do the following...  (using hotfix build 2010.2.817.40)

1. Create a new RadControls Web Application  (accepting all default values)
2. Add a Scheduler Senario using based on 'Custom Edit Templates' (accepting all default values)
3. some unhandled exception errors appear on the 'RadSchedulerWebForm' (for RadScriptManager1 & RadScheduler1)
4. build project build and close the form (this clears those messages)
4. opening the 'RadSchedulerWebForm' again shows the following error messages ...   
 
Error Creating control - RadScriptManager1 - Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the application configuration.

Error Creating Control -
RadAjaxManager1 - Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the application configuration.

Error Creating Control -
RadScheduler1 - Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the application configuration.



Veronica
Telerik team
 answered on 24 Jan 2011
1 answer
113 views
Hello,

Is it possible to have the same appearance as the RadGrid Edit Popup for a RadWindow ?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 24 Jan 2011
1 answer
85 views
Hi

I have radgrid with EnableViewState = False

<PagerStyle Mode="NextPrevNumericAndAdvanced" />

If I change the pagesize from 10 to 50, grid refreshes and changes back to 10 in a Textbox.
How can fix this?

Thanks

Pavlina
Telerik team
 answered on 24 Jan 2011
2 answers
628 views
Hi.I am using radcontrols Q4 2006 for ASP.Net.I have a grid which autogeneratecolumns = true and enable client side selection = true.I want to get selecteditems and cell values.When i try grid.SelectedItems[i].Cell[0].Text it gives me &nbsp .How can i get cell value.Thanks...
Veli
Telerik team
 answered on 24 Jan 2011
1 answer
73 views
How do we add a label which is right aligned with (show 24 hours)? I know we can use the localize setting but that will give a link.
Just want to show the current timezone (BTW, the timezone demo is down)
Peter
Telerik team
 answered on 24 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?