Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
116 views
I have a horizontal splitter with a top pane and a bottom pane.  Normally I can slide the splitBar up and down.  However, if I have a binary component in one of the panes, I cannot slide the splitBar over it.  Please try the simplified sample code below, and please help me find a solution.  I have been trying to figure this one out for some time.

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
</telerik:RadScriptManager> 
<telerik:RadSplitter ID="splitter1" Orientation="Horizontal" Width="100%" Height="100%" runat="server">  
<telerik:RadPane ID="paneTop" runat="server" Width="100%" Height="300px" ContentUrl="http://www.yahoo.com">  
</telerik:RadPane> 
<telerik:RadSplitBar ID="splitBar1" runat="server" /> 
<telerik:RadPane ID="paneBottom" runat="server" Width="100%" Height="100%" ContentUrl="RadGridExport.pdf">  
</telerik:RadPane> 
</telerik:RadSplitter> 
Cesar
Top achievements
Rank 1
 answered on 26 Mar 2010
1 answer
64 views
Greetings,

I like the scheduler, but we have some specific customizations required.

1)  how to get the left side of the Schedule to be reserved for doctors' hours, e.g. we want the person making appts to visually see that, e.g., Dr. John  has business hours from 3 - 5 pm, for example.  This could look like an appt block, but is not one at all.  And there may be 4 or 5 of these reserved appointment-looking blocks - each in a different color. 

2) Also, how do I populate the header of the Day Schedule (this is on the same level as "all day" header)?  What's the property.

Many thanks,

Randy Smith
Peter
Telerik team
 answered on 26 Mar 2010
1 answer
100 views
Hey Guys,
I am using a Radscheduler control that edits and Inserts using an advanced custom form.

All works great however I would like to make the start and end time visible in the MonthView because we need user to specify time not only date. Currently if i double click a target slot the advanced insert form appear with only start and end date.

Can you please advise.

Best regards,
Maged
Peter
Telerik team
 answered on 26 Mar 2010
6 answers
273 views
Hello guys.

I'm trying to use this example (without image column, very simple), but I'm setting its datasource by a c# method. The grid is binded correctly and the action started by the "add new record" button, showing all fields to insert a new record. However, the edit and delete button gave me this exception:

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

and the insert button do nothing.

First: How can I to know the name of controls showed in the insert action?
Second: What's the event fired by Edit and the delete button? I tryed to put a breakpoint in the: RadGrid1_UpdateCommand, RadGrid1_EditCommand, RadGrid1_ItemDeleted, RadGrid1_DeleteCommand, but the system doesn't break at breakpoint.

Tx in advance.

Regards.




Silvio Silva Junior
Top achievements
Rank 2
 answered on 26 Mar 2010
2 answers
82 views
Hi,
     We are using asp.net Ajax 2008 Q3 version now we are trying to upgrade to newer version i followed the link 
 but did not find any luck pls. provide some help.

Thanks,
Sanjeev
Sanjeev
Top achievements
Rank 1
 answered on 26 Mar 2010
4 answers
222 views
Hi,

I have a VB.NET project with a FormView which has an EditItemTemplate and InsertItemTemplate.
Both templates contain a RadDatePicker with the same ID and properties assigned, because I want to reference both with the same code, depending on which FormViewMode is assigned. Unfortunately my code appears to pick up only the EditItemTemplate version of the RadDatePicker, regardless of the current FormViewMode. When the form is running in Insert mode, all standard .NET controls are bound successfully, but the RadDatePicker is not. I've tried calling the two RadDatePicker controls by different ID names, but the problem appears to be with Insert mode. Another forum post suggested changing the DefaultMode of the FormView, but this doesn't make any difference in my case. Any ideas would be greatly appreciated.

Cheers,
Neill Davies - Nightfreight I.T.


VB.NET (shortened):


 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 


If
Session("ApplicationStatus").ToString.Trim = "NEW" Then

 

 

 

 

CDCustomerDetails.ChangeMode(FormViewMode.Insert)

 

