Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
75 views

Hi,
I created my own Radgrid class which inherits from the Telerik Radgrid.
In my class, I override the OnItemCreated sub in order to create a specific pager (after a clear with aGridPagerItem.PagerContentCell.Controls.Clear()) :

 

Protected Overrides Sub OnItemCreated(ByVal e As Telerik.Web.UI.GridItemEventArgs)
     MyBase.OnItemCreated(e)
     If TypeOf e.Item Is Telerik.Web.UI.GridPagerItem Then
        .............
     
End If
 End Sub

In my aspx, the property EnableSEOPaging is set to "true" and I ask only for the Bottom pager :
<PagerStyle EnableSEOPaging="true" Mode="NextPrevAndNumeric" SEOPagingQueryStringKey="pageindexes" Position="Bottom" />

The problem is that I enter the OnItemCreated 4 times :
  • 2 times for the non SEO default pager (header and footer) which is not rendered
  • 2 times for the SEO pager (header and footer) which is rendered

Questions:

  1. Why do the OnItemCreated fires for the not rendered default pager ? How can I check this code-behind (to avoid my specific treatment in this case) ?
  2. Why do the OnItemCreated fires for the header even if I explicitly defines Position="Bottom" ?

Thanks a lot.
Good day.
E. Mansion

Veli
Telerik team
 answered on 24 Aug 2010
1 answer
132 views
Hi,

I am trying to decorate a page that should be opened inside RadWindow.
for this purpose I am using RadFormDecorator and using the class "rfdRtl" in order to have the text of radio buttons and checkboxes on the left. my problem is that when clicking on the checkbox/radiobutton, then the vertical scrollbar of RadWindow jumps to the top (very annoying...)

I believe you can reconstruct just by adding the following code snipet under the body tag of RadWindow:
<table style="width:180px" class="rfdRtl">
  <tr>
    <td style="width:20px;padding-top:300px" />
    <td style="width:140px">
      <asp:CheckBox ID="test" runat="server" Text="Testing..." />
    </td>
    <td style="width:20px" />
  </tr>
</table>

Is it a bug? when removing the class "rfdRtl" it works just fine.
The skin I am using is "Default" (but, i am not sure if it matter)

Georgi Tunev
Telerik team
 answered on 24 Aug 2010
2 answers
93 views
I'm using Ajax Q1 2010 net 3.5 controls and have a RadScheduler with an AdvancedEditTemplate.  Code is below.  The problem is that when I right-click on an appointment and click edit, the edit form does nopt display and the day view reverts back to today's date.  There is no error or any indication what the problem is.  Help?
<telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Simple" 
                DataKeyField="ID" DataSubjectField="subject" DataStartField="start" DataEndField="end"
                    Height="650px" Width="375px" SelectedView="DayView"
                    ShowFooter="true" RowHeight="20px"  ShowViewTabs="false"
                    DayStartTime="08:00:00" DayEndTime="17:00:00"                        
                    FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
                    EnableDescriptionField="true"
                    AppointmentStyleMode="Default"
                    EnableResourceEditing="true"
                    OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                    OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
                    OnAppointmentInsert="RadScheduler1_AppointmentInsert">
                <AdvancedForm Modal="true" />
                <TimelineView UserSelectable="false" />
                <AppointmentTemplate>
                    <%# Eval("Subject") %>
                </AppointmentTemplate>
                <TimeSlotContextMenuSettings EnableDefault="true" />
                <AppointmentContextMenuSettings EnableDefault="true" />
                <ResourceTypes>
                    <telerik:ResourceType KeyField="CPK_CATEGORY" Name="Department" TextField="category" ForeignKeyField="category" DataSourceID="dsTodoCategory" />
                </ResourceTypes>
                 <AdvancedEditTemplate>
                    <div id="schform">
                        <table style="width: 80%" align="center">
                            <tr>
                                <td style="width: 25%">Patient:</td>
                                <td style="width: 75%"></td>
                            </tr>
                              
                            <tr>
                                <td>Appt/Task:</td>
                                <td>
                                    <telerik:RadComboBox ID="cmbTodo" runat="server" DataSourceID="dsTodoList" TabIndex="1"
                                        DataTextField="subject" DataValueField="CPK_TODOINFO" Height="300px" Width="300px"
                                        Text='<%# Bind("subject") %>' Skin="Vista" EmptyMessage="- Select -"
                                        ShowDropDownOnTextboxClick="false" AllowCustomText="True">
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Date:</td>
                                <td>
                                    <telerik:RadDatePicker Skin="WebBlue" ID="txtDueDate" runat="server" DbSelectedDate='<%# Bind("start") %>' BackColor="#f7f8f9" TabIndex="2">
                                        <Calendar ID="Calendar1" Skin="WebBlue" runat="server" ShowRowHeaders="false" />
                                    </telerik:RadDatePicker>
                                </td>
                            </tr>
                              
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="btnUpdate" runat="server" Text="Update" CommandName="Update" />
                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" />
                                </td>
                            </tr>
                        </table>
                    </div>
                 </AdvancedEditTemplate>
            </telerik:RadScheduler>
