Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
Hello,

I have a RadGrid that uses a Static header.

<telerik:RadGrid
                        ID="radFolderGrid"
                        EnableViewState="true"
                        padding-left="15px"
                        runat="server"
                        Height="230px"
                        Width="990px"
                        AllowSorting="true"
                        CssClass="AddCustom"
                        EnableHeaderContextMenu="false"
                        BorderWidth="1px"
                        BorderColor="#CC9966"
                        EnableEmbeddedBaseStylesheet="false"
                        EnableEmbeddedSkins="false">
                        <AlternatingItemStyle CssClass="epListDataShadeLightNormal"></AlternatingItemStyle>
                        <ItemStyle CssClass="epListDataShadeDarkNormal"></ItemStyle>
                        <MasterTableView AutoGenerateColumns="False" Width="97.8%" TableLayout="Fixed">
                            <Columns>
                                <telerik:GridBoundColumn DataField="UI_LNAME" HeaderText="Last Name" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" ItemStyle-CssClass="epTextWrap" HeaderStyle-Width="100px" SortExpression="UI_LNAME" UniqueName="UI_LNAME" />
                                <telerik:GridBoundColumn DataField="UI_FNAME" HeaderText="First Name" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" ItemStyle-CssClass="epTextWrap" HeaderStyle-Width="100px" SortExpression="UI_FNAME" UniqueName="UI_FNAME" />
                                <telerik:GridBoundColumn DataField="eopff_eff_date" HeaderText="Latest Eff. Date" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="90px" SortExpression="eopff_eff_date" UniqueName="eopff_eff_date" />
                                <telerik:GridBoundColumn DataField="EUI_CPO_ID" HeaderText="PO ID" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="75px" SortExpression="EUI_CPO_ID" UniqueName="EUI_CPO_ID" />
                                <telerik:GridBoundColumn DataField="EUI_ORG_CODE" HeaderText="Org Code" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="75px" SortExpression="EUI_ORG_CODE" UniqueName="EUI_ORG_CODE" />
                                <telerik:GridBoundColumn DataField="EUI_ACTIVITY_CODE" HeaderText="Activity Code" HeaderStyle-Width="75px" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" SortExpression="EUI_ACTIVITY_CODE" UniqueName="EUI_ACTIVITY_CODE" />
                                <telerik:GridBoundColumn DataField="eopff_folder_status" HeaderText="Folder Status" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="75px" SortExpression="eopff_folder_status" UniqueName="eopff_folder_status" />
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Open" HeaderText="Open" CommandName="Open" DataTextField="Open" ImageUrl="../images/ig_treeXPFolderClosed.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Add_Doc" DataTextFormatString="Add Doc" HeaderText="Add Doc" CommandName="Add Doc" DataTextField="Add Doc" ImageUrl="../images/tb_add.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Show_All_Docs" DataTextFormatString="Show All Docs" HeaderText="Show All Docs" CommandName="Show All Docs" DataTextField="Show All Docs" ImageUrl="../images/SelectedFolder.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Emergency_Data" DataTextFormatString="Emergency Data" HeaderText="Emergency Data" CommandName="Emergency Data" ImageUrl="../images/tb_emergency.gif" DataTextField="Emergency Data">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Clip_Folder" DataTextFormatString="Clip Folder" HeaderText="Clip Folder" CommandName="Clip Folder" DataTextField="Clip Folder" ImageUrl="../images/tb_ClipFolder.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="View_PDQ" DataTextFormatString="View PDQ" HeaderText="View PDQ" CommandName="View PDQ" DataTextField="View PDQ" ImageUrl="../images/tb_pdq.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="View_Career_Brief" DataTextFormatString="View Career Brief" HeaderText="View Career Brief" CommandName="View Career Brief" DataTextField="View Career Brief" ImageUrl="../images/tb_cb.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridBoundColumn DataField="eopff_side" DataType="System.Decimal" HeaderStyle-Width="0px" HeaderText="ID" UniqueName="eopff_side" Display="false" />
                                <telerik:GridBoundColumn DataField="UI_ID" DataType="System.Decimal" HeaderStyle-Width="0px" HeaderText="ID" UniqueName="UI_ID" Display="false" />
                            </Columns>
                        </MasterTableView>
                        <SortingSettings EnableSkinSortStyles="false" />
                        <ClientSettings ClientEvents-OnColumnResizing="onColumnResizing" AllowKeyboardNavigation="true">
                            <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True"></Scrolling>
                            <Selecting AllowRowSelect="true" />
                            <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
                        </ClientSettings>
                    </telerik:RadGrid>


If useStaticHeader is set to True, when tabbing through the Grid it goes through the header only and ignore the data. If useStaticHeader is set to false, it tabs through the both header and data.