Else

 

 

 

CDCustomerDetails.ChangeMode(FormViewMode.Edit)

 

 

End If

 

 

 


Dim ProposedStartDateCtrl As RadDatePicker = CType(CDCustomerDetails.FindControl("RadProposedStartDate"), RadDatePicker)

 

ProposedStartDateCtrl.MinDate = DateTime.Now.Day &

"/" & DateTime.Now.Month & "/" & DateTime.Now.Year

 

ProposedStartDateCtrl.FocusedDate = ProposedStartDateCtrl.MinDate

 

 

End

 

Sub

 

 

 

 

The minimum date setting & focussed date only work when the form is running in Edit mode.


HTML (shortened):

 

 

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="4" BorderColor="Black" BorderStyle="Solid">

 

 

 

<telerik:RadPageView ID="RadPageView1" runat="server" Selected="True">

 

 

 

&nbsp;<asp:FormView ID="CDCustomerDetails" runat="server" DefaultMode="Insert" BorderColor="White" CssClass="form"

 

 

 

DataSourceID="datCustomerDetails">

 

 

 

<EditItemTemplate>

 

 

 

<table>

 

 

 

<tr>

 

 

 

<td>
<telerik:RadDatePicker ID="RadProposedStartDate" runat="server" Culture="English (United Kingdom)"

 

 

 

DbSelectedDate='<%# Bind("ProposedStartDate") %>'>

 

 

 

<Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">

 

 

 

</Calendar>

 

 

 

<DatePopupButton HoverImageUrl="" ImageUrl="" />

 

 

 

</telerik:RadDatePicker>

 

 

 

<br />

 

 

 

<asp:RangeValidator ID="valProposedStartDate" runat="server" ControlToValidate="RadProposedStartDate"

 

 

 

Display="Dynamic" ErrorMessage="Only future dates accepted, format DD/MM/YYYY"

 

 

 

Font-Bold="True" MaximumValue="31/12/2099" MinimumValue="01/12/2009" Type="Date"

 

 

 

Width="216px"></asp:RangeValidator></td>

 

 

 

</tr>
</table>

 

 

 

</EditItemTemplate>

 

 

 

<InsertItemTemplate>
<table>

 

 

 

<tr>

 

 

 

<td>
<telerik:RadDatePicker ID="RadProposedStartDate" runat="server" Culture="English (United Kingdom)" DbSelectedDate='<%# Bind("ProposedStartDate") %>'>

 

 

 

<Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">

 

 

 

</Calendar>

 

 

 

<DatePopupButton HoverImageUrl="" ImageUrl="" />

 

 

 

</telerik:RadDatePicker>

 

 

 

<br />

 

 

 

<asp:RangeValidator ID="valProposedStartDate" runat="server" ControlToValidate="RadProposedStartDate"

 

 

 

Display="Dynamic" ErrorMessage="Only future dates accepted, format DD/MM/YYYY"

 

 

 

Font-Bold="True" MaximumValue="31/12/2099" MinimumValue="01/12/2009" Type="Date"

 

 

 

Width="216px"></asp:RangeValidator></td>

 

 

 

</tr>
</table>

 

 

 

</InsertItemTemplate>

 

Jared Lewis
Top achievements
Rank 1
 answered on 26 Mar 2010
1 answer
113 views

I have the following code and it seems to work fairly well:

<table cellpadding="0" border="0" cellspacing="0">  
    <tr> 
        <td><%= Class.Property %></td>  
    </tr> 
</table> 
 

Now the problem is that the data doesnt get written when I place the previous code in a RadPanelBar ItemTemplate:
<telerik:RadPanelBar ID="SummaryPanelBar" runat="server">  
    <Items> 
        <telerik:RadPanelItem Text="General">  
            <ItemTemplate> 
<table cellpadding="0" border="0" cellspacing="0">  
    <tr> 
        <td><%= Class.Property %></td>  
    </tr> 
