Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
188 views
Hi,
   how can i found the control in insert mode .please help me regarding this.
Princy
Top achievements
Rank 2
 answered on 30 Jul 2010
2 answers
95 views
When using the Advanced Form, the controls for selecting the time and dates (and the All Day checkbox also) appear outside of the window (to the right), and are only accessible through the use of the Tab key. This occurs in both the Modal and the Inline forms. All other controls appear inside the window, including the Reminder dropdown and the Recurrence controls when checking the Recurrence checkbox.

Has anyone else experienced this "phenomenon"? And could anyone suggest a solution, or a starting point for a solution?

Thanks

Chris
Top achievements
Rank 2
 answered on 29 Jul 2010
7 answers
219 views
I have 2 editors. The first has Design and Preview modes enabled. When I switch from Design to Preview mode the toolbars are disabled. This is a good thing.

On the other editor, I only have Preview mode enabled and the toolbars here are enabled. Why is this different from the other editor?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 29 Jul 2010
3 answers
86 views
Set a page like this ...

  <head runat="server">
    <title></title>
  </head>
  <body>
    <form id="form1"
          runat="server">
      <telerik:radscriptmanager runat="server"></telerik:radscriptmanager>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <div>
        <telerik:RadComboBox ID="RadComboBox1"
                             runat="server">
          <Items>
            <telerik:RadComboBoxItem Value="1"
                                     Text="Monday"/>
            <telerik:RadComboBoxItem Value="2"
                                     Text="Tuesday"/>
            <telerik:RadComboBoxItem Value="4"
                                     Text="Wednesday"/>
            <telerik:RadComboBoxItem Value="8"
                                     Text="Thurday"/>
            <telerik:RadComboBoxItem Value="16"
                                     Text="Friday"/>
            <telerik:RadComboBoxItem Value="32"
                                     Text="Saturday"/>
            <telerik:RadComboBoxItem Value="64"
                                     Text="Sunday"/>
          </Items>
        </telerik:RadComboBox>
        <telerik:RadEditor ID="RadEditor1"
                           runat="server"
                           EnableResize="false"
                           ContentAreaMode="Div"
                           EditModes="Design"
                           Height="100px"
                           NewLineBr="false"
                           ToolbarMode="ShowOnFocus"
                           ToolsFile="~/App_Data/Editor/ToolsFileLimited.xml"
                           Width="256px">
        </telerik:RadEditor>
 
      </div>
    </form>
  </body>
</html>

Run it, get the focus on the combobox then tab to move focus to the editor.

I expected the toolbar to display but it doesn't unless you actually click inside the editor. Surely that's not right.

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 29 Jul 2010
7 answers
203 views
Hi,
i have a RadTreeView inside a radgrid FormTemplate and it is messing up my page scroll bar.
i have already put the height and it is working fine except the page scroll.

<telerik:RadTreeView ID="TreeView" CheckBoxes="True" runat="server" DataFieldID="Id" Height="400px" DataFieldParentID="ParentId" DataTextField="Name" DataValueField="Id" OnNodeDataBound="TreeView_NodeDataBound" OnClientNodeClicking="OnClientNodeClickingHandler">
</telerik:RadTreeView>

i have attached a print and for confidentiality purposes i have painted all the text but you can see the scroll on the page an on the tree.
Nikolay Tsenkov
Telerik team
 answered on 29 Jul 2010
3 answers
344 views
I have radgrid using a form template edit form. I have added a button in the Form Template Edit Form, but I can not get the OnClick event of the button to fire. I am binding the data grid dynamically in code on Page_Load (even on PostBack). The button in question is btnUpdateMedicalRecord

<telerik:RadGrid runat="server" ID="rgMedicalRecords"  AllowPaging="true" AllowSorting="true" Skin="WebBlue">
       <ClientSettings>
           <Selecting AllowRowSelect="true" />
       </ClientSettings>
       <MasterTableView AutoGenerateColumns="false" 
           DataKeyNames="MedicalRecordID" >
           <Columns> 
               <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
               <telerik:GridBoundColumn DataField="MedicalRecordID" Visible="false" />
               <telerik:GridBoundColumn DataField="MedicalRecordDispositionTypeID" Visible="false" />                
               <telerik:GridBoundColumn DataField="MedicalRecordDispositionTypeDescription" HeaderText = "Disposition" />  
               <telerik:GridBoundColumn DataField="ReviewInquiryStatusTypeID" Visible="false" />   
               <telerik:GridBoundColumn DataField="ReviewInquiryStatusTypeDescription" HeaderText = "Status" /> 
               <telerik:GridDateTimeColumn DataField="ServiceBeginDate" HeaderText="Begin DOS"  DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />                                
               <telerik:GridDateTimeColumn DataField="ServiceEndDate" HeaderText="End DOS"  DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" /> 
           </Columns>
           <EditFormSettings EditFormType="Template">
               <FormTemplate>
                       <asp:Table ID="tblEditControl" runat="server" Width="100%" BorderColor="Black" BorderWidth="1">
                           <asp:TableRow>
                               <asp:TableCell Width="20%" VerticalAlign="Top">
                                       <span class="smallboldtext">Begin DOS:</span>
                                       <telerik:RadDatePicker ID="dteServiceBeginDate" runat="server" Width="100" SelectedDate='<%# Bind( "ServiceBeginDate" ) %>'></telerik:RadDatePicker>                                                                 
                               </asp:TableCell>
                               <asp:TableCell Width="20%" VerticalAlign="Top">
                                       <span class="smallboldtext">End DOS:</span>
                                       <telerik:RadDatePicker ID="dteServiceEndDate" runat="server" Width="100" SelectedDate='<%# Bind( "ServiceEndDate" ) %>'></telerik:RadDatePicker>                                                           
                               </asp:TableCell>
                               <asp:TableCell Width="35%" VerticalAlign="Top">
                                       <span class="smallboldtext">Status:</span>
                                       <telerik:RadComboBox ID="rcbStatus" runat="server" DataSource='<%# loadRcbReviewInquiryStatusTypes() %>'
                                       DataTextField="Description" DataValueField="ReviewInquiryStatusTypeID"
                                       SelectedValue='<%# Bind("ReviewInquiryStatusTypeID") %>' Width="250">
                                       </telerik:RadComboBox>                           
                               </asp:TableCell>
                               <asp:TableCell Width="25%" VerticalAlign="Top" HorizontalAlign="Center">
                                   <asp:Button runat="server" ID="btnUpdateMedicalRecord" Text="Update" Width="150"  OnClick="btnUpdateMedicalRecord_Click"  />
                               </asp:TableCell>
                           </asp:TableRow>
                       </asp:Table>   
               </FormTemplate>                                            
           </EditFormSettings>
       </MasterTableView>                
   </telerik:RadGrid>