Veronica
Telerik team
 answered on 24 Aug 2010
2 answers
108 views
hi, i need to write some javascript functions  for the radcalendar, but i don't know which properties are available and what's their names.

Where can i find documentation of all properties i can use?
Ronen
Top achievements
Rank 1
 answered on 24 Aug 2010
1 answer
307 views
In looking and implementing the example of the listview drag and drop to a data repeater and modifying it to work with a tree view, i am coming up short with the e.DestinationHtmlElement being returned blank....

in the itemDropping event on the client side, the information inside the Destination Html is also lacking...in that it doesn't provide the value of the node that the data item is dropping onto

am i missing something or is it not possible to interact with a tree view at this point?

let me know

thanks!
Rosen
Telerik team
 answered on 24 Aug 2010
1 answer
195 views
Any tips on how to handle this when using client side row selection?

Here's what I am trying to do now which is handling the OnRowSelecting event
to see if the row is disabled and canceling the selection if it is.

<script type="text/javascript">
    function RowSelecting(sender, eventArgs) {
         //Prevent "disabled" grid RowSelecting from being selected (individually)
         var grid = sender;
         var MasterTable = grid.get_masterTableView();
         var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
         if (row.disabled)
            eventArgs.set_cancel(true)
     }
 
</script>
<radG:RadGrid ID="RadGrid1" AllowMultiRowSelection="true" runat="server">
    <MasterTableView Width="100%">
        <Columns>
             <radG:GridClientSelectColumn UniqueName="ClientSelectColumn" />
         </Columns>
    </MasterTableView>
    <ClientSettings ApplyStylesOnClient="True">
         <Selecting AllowRowSelect="True"></Selecting>
         <ClientEvents OnRowSelecting="RowSelecting" />
     </ClientSettings>
</radG:RadGrid>


This works when individually trying to select a disabled row (prevents it), but when clicking the header row checkbox (to Select/DeSelect all) the disabled rows still get checked.

How can I prevent this?
Pavlina
Telerik team
 answered on 24 Aug 2010
4 answers
294 views
I need the validation for Radcombobox whether the check boxes are checked or not using customvalidator or other js validation. pls help urgently
vinoth sansar
Top achievements
Rank 2
 answered on 24 Aug 2010
4 answers
171 views
I get the following error for "RadControls_for_ASP.NET_AJAX_and_SharePoint_2010_Trial" setup.

"Setup detected that you have manually installed Telerik parts for Sharepoint. Please uninstall manually Telerik parts for Sharepoint and backup any customizations you made to apply them Later."

Prior to the above message, I was in the process of install and machine crashed. I uninstalled and install again and I got above error.

I can not install again. What do I mannually uninstall?

Thanks,
Petar
Telerik team
 answered on 24 Aug 2010
1 answer
191 views

Is it possible to access the controls in the confirm template using C#?

For the code, how to refer to the “btnYes” on the page load function?

I would to access the control because my application will let users change the text on the control.


<telerik:RadWindowManager ID="PageAjaxWindowManager" runat="server" VisibleStatusbar ="false" OnClientShow="onClientShow" OnClientClose="onClientClose"  OnClientBeforeClose="ConfirmClose" >
            <ConfirmTemplate>
                <div class="rwDialogPopup radconfirm">  
                    <div class="rwDialogText">
                        {1}   
                    </div>     
                    <div>                       
                        <a onclick="$find('{0}').close(true);" href="javascript:void(0);" ><asp:Button ID="btnYes" runat="server" Text="Yes,I do." /></a>
                        <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[No]##</span></span></a>
                    </div>
                </div>
            </ConfirmTemplate>
            <Windows>
                <telerik:RadWindow ID="Window1" runat="server" Title="Window 1" Height="510px"
                    Width="750px" Left="20px" Top="3px" Modal="true"   />
                <telerik:RadWindow ID=" Window2" runat="server" Title=" Window 2 " Height="480px"
                    Width="750px" Left="20px" Top="3px" Modal="true"  />
                <telerik:RadWindow ID=" Window3" runat="server" Title=" Window 3" Height="400px"
                     Width="550px" Left="50px" Modal="true"  />  
            </Windows>    
        </telerik:RadWindowManager>
Georgi Tunev
Telerik team
 answered on 24 Aug 2010
4 answers
434 views
I'm trying to loop through the cell in a row and do conditional formatting based on their column definition's dataformatstring. How do I get a reference to the column they belong to so I can check this?

protected void gridOverview_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
       {
  //Is it a GridDataItem
           if (e.Item is GridDataItem)
           {
               //Get the instance of the right type
               GridDataItem row = e.Item as GridDataItem;
               foreach (GridTableCell cell in row.Cells)
               {                      
                   // Check DataFormatString here and do conditional logic
               }

Thanks!
Levi
Levi
Top achievements
Rank 1
 answered on 24 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?