</table> 
            </ItemTemplate> 
        </telerik:RadPanelItem> 
    </Items> 
</telerik:RadPanelBar> 
 

Any clue as to why?

J
Simon
Telerik team
 answered on 26 Mar 2010
1 answer
170 views
Hi,

We have made some Changes to our Teleric-Controls and have compiled the new DLLs using Nant.
The Build was sucessfull and some Controls are working quite fine (ec. the RadDatePicker). But when opening a Page with the RadEditor, we get the following error:

Assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=29ac1a93ec063d92' contains a Web resource with name 'Telerik.Web.UI.Editor.RadEditor.js', but does not contain an embedded resource with name 'Telerik.Web.UI.Editor.RadEditor.js'.


We didn't make any changes to the RadEditor-Control and the .js-File exists in our Sourcecode-folder.
Are there any additional parameters or changes in the configfiles nessessery when using Nant?

Thanks.
Lini
Telerik team
 answered on 26 Mar 2010
4 answers
96 views
Hi,

this is shanker am doing application my requirement is catch the databound value in Itemdatabound event in GridEditable mode I am write this code 

protected void fulldaygrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            int? student_absence_id = null;

            if ((e.Item is GridEditableItem || e.Item is GridDataItem) && e.Item.IsInEditMode)
            {



                GridEditableItem editedItem = (GridEditableItem)e.Item;
                int item = editedItem.ItemIndex - 1;
                    student_absence_id = editedItem.OwnerTableView.Items[item].Cells[1].ToString().GetInteger();
                    //int? eventId = GetEventId(e.Item);
                    if (student_absence_id.HasValue)
                    {
                        var det = studentattendancemanager.sch_view_student_absence_single_day_detail(student_absence_id);



                        //Label lblStudentname = e.Item.FindControl("lblStudentname") as Label;
                        //if (lblStudentname != null)
                        //{
                        //    string Name = det.first_name + det.last_name;
                        //    lblStudentname.Text = Name;
                        //}
                        //Label lblStudentNumber = e.Item.FindControl("lblStudentNumber") as Label;
                        //if (lblStudentNumber != null)
                        //{
                        //    lblStudentNumber.Text = det.student_number;
                        //}

                        TextBox txtDescription = e.Item.FindControl("txtDescription") as TextBox;
                        if (txtDescription != null)
                        {
                            txtDescription.Text = det.description;
                      }


                }   
            }
        }

it's not working i am face this error 
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

thanks and regards
shanker.B

shanker bangari
Top achievements
Rank 1
 answered on 26 Mar 2010
5 answers
126 views
Hi,

this is shanker I am doing project by using telirik controls .My requirement is I have two rad grids one parent and child the child rad grid am put in edit forms .that grid binding in item data bound  event of parent grid .It's working but i have one item template filed in child grid that filed check box .the check box not cheked to belongs to database cloumn how to check that 

this my code 
 protected void Bysessiongrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
            {

                int? eventId = GetEventId(e.Item);
                RadGrid childgrid = e.Item.FindControl("childgrid") as RadGrid;
                if (childgrid != null)
                {
                    childgrid.DataSource = studentattendancemanager.sch_view_student_absence_session_child_list(eventId.Value, RadsessionAttendancedate.SelectedDate.Value);
                    childgrid.DataBind();
                    
                }
}
this c# code

source code is 

 <telerik:RadGrid ID="Bysessiongrid"   Width="100%"  
            AllowSorting="True" AllowPaging="True" PageSize="7" runat="server" AutoGenerateColumns="False"
            OnPreRender="Bysessiongrid_PreRender" ShowStatusBar="true" 
                           EnableLinqExpressions="false" 
                            
                           ondeletecommand="Bysessiongrid_DeleteCommand" 
                           onitemdatabound="Bysessiongrid_ItemDataBound" 
                           onupdatecommand="Bysessiongrid_UpdateCommand" 
                           oncancelcommand="Bysessiongrid_CancelCommand" 
                           oneditcommand="Bysessiongrid_EditCommand" 
                           onpageindexchanged="Bysessiongrid_PageIndexChanged" >
  <PagerStyle Mode="NextPrevAndNumeric" ></PagerStyle>