What can I do to make it Tab through both the Header and Data when useStaticHeader = true.
Milena
Telerik team
 answered on 14 Jan 2014
6 answers
59 views

Hi ,

I am using Radscheduler with Wcf.
I am using Javascript to communicate with Wcf.

When i edit single recurrence in Radscheduler and call below function from javascript --
scheduler.deleteAppointment(appointment, false);
scheduler.insertAppointment(appointment);
and  it show error---
Cannot parse parentAppointment recurrence rule during delete operation. Appointment ID is 762, parentAppointment ID is 762. 

Please give the solution.

Thanks ,
Kuldeep
Plamen
Telerik team
 answered on 14 Jan 2014
3 answers
61 views
Hi,
Show 24 hours.. is not working in MultiDayView.I m using the grouping direction vertical.The telerik dll verison i m using 2012 for the telerik.web.ui and for the telerik.web.UI.Skins i m using the same version.
Plamen
Telerik team
 answered on 14 Jan 2014
1 answer
74 views
I am using the rotator as a news scroller.  I have it set to AutomaticAdvance, but would also like to have the button in case my users want to manually advance through the slides.  Is there a way to set the rotator to AutomaticAdvance and Buttons or would I have to make a custom RotatorType?
Marin Bratanov
Telerik team
 answered on 14 Jan 2014
2 answers
82 views

Since I have a huge org chart and I have to use the WCF service for on-demand loading, but I see the drilldown don't work since it cannot get the NodeID.


The error as follow: Object reference not set to an instance of an object.



[NullReferenceException: Object reference not set to an instance of an object.]

   Telerik.Web.UI.OrgChartNodeCollection.AssignReferencesToInnerTree(OrgChartNodeCollection nodes, RadOrgChart orgChart) +137

   Telerik.Web.UI.OrgChartNodeCollection.OnNodeAdded(OrgChartNode node) +95

   Telerik.Web.UI.OrgChartNodeCollection.Add(OrgChartNode node) +80

   Telerik.Web.UI.RadOrgChart.SetupDrillDown(Int32[] drilledNodeIndexes) +190

   Telerik.Web.UI.RadOrgChart.ExecuteDrillDown() +101

   Telerik.Web.UI.RadOrgChart.OnPreRender(EventArgs e) +246

   System.Web.UI.Control.PreRenderRecursiveInternal() +83

   System.Web.UI.Control.PreRenderRecursiveInternal() +155

   System.Web.UI.Control.PreRenderRecursiveInternal() +155

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974


Boyan Dimitrov
Telerik team
 answered on 14 Jan 2014
1 answer
186 views
Hi,

I am using Telerik version 2010.3.1317.35.
In my Radchart i have 6 diferent bars. I want to set different color for each bar.
I am using skin "Hay" and it works fine. Issue with my customers that they don't like the bar color.

Is there any settings/configurations to change the bar color or i have to do programmatically.

Many Thanks
 
Danail Vasilev
Telerik team
 answered on 14 Jan 2014
1 answer
44 views

I am using the RadScheduler control, inside the AdvancedEditTemplate there is a RadComboBox.

The RadComboBox is displaying a list of patients, they will search the list of people and if they can not find the person they need to add them. So they click the button next to it and a window will popup where they enter all the info. How do I refresh the RadComboBox with the newly added patient selected?

Thank you for your help.