Matt Tapia
Top achievements
Rank 1
 answered on 29 Jul 2010
4 answers
320 views
hi everyone
i have this select command

"SELECT AppointmentID , StartDate, EndDate, Title, EstimatedTime, RoomId FROM Appointments"

when i use <asp:Label Text='<%# Eval("Title") %> ' /> in the AppointmentTemplate tag  i get this error :

DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'Title'.

but when i use <asp:Label Text='<%# Eval("End") %> ' /> i get the answer

can anyone solve my problem  ?
Veronica
Telerik team
 answered on 29 Jul 2010
1 answer
90 views
Hi

i want to open advance form on time slot click rather than inline form. In context menu i used "CommandAddRecurringAppointment" to open detailed form but how to perform asme thing on time slot click.

Is there any way we can define default context menu item so that whenever user click on timeslot it will execute default context menu command.  Please guide me the best solution for this.

Thanks in advance
Veronica
Telerik team
 answered on 29 Jul 2010
1 answer
93 views
hi everyone

Is it possible to insert favorite fields instead of AppointmentID,Start,End,Subject,Description  ?
Veronica
Telerik team
 answered on 29 Jul 2010
1 answer
221 views

I have RadTabStrip on my page. The problem I try to solve is not allow to pass to other tab if validation is failed.
For that I have next controls:
1. Validation controls connected to the specific control such as:
It is just example. As you see this control validation control is part of the some group

<asp:TextBox ID="txtEmployeeNo" CssClass="readOnlyTextbox" runat="server" Enabled="false"  />
<asp:ImageButton ID="imbChangeEmployeeNo" runat="server" ImageUrl="./../Images/Search.gif"
    CommandName="ChangeEmployee" ToolTip="Change Employee" />
<asp:RequiredFieldValidator ID="reqlblEmployeeNoEdit" runat="server" ErrorMessage="Employee No is required."
    Display="None" ControlToValidate="txtEmployeeNo" ValidationGroup="valGrpGeneral" Enabled="false"></asp:RequiredFieldValidator>
2. Validation summary control
<asp:ValidationSummary ID="valSumGeneral" runat="server" DisplayMode="BulletList"
    HeaderText="The following inputs are invalid:" ValidationGroup="valGrpGeneral"
    ShowMessageBox="true" ShowSummary="false" />
3. Tab Client Event
function OnClientTabSelecting(sender, eventArgs) {
    var newTab = eventArgs.get_tab();
    if (newTab != null) {
        var oldTab = newTab.get_parent().get_selectedTab();
        if (oldTab != null) {
            switch (oldTab.get_value()) {
                case "<%= GeneralTabValue %>":
                    eventArgs.set_cancel(!Page_ClientValidate("<%=GeneralTabSummaryValidationName %>"));
                    break;
            } 
        }
    }

Validation is working OK, but.... There is some other logic related to postbacks stopped to work, immediately after I am using OnClientTabSelecting. For instant, I have button which execute ModalWindow using JavaScript. This modal window is returning some values:
function ShowModalWindow(ctrl1ID, ctrl2ID, ctrl3ID, url) {
    var ret = window.showModalDialog(url, this, 'dialogWidth=975px;dialogHeight=670px;resizable=yes;help=no;');
    var ctrl1 = document.getElementById(ctrl1ID); // 'R' = HR Reason Code, 'E' = Employee ID, 'P' = Position
    var ctrl2 = document.getElementById(ctrl2ID); // The returned value
    var ctrl3 = document.getElementById(ctrl3ID); // Whether or not to open the control in edit mode.
    if (ret != null && ctrl1 != null && ctrl2 != null && ctrl3 != null) {
        if (ret.length > 1) {
            ctrl1.value = ret[0];
            ctrl2.value = ret[1];
            ctrl3.value = ret[2];
        }
    }
}
Once windows is closed in usual situation postback occurs and page is refreshed according to data returned from the windows.

BUT, after OnClientTabSelecting, although javascript is executed, postback doesn't.

Does anyone know what it might be the reason?
Yana
Telerik team
 answered on 29 Jul 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?