<MasterTableView DataKeyNames="class_student_id,student_absence_id,calendar_date">
           <Columns>
                    <telerik:GridEditCommandColumn >
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="student_absence_id" DataType="System.Int32" HeaderText="ID"
                    SortExpression="student_absence_id" UniqueName="student_absence_id" Visible="false" ReadOnly="true" >
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="student_name" HeaderText="Student Name" SortExpression="student_name"
                    UniqueName="student_name" >
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="student_number" HeaderText="Student Number" SortExpression="student_number"
                    UniqueName="student_number" >
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="student_is_absent" HeaderText="Absentee" SortExpression="student_is_absent"
                    UniqueName="student_is_absent">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn>
                <ItemTemplate>
                    <asp:Button ID="BysessiongridDelete" runat="server" Text="Delete" CommandName="Delete" Visible="false"/>
                </ItemTemplate>
                </telerik:GridTemplateColumn>
                </Columns>
                  <EditFormSettings EditFormType="Template">
                   <FormTemplate>
                    <div>
                        <div class="floatFix">
                            <div style="float: left; width: 500px;">
                                <div class="inputRow">
                                    <div class="inputColLeft">
                                      Student Name:</div>
                                    <div class="inputColRight">
                                        <asp:Label ID="Studentsession" runat="server" Text='<%#Bind("student_name")%>'></asp:Label>
                                    </div>
                                </div>
                                <div class="inputRow">
                                    <div class="inputColLeft">
                                      Student Number:</div>
                                    <div class="inputColRight">
                                        <asp:Label ID="Studentnumbersession" runat="server" Text='<%#Bind("student_number")%>'></asp:Label>
                                    </div>
                                </div>
                                <div class="inputRow">
                                    <div class="inputColLeft">
                                      Description:</div>
                                    <div class="inputColRight">
                                         <asp:TextBox ID="txtdescriptionsession" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="inputRow">
                                    <div class="inputColRight">
                                    <telerik:RadGrid runat="server" Id="childgrid" AutoGenerateColumns="false" >
                                    <MasterTableView DataKeyNames="class_student_id,session_schedule_detail_id">
                                     <Columns>
                                     <telerik:GridBoundColumn DataField="class_student_id" DataType="System.Int32" HeaderText="ID"
                                       SortExpression="class_student_id" UniqueName="class_student_id" Visible="false" ReadOnly="true" >
                                      </telerik:GridBoundColumn>
                                   <telerik:GridBoundColumn DataField="subject_name" HeaderText="Subject" SortExpression="subject"
                                    UniqueName="subject" >
                                   </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="calendar_date" HeaderText="Calendar Date" SortExpression="calendar_date"
                                 UniqueName="calendar_date" >
                                </telerik:GridBoundColumn>
                                 <telerik:GridBoundColumn DataField="session_time" HeaderText="Session Time" SortExpression="session_time"
                                 UniqueName="session_time" >
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn >
                            <ItemTemplate>
                            <asp:CheckBox ID="absenteecheck" runat="server"  />
                            </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            
                                     </Columns>
                                    </MasterTableView>
                                    </telerik:RadGrid>
                                    </div>
                                    <div class="inputColRight">
                                        
                                    </div>
                                </div>
                            </div>
                        </div>
                         <div style="text-align: right;">
                            <asp:Button ID="Button1" ValidationGroup="event" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                            </asp:Button>&nbsp;
                            <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False"
                                CommandName="Cancel"></asp:Button>
                        </div>
                    </div>
                </FormTemplate>
            </EditFormSettings>
            </MasterTableView>
    </telerik:RadGrid>

how to checked true in child grid column it,s argent please any solution .

thanks and regrids
shanker.b
Insad
Top achievements
Rank 2
 answered on 26 Mar 2010
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?