<telerik:RadScheduler ID="rschVisits" runat="server"
    DataSourceID="sqlConnVisits"  SelectedView="WeekView"
    DataKeyField="visit_id" DataSubjectField="subject"
    DataStartField="start_time" DataEndField="end_time"
    FirstDayOfWeek="Monday" Height="750px"
    Width="1000px" StartInsertingInAdvancedForm="True"
    CustomAttributeNames="practice_room_id,practice_id,patient_id,billing_note,last_name,first_name,room_name,visit_type_id,visit_status_id,visit_reason,elig_status"
    EnableCustomAttributeEditing="True"
    HoursPanelTimeFormat="htt" MinutesPerRow="15" ShowAllDayRow="False"
    >
    <AdvancedForm Modal="true" />
    <Reminders Enabled="false" />
     <AppointmentContextMenuSettings EnableDefault="true" />
     
    <AppointmentTemplate>
            
    <B><%#Eval("last_name")%>, <%#Eval("first_name")%></B><br />
    Room: <%#Eval("room_name")%>       
             
    </AppointmentTemplate>
    <AdvancedEditTemplate
    <div class="rsAdvancedEdit" style="position: relative">  
        <%-- Title bar. --%> 
        <div class="rsAdvTitle">  
            <%-- The rsAdvInnerTitle element is used as a drag handle when the form is modal. --%> 
            <h1 class="rsAdvInnerTitle">  
                Update Appointment</h1
            <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose" 
                CommandName="Cancel" CausesValidation="false" ToolTip='close'>  
                close  
            </asp:LinkButton
        </div
        <div class="rsAdvContentWrapper">  
         
                <telerik:RadComboBox ID="rcbPatients" runat="server" Height="200" Width="200"
                      SelectedValue='<%# Bind("patient_id") %>'
                      DataSourceID="sqlConnPatients" DataValueField="patient_id" DataTextField="full_name"
                      DropDownWidth="310" EmptyMessage="Choose Patient" HighlightTemplatedItems="true"
                      EnableLoadOnDemand="true" Filter="Contains" >
 
                      <HeaderTemplate>
                           <table style="width: 275px" cellspacing="0" cellpadding="0">
                                <tr>
                                     <td style="width: 175px;">
                                          Patient Name
                                     </td>
 
                                     <td style="width: 60px;">
                                          DOB
                                     </td>
                                     <td style="width: 40px;">
                                     </td>
                                </tr>
                           </table>
 
                      </HeaderTemplate>
                      <ItemTemplate>
                           <table style="width: 275px" cellspacing="0" cellpadding="0">
                                <tr>
                                     <td style="width: 175px;">
                                    <%#DataBinder.Eval(Container.DataItem, "last_name").ToString%>,
                                    <%#DataBinder.Eval(Container.DataItem, "first_name").ToString%>
                                     </td>
                                     <td style="width: 60px;">
                                    <%#getDateFromYYYYMMDD(DataBinder.Eval(Container.DataItem, "dob").ToString)%>
                                     </td>
                                     <td style="width: 40px;">
                                     </td>
                                </tr>
                           </table>
                      </ItemTemplate>
                 </telerik:RadComboBox>
                <asp:ImageButton id="ImageButton22" runat="server" Alt="Client Search" ImageUrl="~/img/binocs_icon.jpg" OnClientClick="return AddPatient();"></asp:ImageButton>
                  
 
            <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">  
                <div class="rsAdvButtonWrapper">  
                    <asp:LinkButton CommandName="Update" ValidationGroup="EditVisit"  runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">  
            <span>Save</span
                    </asp:LinkButton
                    <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel" 
                        CausesValidation="false">  
            <span>Cancel</span
                    </asp:LinkButton
                     
                     
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox=true ShowSummary=false
                    HeaderText="Please enter the following." ValidationGroup="EditVisit" />                           
                     
                </div
            </asp:Panel
        </div
    </div
    </AdvancedEditTemplate
     
     
    <AdvancedInsertTemplate>
    .....
 
     </AdvancedInsertTemplate>          
 
    <TimeSlotContextMenuSettings EnableDefault="true" />
    <AppointmentContextMenuSettings EnableDefault="true" />
     
</telerik:RadScheduler>

Plamen
Telerik team
 answered on 14 Jan 2014
7 answers
659 views
Based on the example in http://www.telerik.com/community/forums/aspnet-ajax/listbox/simple-multiselect.aspx
it is possible to allow selection of multiple items in the listbox by clicking without having to press any modifier key

However, while testing this implementation on a page with 1 RadAjaxManager with multiple listboxes with multiple select, we seem to have found a bug with the selection of items when the user drags within the listbox and then move to another listbox (both with multiple select). Selection of multiple items by clicking on each item in each listbox works fine, but sometimes (rarely, but it does happen), dragging the mouse while clicking on an item puts the mouse in a permanent "drag mode" for that particular listbox, whenever the mouse moves back into the radlistbox, it auto selects/deselects items even when it is not pressed, it's as if the mouse is always dragging within the listbox.

1) Has anyone experienced this behaviour before?
2) In order to find an easy solution for this, I'll like to ask if there is a way to disable drag selection within an RadListBox? (meaning to allow the user to select multiple items by clicking only, but not by click+dragging the mouse inside the listbox)

Joey
Top achievements
Rank 1
 answered on 14 Jan 2014
7 answers
521 views

Hello All,

             I am using a telerik Rad Grid,i want the rad grid in a vertical direction i.e, the name of the columns must be on the left hand side and the data related to the columns must be on the right hand side.

  To do this I was using the hardcoded datatable.The data is being bind but the grid is not displayed a blank grid is being displayed.

Please suggest me the answers


Thank in advance
Regards
Ritzie
Daniel
Top achievements
Rank 1
 answered on 14 Jan 2014
1 answer
124 views
Hi,

I want to allow the user dragging the mouse over empty time slots, and select few cells.
Currently I have only mouse hover color, but I can't select a cell, and can't drag and select few cells.
I thought it because I don't have a context menu option on time slots, but it didn't help to add it.

In your demos, like the one on context menus, I didn't see any special property for this.

I have version 2013.2.717.40.

Thanks,
Guy.
Segev
Top achievements
Rank 1
 answered on 14 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?