Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
168 views
We are using the RedEditor control to print letters from our ASP.NET application.  We have a client side event on a Print button as follows:
function radButtonPrint_ClientClicked() {
    var editor = $find('radEditor');
    editor.fire("Print");
}

When the user clicks the Print button, the print dialog appears and we can select the desired printer and print the letter (the HTML contents of the RadEditor control).

Is there a way to get the return codes from the Print Dialog via this "fire" command?  We're trying to handle the case where the user has clicked Print to open the Print Dialog and then clicked Cancel on the dialog so that ultimately we can take further action (redirect appropriately, etc)
Rumen
Telerik team
 answered on 03 Apr 2013
1 answer
216 views
It appears that the latest release of Telerik DLL's is no longer finring the OnClientPasteHtml event for the DocumentManager tool in RadEditor.  We have some logic coded for this event, which has been working until we upgraded the DLL's to the latest release. 
1. Does anyone know why this event was removed from the DocumentManager tool?
2. Is there a workaround or fix for this so that we don't have to completely change the logic that is currently working in our production environment?

Thank you for your assistance,
Ed Sudit
Rumen
Telerik team
 answered on 03 Apr 2013
2 answers
122 views
Hi,

1. In our application we are using radGrid control with 8 combobox ,many textbox controls and hiddens fileds inside it. Based on the selection we show/hide combobox on grid.When edit button is pressed, we are filing and showing up comboboxes - When rows > 15 grid takes on average 20sec to come to edit mode.If rows are less still it takes 5-10sec. 

2. Based on button click we are adding the new row to radgrid from server side code, when again if rows >5 take 5-15 sec to a load.

3. On IE10(In one of the compatible mode) radCombobox width increases to the inner width of page.

4. RadWindow do not work on IE10(non -compatible mode), on button click we shows radwindow. Which workes properly on IE7/8/9

As of today many customers are using IE7/IE8.
Basically what I see is Telerik controls especially radGrid takes more time to render on IE-Browser.
If I run my page on Crome or Firefox, performance is very fast compared to IE7/8/9/10.
We tried the performance optimization suggested on your website, but still perofomance is very slow.

We are using Version : 2012.2.724.40.

If you have any suggestions, please reply.


-Sunil
Sunil
Top achievements
Rank 1
 answered on 03 Apr 2013
1 answer
182 views
Hi

I have a pre render event to scan the header and turn off the select all checkbox.

My pre render code looks like this:
Protected Sub rgProcedures_PreRender(sender As Object, e As EventArgs) Handles rgProcedures.PreRender
 
    For Each HeaderItem As Telerik.Web.UI.GridHeaderItem In rgProcedures.MasterTableView.GetItems(Telerik.Web.UI.GridItemType.Header)
        Dim chkSelectAll As CheckBox = DirectCast(HeaderItem("colClientSelect").Controls(0), CheckBox)
        chkSelectAll.Visible = False
    Next
 
 
End Sub


I have just added a <columnGroup> to combine a header over 2 columns and get the following error:

Specified argument was out of the range of valid values.
Parameter name: index


At this line in my Pre render: Dim chkSelectAll As CheckBox = DirectCast(HeaderItem("colClientSelect").Controls(0), CheckBox)

Any Ideas
Andrey
Telerik team
 answered on 03 Apr 2013
1 answer
169 views
I have a page that contains a RadToolTip.  The ToolTip shows a User Control based dialog when activated. The dialog contains two RadComboBoxes and a Grid. There is also a RadAjaxProxy that controls updateing the interactions between these three controls. This is all working fine.

On the page that contains the ToolTip, I am trying to add a new Grid. However, when I add the grid, the Ajax between the controls stops working. 

Here's the Grid I'm trying to add.  Is there a setting in this grid that is interfering with the AJAX in the user control?

            <div style="width: 900px;">
                        <fieldset style="width: 90%">
                            <p>                                                            
                                <asp:Label ID="lblNoteError" runat="server" EnableViewState="False" Font-Bold="True"
                                    ForeColor="#FF8080"></asp:Label>
                                <asp:Label ID="lblNoteMessage" runat="server" EnableViewState="False" Font-Bold="True"
                                    ForeColor="#00C000"></asp:Label>
                                <telerik:RadGrid ID="NotesGrid" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True"
                                    Width="700px" AllowPaging="False" runat="server" PageSize="20" AllowAutomaticInserts="True"
                                    OnItemDeleted="NotesGrid_ItemDeleted" OnItemUpdated="NotesGrid_ItemUpdated" OnItemInserted="NotesGrid_ItemInserted"
                                    CellSpacing="0" GridLines="None" DataSourceID="odsNotes">
                                    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="NotesId"
                                        AutoGenerateColumns="False" DataSourceID="odsNotes">
                                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                        </RowIndicatorColumn>
                                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                        </ExpandCollapseColumn>
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="NoteText" FilterControlAltText="Filter Note column" HeaderStyle-Width="700px"
                                                HeaderText="Note" SortExpression="NoteText" UniqueName="NoteText" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="CreatedBy" FilterControlAltText="Filter Created By column"
                                                HeaderText="Created By" SortExpression="CreatedBy" UniqueName="CreatedBy" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="CreatedOn" FilterControlAltText="Filter Created Date column"
                                                HeaderText="Created Date" SortExpression="CreatedOn" UniqueName="CreatedOn" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="ModifiedBy" FilterControlAltText="Filter Modified By column"
                                                HeaderText="Modified By" SortExpression="ModifiedBy" UniqueName="ModifiedBy" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="ModifiedOn" FilterControlAltText="Filter Modified Date column"
                                                HeaderText="Modified Date" SortExpression="ModifiedOn" UniqueName="ModifiedOn" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                        <EditFormSettings EditFormType="Template">
                                            <FormTemplate>
                                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("NoteText") %>' Rows="4" Width="800px">
                                            </asp:TextBox>
                                            </FormTemplate>
                                        </EditFormSettings>
                                        <CommandItemTemplate>
                                            <div style="padding: 5px 5px;">
                                                <asp:LinkButton ID="btnEditNoteSelected" runat="server" CommandName="EditSelected" Visible='<%# NotesGrid.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="../Images/Edit.gif"/>Edit selected</asp:LinkButton>&nbsp;&nbsp;
                                                <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# NotesGrid.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="../Images/Update.gif"/>Update</asp:LinkButton>&nbsp;&nbsp;
                                                <asp:LinkButton ID="btnNoteCancel" runat="server" CommandName="CancelAll" Visible='<%# NotesGrid.EditIndexes.Count > 0 || NotesGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="../Images/Cancel.gif"/>Cancel editing</asp:LinkButton>&nbsp;&nbsp;
                                                <asp:LinkButton ID="btnInsertNote" runat="server" CommandName="InitInsert" Visible='<%# !NotesGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="../Images/AddRecord.gif"/>Add new</asp:LinkButton>&nbsp;&nbsp;
                                                <asp:LinkButton ID="btnSaveInsert" runat="server" CommandName="PerformInsert" Visible='<%# NotesGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="../Images/Insert.gif"/> Save</asp:LinkButton>&nbsp;&nbsp;
                                                <asp:LinkButton ID="btnDeleteNote" OnClientClick="javascript:return confirm('Delete selected Asset Type?')"
                                                   runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="../Images/Delete.gif"/>Delete selected</asp:LinkButton>&nbsp;&nbsp;
                                            </div>
                                        </CommandItemTemplate>
                                    </MasterTableView>
                                    <ClientSettings>
                                        <Selecting AllowRowSelect="True"></Selecting>
                                        <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True"
                                            SaveScrollPosition="True" />
                                    </ClientSettings>
                                    <FilterMenu EnableImageSprites="False">
                                    </FilterMenu>
                                </telerik:RadGrid>
                                <asp:ObjectDataSource ID="odsNotes" runat="server" TypeName="AssetVue.BLL.Entities.Note"
                                    DataObjectTypeName="AssetVue.BLL.Entities.Note" SelectMethod="getAllNotes"
                                    InsertMethod="addNote" UpdateMethod="updateNote" DeleteMethod="deleteNote" 
                                    OnInserting="odsNotes_Inserting" OnSelecting="odsNotes_Selecting">
                                    <SelectParameters>
                                        <asp:Parameter Name="parentId" Type="String" />
                                    </SelectParameters>
                                    <InsertParameters>
                                        <asp:Parameter Name="parentId" Type="String" />
                                        <asp:Parameter Name="parentType" Type="String" />
                                    </InsertParameters>
                               </asp:ObjectDataSource>
                            </p>
                        </fieldset>
                    </div>
Maria Ilieva
Telerik team
 answered on 03 Apr 2013
1 answer
175 views
Hello,

GIVEN:

1. Using ASP.NET AJAX 2013 Q1
2. RadScheduler contained in a RadAjaxPanel
3. Using model binding(setting the ItemType and SelectMethod properties of the RadScheduler)

ISSUE:

When trying to call the Rebind()  method of the RadScheduler in code behind( AjaxRequest[RadAjaxPanel], AppoimentDelete[RadScheduler]) i get the following error:
Data properties on data control 'RadSceduler_ID' such as DataSource, DataSourceID, and DataMember cannot be changed during the databinding phase of the control

I "fixed" it in the AjaxRequest event handler by calling the DataBind() method instead of Rebind() but it still doesn't work in the AppointmentDelete event handler(error above)
Plamen
Telerik team
 answered on 03 Apr 2013
1 answer
124 views
When I select time from top of scheduler InlineInsertForm is shown correctly (1.png)but when select from bottom of Scheduler part of InlineInsertForm is hidden (2.png)
        <telerik:RadScheduler runat="server" ID="PatientScheduler" Width="100%" Height="100%"
            EditFormDateFormat="yyyy/MM/dd"             
            Skin="Office2010Blue"
            EnableRecurrenceSupport="false"
            StartInsertingInAdvancedForm="false"
            StartEditingInAdvancedForm="false"> 
Plamen
Telerik team
 answered on 03 Apr 2013
0 answers
130 views
Hello sir,

I am using radcalender in one of my application 
My application is developing and running in VS 2010 + Telerik 2013.1.220 + IE 10

<telerik:RadDatePicker SkinID="ESSDatePicker" ID="PickerFrom" runat="server" AutoPostBack="True OnSelectedDateChanged="PickerFrom_SelectedDateChanged" Width="140px">
<DateInput ButtonsPosition="Left" runat="server" DateFormat="dd-MMM-yyyy" DisplayDateFormat="ddd, dd-MMM-yyyy"
 ReadOnly="True" AutoPostBack="True" Height="23px">
 </DateInput>
  </telerik:RadDatePicker>


I am getting radcalender display as shown in image attached to it
I have created skinn in theme and the attached to it.

<telerik:RadDatePicker SkinID="ESSDatePicker"
    EnableEmbeddedSkins="false"
    Skin="Eil"   
    runat="server">
    <DateInput cssClass="rdDatepicker" >
    <EnabledStyle BackColor="White" />
    </DateInput>
    <Calendar  
    ShowRowHeaders="false"
    ShowOtherMonthsDays="false"
    EnableEmbeddedBaseStylesheet="false"  
    font-family= Arial;>
    </Calendar>    
    <DatePopupButton HoverImageUrl="" ImageUrl=""/>
       
</telerik:RadDatePicker>


I have created Skin for it as

table.RadCalendar_Eil
{
    table-layout:auto;
    border-collapse:separate;
    border:0;
    background:#fff;
    font-family: Arial;
    font-size: 8pt;
    width:220px;
}
 
/*titlebar*/
 
.RadCalendar_Eil .rcTitlebar
{
    height:22px;
    width:100%;
    border:1px solid;
    border-color:#868686 #868686 #c4c4c4;
    padding:0;
    background:#eaeaea 0 -1000px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    color:#000;
}
 
.RadCalendar_Eil .rcTitlebar table
{
    table-layout:auto;
    width:100%;
    border-collapse:separate;
    border:0;
    font-family: Arial;
    font-size: 8pt;
}
 
.RadCalendar_Eil .rcTitlebar td
{
    border:0;
    padding:0 0 1px;
    text-align:center;
    vertical-align:middle;
}
 
.RadCalendar_Eil .rcTitlebar .rcTitle
{
      
    width:100%;
    cursor:pointer;
}
.RadCalendar_Eil .rcNoNav .rcTitle
{
    cursor:default;
}
 
.RadCalendar_Eil .rcTitlebar .rcPrev,
.RadCalendar_Eil .rcTitlebar .rcNext,
.RadCalendar_Eil .rcTitlebar .rcFastPrev,
.RadCalendar_Eil .rcTitlebar .rcFastNext
{
    display:block !important;
    width:15px;
    height:15px;
    overflow:hidden !important;
    margin:0 4px;
    background:transparent url('../../Pages/Images/SKIN/Calendar/sprite.gif') no-repeat;
    text-indent:-2222px;
    text-decoration:none;
    color:#ccc;
}
 
.RadCalendar_Eil .rcTitlebar .rcFastPrev
{
    margin-left:6px;
    background-position:1px -197px;
}
 
.RadCalendar_Eil .rcTitlebar .rcFastPrev:hover
{
    background-position:1px -247px;
}
 
.RadCalendar_Eil .rcTitlebar .rcPrev
{
    background-position:4px -297px;
}
 
.RadCalendar_Eil .rcTitlebar .rcPrev:hover
{
    background-position:4px -347px;
}
 
.RadCalendar_Eil .rcTitlebar .rcNext
{
    background-position:3px -397px;
}
 
.RadCalendar_Eil .rcTitlebar .rcNext:hover
{
    background-position:3px -447px;
}
 
.RadCalendar_Eil .rcTitlebar .rcFastNext
{
    margin-right:6px;
    background-position:1px -497px;
}
 
.RadCalendar_Eil .rcTitlebar .rcFastNext:hover
{
    background-position:1px -547px;
}
 
.RadCalendar_Eil .rcMain
{
    width:100%;
    border:1px solid #868686;
    border-top:0;
    padding:0;
}
 
.RadCalendar_Eil .rcMainTable
{
    table-layout:auto;
    border-collapse:separate;
    border:0;
    width:100%;
    font-family: Arial;
    font-size: 8pt;
}
 
/*header, footer*/
 
.RadCalendar_Eil .rcHeader,
.RadCalendar_Eil .rcFooter
{
    border:1px solid #868686;
    border-top:0;
    padding:0;
}
 
/*week numbers and days*/
 
.RadCalendar_Eil .rcRow th,
.RadCalendar_Eil .rcWeek th
{
    border:0;
    font-family: Arial;
    font-size: 8pt;
    vertical-align:middle;
    cursor:default;
}
 
.RadCalendar_Eil .rcWeek th
{
    border-bottom:1px solid #c5c5c5;
    padding:4px 6px 3px 0;
    text-align:right;
    color:#333;
}
 
.RadCalendar_Eil .rcWeek .rcViewSel,
.RadCalendar_Eil .rcRow th
{
    width:13px;
    padding:0 7px 0 9px;
    background:#eee;
    text-align:center;
}
 
.RadCalendar_Eil .rcRow th
{
    color:#777;
}
 
/*date cells*/
 
.RadCalendar_Eil .rcRow td
{
    border:1px solid #fff;
    padding:0;
    text-align:right;
    vertical-align:middle;
}
 
.RadCalendar_Eil .rcMain .rcRow a,
.RadCalendar_Eil .rcMain .rcRow span
{
    display:block;
    padding:1px 5px 1px 0;
    text-decoration:none;
    color:#333;
}
 
.RadCalendar_Eil .rcPreview .rcRow a
{
    outline:none;
}
 
.RadCalendar_Eil .rcMain .rcWeekend a
{
    color:#666;
}
 
.RadCalendar_Eil .rcRow .rcToday
{
    border-color:#898989;
}
 
.RadCalendar_Eil .rcMain .rcOtherMonth a
{
    color:#898989;
}
 
.RadCalendar_Eil .rcMain .rcOutOfRange span
{
    color:#898989;
    cursor:default;
}
 
.RadCalendar_Eil .rcRow .rcHover
{
    border-color:#c4c4c4 #b2b2b2 #9e9e9e;
    background:#c5c5c5 0 -1600px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
}
 
.RadCalendar_Eil .rcRow .rcSelected
{
    border-color:#8d8d8d #7d7d7d #6c6c6c;
    background:#828282 0 -1700px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
}
 
.RadCalendar_Eil .rcMain .rcRow .rcSelected a
{
    color:#fff;
}
 
/*multimonth view*/
 
table.RadCalendarMultiView_Eil
{
    width:auto;
}
 
.RadCalendarMultiView_Eil .rcTitlebar
{
    border-color:#9a9a9a #9c9c9c #9c9c9c;
    background:#c5c5c5 0 -1199px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
}
 
.RadCalendarMultiView_Eil .rcTitlebar table
{
    border:1px solid;
    border-color:#fdfdfd #f3f3f3 #e7e7e7;
    line-height:27px;
}
 
.RadCalendarMultiView_Eil .rcTitlebar .rcFastPrev:hover
{
    background-position:1px -647px;
}
 
.RadCalendarMultiView_Eil .rcTitlebar .rcPrev:hover
{
    background-position:4px -747px;
}
 
.RadCalendarMultiView_Eil .rcTitlebar .rcNext:hover
{
    background-position:3px -847px;
}
 
.RadCalendarMultiView_Eil .rcTitlebar .rcFastNext:hover
{
    background-position:1px -947px;
}
 
.RadCalendarMultiView_Eil .rcMain
{
    border-color:#9b9b9b;
}
 
.RadCalendarMultiView_Eil .rcCalendar
{
    width:220px;
    border:1px solid #868686;
    padding:0;
}
 
.RadCalendarMultiView_Eil .rcMainTable .rcTitle
{
    border:0;
    border-bottom:1px solid #c4c4c4;
    padding:0 0 2px;
    background:#eaeaea 0 -1000px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    text-align:center;
    line-height:22px;
}
 
/*month view*/
 
table.RadCalendarMonthView_Eil
{
    border-collapse:separate;
    border:1px solid #979797;
    background:#fff;
    font-family: Arial;
    font-size: 8pt;
}
 
table.RadCalendarMonthView_Eil td
{
    border:0;
    padding:5px 2px 0;
}
 
.RadCalendarMonthView_Eil #rcMView_Feb,
.RadCalendarMonthView_Eil #rcMView_Apr,
.RadCalendarMonthView_Eil #rcMView_Jun,
.RadCalendarMonthView_Eil #rcMView_Aug,
.RadCalendarMonthView_Eil #rcMView_Oct,
.RadCalendarMonthView_Eil #rcMView_Dec
{
    border-right:1px solid #e0e0e0;
}
 
.RadCalendarMonthView_Eil a
{
    display:block !important;
 
    padding:2px 4px;
    text-align:center;
    text-decoration:none;
    color:#333;
}
 
.RadCalendarMonthView_Eil .rcSelected a
{
    border:1px solid !important;
 
    border-color:#8d8d8d #7d7d7d #6c6c6c;
    padding:1px 3px;
    background:#828282 0 -1700px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    color:#fff;
}
 
.RadCalendarMonthView_Eil #rcMView_PrevY a,
.RadCalendarMonthView_Eil #rcMView_NextY a
{
    display:block !important;
 
    width:17px;
    height:14px;
    overflow:hidden !important;
 
    margin:0 auto;
    background:transparent no-repeat url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    text-indent:-2222px;
    text-align:center;
    text-decoration:none;
    color:#ccc;
}
 
.RadCalendarMonthView_Eil #rcMView_PrevY a
{
    background-position:7px -196px;
}
 
.RadCalendarMonthView_Eil #rcMView_NextY a
{
    background-position:7px -496px;
}
 
.RadCalendarMonthView_Eil .rcButtons
{
    padding:6px 7px 5px;
    text-align:center;
}
 
.RadCalendarMonthView_Eil input
{
    border:1px solid;
    border-color:#a7a7a7 #7b7b7b #7b7b7b #a7a7a7;
    padding:0;
    background:#e9e9e9 0 -2300px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    color:#000;
    font-family: Arial;
    font-size: 8pt;
    cursor:pointer;
}
 
.RadCalendarMonthView_Eil #rcMView_Today
{
    margin:0 0.4em 0 0;
}
 
.RadCalendarMonthView_Eil #rcMView_OK
{
    padding:0 0.2em;
}
 
/*time view*/
 
table.RadCalendarTimeView_Eil
{
    border-collapse:separate;
    border:1px solid #868686;
    background:#fff;
    font-family: Arial;
    font-size: 8pt;
}
 
.RadCalendarTimeView_Eil th
{
    border:0;
    border-bottom:1px solid #c4c4c4;
    padding:0 0 1px;
    background:#eaeaea 0 -1000px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    color:#000;
    text-align:center;
    cursor:default;
    line-height:23px;
    font-family: Arial;
    font-size: 8pt;
}
 
table.RadCalendarTimeView_Eil td
{
    border:0;
    border-left:1px solid #c5c5c5;
    padding:2px 2px 3px;
}
 
table.RadCalendarTimeView_Eil td:first-child
{
    border-left:0;
}
 
.RadCalendarTimeView_Eil a
{
    display:block !important;
 
    padding:2px 6px;
    text-align:center;
    color:#333;
    text-decoration:none;
}
 
.RadCalendarTimeView_Eil td.rcSelected a
{
    border:1px solid;
    border-color:#8d8d8d #7d7d7d #6c6c6c;
    padding:1px 5px;
    background:#828282 0 -1700px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    color:#fff;
}
 
.RadCalendarTimeView_Eil td.rcHover a
{
    border:1px solid;
    border-color:#c4c4c4 #b2b2b2 #9e9e9e;
    padding:1px 5px;
    background:#c5c5c5 0 -1600px repeat-x url('../../Pages/Images/SKIN/Calendar/sprite.gif');
    color:#000;
}
 
.RadCalendarTimeView_Eil .rcFooter
{
    border:0;
    border-top:1px solid #c5c5c5;
    padding:0;
}
 
/*pickers*/
 
.RadPicker_Eil,
.RadPicker_Eil td
{
    vertical-align:middle;
}
 
.RadPicker_Eil .RadInput
{
    vertical-align:baseline !important;
 
}
 
.RadPicker_Eil .rcTable
{
    table-layout:auto;
}
 
.RadPicker_Eil table.rcTable,
.RadPicker_Eil table.rcTable td
{
    border:0;
    margin:0;
    padding:0;
}
 
.RadPicker_Eil table.rcTable .rcInputCell
{
    padding:0 4px 0 0;
}
 
.RadPicker_Eil td a
{
    position:relative !important;
/*FF*/
    outline:none !important;
/*FF*/
    z-index:2 !important;
/*Opera*/
    margin:0 2px !important;
 
    text-decoration:none !important;
 
}
* html .RadPicker_Eil td a{position:static}/*IE6*/
*+html .RadPicker_Eil td a{position:static}/*IE7*/
 
.RadPicker_Eil .rcCalPopup,
.RadPicker_Eil .rcTimePopup
{
    display:block !important;
 
    overflow:hidden !important;
 
    width:22px !important;
 
    height:22px !important;
 
    background:url('../../Pages/Images/SKIN/Calendar/sprite.gif') no-repeat;
    text-indent:-2222px;
    text-align:center;
}
 
.RadPicker_Eil .rcCalPopup,
.RadPicker_Eil .rcDisabled.rcCalPopup:hover
{
    background-position:0 0;
}
 
.RadPicker_Eil .rcCalPopup:hover,
.RadPicker_Eil .rcCalPopup:focus,
.RadPicker_Eil .rcCalPopup:active
{
    background-position:0 -50px;
}
 
.RadPicker_Eil .rcTimePopup,
.RadPicker_Eil .rcDisabled.rcTimePopup:hover
{
    background-position:0 -100px;
}
 
.RadPicker_Eil .rcTimePopup:hover,
.RadPicker_Eil .rcTimePopup:focus,
.RadPicker_Eil .rcTimePopup:active
{
    background-position:0 -150px;
}
 
.RadPicker_Eil .rcDisabled,
.RadCalendarMonthView_Eil .rcDisabled
{
    opacity:0.5;
    filter:alpha(opacity=50);
}
 
/*rtl*/
 
.RadCalendarRTL_Eil .rcTitlebar .rcFastPrev
{
    background-position:1px -497px;
}
 
.RadCalendarRTL_Eil .rcTitlebar .rcFastPrev:hover
{
    background-position:1px -547px;
}
 
.RadCalendarRTL_Eil .rcTitlebar .rcPrev
{
    background-position:3px -397px;
}
 
.RadCalendarRTL_Eil .rcTitlebar .rcPrev:hover
{
    background-position:3px -447px;
}
 
.RadCalendarRTL_Eil .rcTitlebar .rcNext
{
    background-position:4px -297px;
}
 
.RadCalendarRTL_Eil .rcTitlebar .rcNext:hover
{
    background-position:4px -347px;
}
 
.RadCalendarRTL_Eil .rcTitlebar .rcFastNext
{
    background-position:1px -197px;
}
 
.RadCalendarRTL_Eil .rcTitlebar .rcFastNext:hover
{
    background-position:1px -247px;
}
 
.RadCalendarMultiViewRTL_Eil .rcTitlebar .rcFastPrev:hover
{
    background-position:1px -947px;
}
 
.RadCalendarMultiViewRTL_Eil .rcTitlebar .rcPrev:hover
{
    background-position:3px -847px;
}
 
.RadCalendarMultiViewRTL_Eil .rcTitlebar .rcNext:hover
{
    background-position:4px -747px;
}
 
.RadCalendarMultiViewRTL_Eil .rcTitlebar .rcFastNext:hover
{
    background-position:1px -647px;
}

Please take me out of this
Amit
Top achievements
Rank 1
 asked on 03 Apr 2013
2 answers
55 views
Dear Dude
I want to change displayed lable in RadScheduler. It is "Year,Day Month, WeekDay". I want to be "14 فروردین":",Year, Month Day, Week Day".
As shown in picture.
Plamen
Telerik team
 answered on 03 Apr 2013
1 answer
161 views
I have tried the last few days to create a grid filter using the following Demo, however I am failing.
I am receiving the following error:
"JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Selection out of range
Parameter name: value"


To eliminate this error I remove the following piece of code: "SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("colEquipmentType").CurrentFilterValue %>'"

When I remove this code the filter works fine, however the combo box does not repopulate correctly.  The only item in the combo box is "All".

Is this issue because I am using a data layer to populate the combo box filter?

.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EquipmentManager2.aspx.cs"
    Inherits="EquipmentManager2" EnableEventValidation="false" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Equipment Manager</title>
    <link href="../StyleSheets/Window.HansonsError.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100% !important;
            margin: 0px;
            padding: 0px;
            overflow: hidden;
        }
         
        body
        {
            background-image: url("../Images/Background.png");
            background-repeat: repeat;
        }
        .PageTitle
        {
            border-style: none;
            height: 50px;
            width: 100%;
            font-size: xx-large;
            font-weight: bold;
            text-align: center;
            color: Navy;
            font-family: MS Sans Serif;
        }
         
        .label
        {
            font-family: Arial;
            width: 135px;
            font-size: small;
            text-align: left;
            padding-left: 10px;
        }
        .control
        {
            font-family: Arial;
            width: 5px;
            font-size: small;
        }
        .grid
        {
            padding-left: 15px;
        }
    </style>
</head>
<body>
    <table class="PageTitle" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                Equipment Manager
            </td>
        </tr>
    </table>
    <hr />
    <form id="form1" runat="server">
    <telerik:RadWindow ID="rwErrors" runat="server" Behaviors="Close" EnableEmbeddedSkins="false"
        Skin="HansonsError">
        <ContentTemplate>
            <asp:ListBox ID="lbErrors" runat="server"></asp:ListBox>
        </ContentTemplate>
    </telerik:RadWindow>
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <%--Equipment Type--%>
            <td class="label">
                Equipment Type:
            </td>
            <td class="control">
                <telerik:RadComboBox ID="cboEquipmentType" runat="server" EmptyMessage="Select Equipment Type"
                    AllowCustomText="True" />
            </td>
            <%--Grid--%>
            <td class="grid" rowspan="9">
                <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
                <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All"
                    EnableRoundedCorners="false" />
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="rgEquipmentRecords">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="rgEquipmentRecords" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
                <telerik:RadGrid runat="server" ID="rgEquipmentRecords" CellSpacing="0" Skin="Vista"
                    Width="98%" AutoGenerateColumns="False" GridLines="None" AllowSorting="True"
                    OnNeedDataSource="rgEquipmentRecords_NeedDataSource" AllowPaging="True" GroupingEnabled="False"
                    AllowFilteringByColumn="True" PageSize="13" OnItemDataBound="rgEquipmentRecords_ItemDataBound"
                    OnItemCommand="rgEquipmentRecords_ItemCommand">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="true" />
                    </ClientSettings>
                    <AlternatingItemStyle BackColor="AliceBlue" />
                    <ItemStyle BackColor="White" />
                    <PagerStyle AlwaysVisible="True" ShowPagerText="False" PageButtonCount="13" />
                    <MasterTableView DataKeyNames="EquipmentType,Qty,IssuedTo,DateIssued,Approvedby,IssuedBy,ID,Notes">
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="True">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <%--Grid Column Record Id--%>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" ReadOnly="true" UniqueName="colID"
                                ItemStyle-HorizontalAlign="center" AllowFiltering="False">
                                <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Equipment Type--%>
                            <telerik:GridBoundColumn DataField="EquipmentType" HeaderText="Equip Type" ReadOnly="true"
                                UniqueName="colEquipmentType" ItemStyle-HorizontalAlign="Left">
                                <HeaderStyle Width="100px" />
                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                <%--Equipment Type Filter--%>
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="cboEquipmentTypeFilter" DataTextField="DESC" DataValueField="DESC"
                                        Height="200px" Width="135px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("colEquipmentType").CurrentFilterValue %>'
                                        runat="server" OnClientSelectedIndexChanged="EquipmentTypeIndexChanged">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="All" />
                                        </Items>
                                    </telerik:RadComboBox>
                                    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                                        <script type="text/javascript">
 
                                            function EquipmentTypeIndexChanged(sender, args) {
 
                                                var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
 
                                                tableView.filter("colEquipmentType", args.get_item().get_value(), "EqualTo");
 
                                            }
 
                                        </script>
                                    </telerik:RadScriptBlock>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            <%--Grid Column QTY--%>
                            <telerik:GridBoundColumn DataField="Qty" HeaderText="QTY" ReadOnly="true" UniqueName="colQty"
                                ItemStyle-HorizontalAlign="Center" AllowFiltering="False">
                                <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <%--Grid Column BarCode Number--%>
                            <telerik:GridBoundColumn DataField="BarcodeNumber" HeaderText="Barcode" ReadOnly="true"
                                UniqueName="colBarcode" ItemStyle-HorizontalAlign="Center" AllowFiltering="False">
                                <HeaderStyle HorizontalAlign="Center" Width="80px" />
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Department--%>
                            <telerik:GridBoundColumn DataField="Department" HeaderText="Dept" ReadOnly="true"
                                UniqueName="colDept" ItemStyle-HorizontalAlign="Left">
                                <HeaderStyle Width="90px" />
                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                <%--Department Filter--%>
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="cboDepartmentFilter" DataTextField="DESC" DataValueField="DESC"
                                        ColName="colDept" Height="200px" Width="115px" AppendDataBoundItems="true" runat="server">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="All" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Division--%>
                            <telerik:GridBoundColumn DataField="Division" HeaderText="Div" ReadOnly="true" UniqueName="colDiv"
                                ItemStyle-HorizontalAlign="Left">
                                <HeaderStyle Width="90px" />
                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                <%--Division Filter--%>
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="cboDivisionFilter" DataTextField="DESC" DataValueField="DESC"
                                        ColName="colDiv" Height="200px" Width="115px" AppendDataBoundItems="true" runat="server">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="All" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Issued To--%>
                            <telerik:GridBoundColumn DataField="IssuedTo" HeaderText="Issued To" ReadOnly="true"
                                UniqueName="colIssuedTo" ItemStyle-HorizontalAlign="Left">
                                <HeaderStyle Width="90px" />
                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                <%--Issued To Filter--%>
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="cboIssuedToFilter" DataTextField="empltxtFullNameLF" DataValueField="empltxtFullNameLF"
                                        ColName="colIssuedTo" Height="200px" Width="115px" AppendDataBoundItems="true" runat="server">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="All" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Date Issued--%>
                            <telerik:GridBoundColumn DataField="DateIssued" HeaderText="Date Issue" ReadOnly="true"
                                UniqueName="colDateIssue">
                                <HeaderStyle Width="90px" />
                                <%--Date Issued Filter--%>
                                <FilterTemplate>
                                    <telerik:RadDatePicker ID="calDateIssued" Width="100px" AppendDataBoundItems="true"
                                        runat="server">
                                    </telerik:RadDatePicker>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Approved By--%>
                            <telerik:GridBoundColumn DataField="Approvedby" HeaderText="Approved By" ReadOnly="true"
                                UniqueName="colApprovedby">
                                <HeaderStyle Width="90px" />
                                <%--Approved By Filter--%>
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="cboApprovedbyFilter" DataTextField="empltxtFullNameLF" DataValueField="empltxtFullNameLF"
                                        ColName="colApprovedby" Height="200px" Width="120px" AppendDataBoundItems="true"
                                        runat="server">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="All" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Issued By--%>
                            <telerik:GridBoundColumn DataField="IssuedBy" HeaderText="Issued By" ReadOnly="true"
                                UniqueName="colIssuedBy">
                                <HeaderStyle Width="90px" />
                                <%--Issued By Filter--%>
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="cboIssuedByFilter" DataTextField="empltxtFullNameLF" DataValueField="empltxtFullNameLF"
                                        ColName="colIssuedBy" Height="200px" Width="125px" AppendDataBoundItems="true"
                                        runat="server">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="All" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            <%--Grid Column Notes--%>
                            <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" ReadOnly="true" UniqueName="colNotes"
                                AllowFiltering="False">
                                <HeaderStyle Width="150px" />
                            </telerik:GridBoundColumn>
                            <%--Grid Column Delete--%>
                            <telerik:GridButtonColumn UniqueName="colDelete" HeaderText="Delete" ButtonType="ImageButton"
                                ItemStyle-HorizontalAlign="center" ConfirmText="This action will delete the selected record, are you sure?"
                                ConfirmDialogType="RadWindow" CommandName="Delete" ImageUrl="~/Images/Icons/DeleteRed.png">
                                <HeaderStyle Width="40px" />
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </telerik:GridButtonColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle PageButtonCount="13" />
                        <HeaderStyle Font-Bold="true" Font-Size="Small" Height="10px" />
                    </MasterTableView>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <%--QTY--%>
            <td class="label">
                Qty Issue:
            </td>
            <td class="control">
                <telerik:RadNumericTextBox ID="txtQuantityEmployeeIssued" runat="server" Height="20px"
                    MaxValue="1000">
                    <NumberFormat DecimalDigits="0" AllowRounding="false" />
                </telerik:RadNumericTextBox>
                  
            </td>
        </tr>
        <tr>
            <td class="label">
                Issue To Department:
            </td>
            <td class="control">
                <telerik:RadComboBox ID="cboDept" runat="server" EmptyMessage="Select Dept" AllowCustomText="True" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Issue To Division:
            </td>
            <td class="control">
                <telerik:RadComboBox ID="cboDiv" runat="server" EmptyMessage="Select Divison" AllowCustomText="True" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Issue To Employee:
            </td>
            <td class="control">
                <telerik:RadComboBox ID="cboIssueEmployee" runat="server" EmptyMessage="Select Issuing Employee"
                    AllowCustomText="True" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Approved By:
            </td>
            <td class="control">
                <telerik:RadComboBox ID="cboApprovedBy" runat="server" EmptyMessage="Select Approving Employee"
                    AllowCustomText="True" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Barcode:
            </td>
            <td class="control">
                <telerik:RadNumericTextBox ID="txtBarcode" runat="server">
                    <NumberFormat DecimalDigits="0" AllowRounding="false" GroupSeparator="" />
                </telerik:RadNumericTextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                Comments:
            </td>
            <td class="control">
                <telerik:RadTextBox ID="txtComments" runat="server" Skin="Office2010Blue" AutoPostBack="true"
                    TextMode="MultiLine" Height="50px" Width="180px" Style="margin-bottom: 0px">
                </telerik:RadTextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                  
            </td>
            <td class="control">
                <asp:Button ID="btnSubmit" CssClass="SubmitButton" runat="server" CommandName="Submit"
                    Text="Submit" BackColor="White" BorderWidth="1px" OnClick="btnSubmit_Click" BorderColor="Black"
                    BorderStyle="Solid" Font-Size="Medium" ForeColor="Black" Height="33px" Width="98px" />
            </td>
        </tr>
    </table>
    <hr />
    <%--Error window--%>
    <telerik:RadScriptBlock ID="rsbEquipmentManager" runat="server">
        <script type="text/javascript">
            function DisplayError() {
                var wnd = $find("<%= rwErrors.ClientID %>");
                wnd.show();
                wnd.center();
            }
//            function TitleIndexChanged(sender, args) {
//                var grid = $find("<%= rgEquipmentRecords.ClientID %>");
//                var tableView = grid.get_masterTableView();
//                tableView.filter(sender._element.getAttribute("ColName"), args.get_item().get_value(), "EqualTo");
//            }
        </script>
    </telerik:RadScriptBlock>
    </form>
</body>
</html>



.cs
using System;
using System.Linq;
using System.Web.UI;
using System.Web.UI.WebControls;
using HIWS;
using Telerik.Web.UI;
using System.Data;
 
public partial class EquipmentManager2 : HansonsWebPage
{
 
 
    protected void Page_Load(object sender, EventArgs e)
    {
 
        if (!IsPostBack)
        {
 
            //Bind all the comboboxes
            BindToDataTable(cboEquipmentType);
            BindToDataTable(cboIssueEmployee);
            BindToDataTable(cboApprovedBy);
            BindToDataTable(cboDept);
            BindToDataTable(cboDiv);
 
 
        }
 
    }
 
 
 
 
    protected void rgEquipmentRecords_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        //Bind data to grid
        using(DataSet ds = WSAccess.StepsGlobal_GetComputerEquipmentsIssued())
        {
            if (Globals.IsValidDataSet(ds))
            {
 
                rgEquipmentRecords.DataSource = ds;
            }
        }
    }
 
    //protected void FilterCombo_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
    //{
    //    RadComboBox continentsCombo = o as RadComboBox;
 
    //    //save the combo selected value 
    //    ViewState["continentsComboValue"] = continentsCombo.SelectedValue;
 
    //    //filter the grid 
    //    rgEquipmentRecords.MasterTableView.FilterExpression = "colEquipmentType = '%" + continentsCombo.SelectedValue + "%'";
    //    rgEquipmentRecords.Rebind();
    //}
 
    //protected void cboEquipmentTypeFilter_PreRender(object sender, EventArgs e)
    //{
    //    //persist the combo selected value 
    //    if (ViewState["continentsComboValue"] != null)
    //    {
    //        RadComboBox continentsCombo = sender as RadComboBox;
    //        continentsCombo.SelectedValue = ViewState["continentsComboValue"].ToString();
    //    }
    //}
 
    protected void rgEquipmentRecords_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (!IsPostBack)
        {
            if (e.Item is GridFilteringItem)
            {
 
                GridFilteringItem item = (GridFilteringItem)e.Item;
 
                // Bind Code Table(Equipment Type Filter)
                RadComboBox cmb = (RadComboBox)item.FindControl("cboEquipmentTypeFilter");
                using (DataSet dsEquipmentType3 = WSAccess.StepsGlobal_GetCodeTable("codComputerEquipmentTypes"))
                {
 
                    if (Globals.IsValidDataSet(dsEquipmentType3))
                    {
 
                        foreach (DataRow row in dsEquipmentType3.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["DESC"].ToString(), row["DESC"].ToString());
                            cmb.Items.Add(rcbi);
 
                        }
 
                    }
 
                }
 
                // Bind To Data Set(Approved by Filter)
                RadComboBox cmb1 = (RadComboBox)item.FindControl("cboApprovedbyFilter");
                using (DataSet dsApprovedBy = WSAccess.StepsGlobal_GetEmployeesBySecurityItem(400, 1, System.DateTime.Now, 0, 0))
                {
                    if (Globals.IsValidDataSet(dsApprovedBy))
                    {
 
                        foreach (DataRow row in dsApprovedBy.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["empltxtFullNameLF"].ToString(), row["empltxtFullNameLF"].ToString());
                            cmb1.Items.Add(rcbi);
 
                        }
                    }
                }
 
                // Bind To Data Set(Approved by Filter)
                RadComboBox cmb3 = (RadComboBox)item.FindControl("cboIssuedByFilter");
                using (DataSet dsIssuedBy = WSAccess.StepsGlobal_GetEmployeesBySecurityItem(400, 1, System.DateTime.Now, 0, 0))
                {
                    if (Globals.IsValidDataSet(dsIssuedBy))
                    {
 
                        foreach (DataRow row in dsIssuedBy.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["empltxtFullNameLF"].ToString(), row["empltxtFullNameLF"].ToString());
                            cmb3.Items.Add(rcbi);
 
                        }
 
                    }
                }
 
                // Bind To Data Set(Division Filter)
                RadComboBox cmb4 = (RadComboBox)item.FindControl("cboDivisionFilter");
                using (DataSet dsDiv = WSAccess.StepsGlobal_GetCodeTable("codDivisions"))
                {
                    if (Globals.IsValidDataSet(dsDiv))
                    {
                        foreach (DataRow row in dsDiv.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["DESC"].ToString(), row["DESC"].ToString());
                            cmb4.Items.Add(rcbi);
 
                        }
                    }
                }
 
 
                // Bind To Data Set(Department Filter)
                RadComboBox cmb5 = (RadComboBox)item.FindControl("cboDepartmentFilter");
                using (DataSet dsDept = WSAccess.StepsGlobal_GetCodeTable("codDepartments"))
                {
                    if (Globals.IsValidDataSet(dsDept))
                    {
                        foreach (DataRow row in dsDept.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["DESC"].ToString(), row["DESC"].ToString());
                            cmb5.Items.Add(rcbi);
 
                        }
                    }
                }
 
 
                RadComboBox cmb6 = (RadComboBox)item.FindControl("cboIssuedToFilter");
                using (DataSet dsIssueEmployee = WSAccess.StepsGlobal_GetComputerEquipmentEmployeeRecipients())
                {
                    if (Globals.IsValidDataSet(dsIssueEmployee))
                    {
                        foreach (DataRow row in dsIssueEmployee.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["empltxtFullNameLF"].ToString(), row["empltxtFullNameLF"].ToString());
                            cmb6.Items.Add(rcbi);
 
                        }
                    }
                }
 
 
 
 
            }
        }
    }
 
    private void BindToDataTable(RadComboBox combo)
    {
 
        switch (combo.ID)
        {
            case "cboEquipmentType":
                // Bind Code Table(Equipment Type)
                using (DataSet dsEquipmentType = WSAccess.StepsGlobal_GetCodeTable("codComputerEquipmentTypes"))
                {
                    if (Globals.IsValidDataSet(dsEquipmentType))
                    {
                        foreach (DataRow row in dsEquipmentType.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["DESC"].ToString(), row["ID"].ToString());
                            combo.Items.Add(rcbi);
 
                        }
 
                    }
                }
 
                break;
            case "cboIssueEmployee":
                // Bind To Data Set(Issue Employee)
                using (DataSet dsIssueEmployee = WSAccess.StepsGlobal_GetComputerEquipmentEmployeeRecipients())
                {
                    if (Globals.IsValidDataSet(dsIssueEmployee))
                    {
                        foreach (DataRow row in dsIssueEmployee.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["empltxtFullNameLF"].ToString(), row["empllngID"].ToString());
                            combo.Items.Add(rcbi);
 
                        }
                    }
                }
                break;
            case "cboApprovedBy":
                // Bind To Data Set(Approved by)
                using (DataSet dsApprovedBy = WSAccess.StepsGlobal_GetEmployeesBySecurityItem(400, 1, System.DateTime.Now, 0, 0))
                {
                    if (Globals.IsValidDataSet(dsApprovedBy))
                    {
                        foreach (DataRow row in dsApprovedBy.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["empltxtFullNameLF"].ToString(), row["empllngID"].ToString());
                            combo.Items.Add(rcbi);
 
                        }
                    }
                }
                break;
            case "cboDiv":
                // Bind Code Table(Division)
                using (DataSet dsDiv = WSAccess.StepsGlobal_GetCodeTable("codDivisions"))
                {
                    if (Globals.IsValidDataSet(dsDiv))
                    {
                        foreach (DataRow row in dsDiv.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["DESC"].ToString(), row["ID"].ToString());
                            combo.Items.Add(rcbi);
 
                        }
                    }
                }
                break;
            case "cboDept":
                // Bind Code table(Department)
                using (DataSet dsDept = WSAccess.StepsGlobal_GetCodeTable("codDepartments"))
                {
                    if (Globals.IsValidDataSet(dsDept))
                    {
                        foreach (DataRow row in dsDept.Tables[0].Rows)
                        {
                            RadComboBoxItem rcbi = new RadComboBoxItem(row["DESC"].ToString(), row["ID"].ToString());
                            combo.Items.Add(rcbi);
 
                        }
                    }
                }
                break;
            default:
                break;
 
        }
    }
 
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
 
        //This is the employee that is logged in
        int intIssueEmp = Convert.ToInt32(HansonsEmployee.EmployeeID);
 
        //Create new Computer Equipment Issue object
        ComputerEquipmentIssue objCei = new ComputerEquipmentIssue();
 
        //Fill in new Computer Equipment Issue object
        //********************************************************************************************************************
        //QTY
        int intQty = 0;
        if (txtQuantityEmployeeIssued.Text != "")
        {
 
            intQty = Convert.ToInt32(txtQuantityEmployeeIssued.Text);
 
        }
        objCei.Quantity = intQty;
 
        //********************************************************************************************************************
        //Issueing emp this is based off who is logged in  {int intIssueEmp = Convert.ToInt32(HansonsEmployee.EmployeeID);}
        objCei.IssuedByEmployeeID = intIssueEmp;
 
        //********************************************************************************************************************
 
        //Dept equipment is being issued
        int intDept = 0;
        if (cboDept.SelectedIndex != -1)
        {
 
            intDept = Convert.ToInt32(cboDept.SelectedValue);
        }
        objCei.IssuedToDepartmentID = intDept;
 
        //********************************************************************************************************************
 
        //Div equipment is being issued
        int intDiv = 0;
        if (cboDiv.SelectedIndex != -1)
        {
 
            intDiv = Convert.ToInt32(cboDiv.SelectedValue);
        }
        objCei.IssuedToDivisionID = intDiv;
 
        //********************************************************************************************************************
 
        //Equipment being issued
        int intEquip = 0;
        if (cboEquipmentType.SelectedIndex != -1)
        {
 
            intEquip = Convert.ToInt32(cboEquipmentType.SelectedValue);
 
        }
        objCei.ComputerEquipmentTypeID = intEquip;
 
        //********************************************************************************************************************
 
        //Notes
        objCei.Notes = txtComments.Text;
 
        //********************************************************************************************************************
 
        //Employee that equipment is being issued
        int intIssEmp = 0;
 
        if (cboIssueEmployee.SelectedIndex != -1)
        {
            intIssEmp = Convert.ToInt32(cboIssueEmployee.SelectedValue);
 
        }
        objCei.IssuedToEmployeeID = intIssEmp;
 
        //********************************************************************************************************************
 
        //Date equipment is being issued - Todays date
        objCei.DateIssued = DateTime.Today;
 
        //********************************************************************************************************************
 
        //Employee that approved the equipment to be issued
        int intAppEmp = 0;
        //Was an emp selected? if not use the default = 0
        if (cboApprovedBy.SelectedIndex != -1)
        {
 
            intAppEmp = Convert.ToInt32(cboApprovedBy.SelectedValue);
 
        }
        objCei.ApprovedEmployeeID = intAppEmp;
 
        //********************************************************************************************************************
 
        //Barcode
        int intBarcode = 0;
        if (txtBarcode.Text != "")
        {
            intBarcode = Convert.ToInt32(txtBarcode.Text);
        }
        objCei.BarcodeNumber = intBarcode;
 
        //********************************************************************************************************************
 
        FunctionReturnObject retVal = new FunctionReturnObject();
 
        //********************************************************************************************************************
        //Insert record and receive back any errors
 
        retVal = WSAccess.StepsGlobal_AddEditComputerEquipmentIssue(objCei);
 
        //Find out if there is any error; if there is an error/s parse throught the error/s and display them to user
        if (retVal.Errors.Count() > 0)
        {
            lbErrors.Items.Clear();
            foreach (ErrorContainer eo in retVal.Errors)
            {
                if (!eo.IsSystemError)
                {
                    ListItem li = new ListItem(eo.Error, eo.Error);
                    lbErrors.Items.Add(li);
                }
            }
            string script = "<script language='javascript'>function f(){DisplayError(); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>";
 
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "DisplayError", script, false);
 
        }
        else
        {
 
            //********************************************************************************************************************
            //Clear fields Refresh gird
            txtQuantityEmployeeIssued.Text = "";
            cboDept.ClearSelection();
            cboDiv.ClearSelection();
            cboEquipmentType.ClearSelection();
            txtComments.Text = "";
            cboIssueEmployee.ClearSelection();
            cboApprovedBy.ClearSelection();
            txtBarcode.Text = "";
            rgEquipmentRecords.Rebind();
 
        }
    }
 
 
    protected void rgEquipmentRecords_ItemCommand(object sender, GridCommandEventArgs e)
    {
        //Did the delete button get click, if so flag record as deleted
        if (e.CommandName == "Delete")
        {
            if (e.Item is GridDataItem)
            {
                //Retrieve the index of the row
                GridDataItem gdiEquipmentRecords = (GridDataItem)e.Item;
 
                //Get the value of the control based off the row clicked (We need the value of the ID field; [record Id])
                string intRecordId = gdiEquipmentRecords.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"].ToString();
 
                ComputerEquipmentIssue objCei = WSAccess.StepsGlobal_GetComputerEquipmentIssue(intRecordId);
 
                //Set the property (bit flag) to the EquipmentRecords object to pass to the StepsGlobal_AddEditComputerEquipmentIssue function
                objCei.DeleteFlag = true;
 
                //********************************************************************************************************************
 
                FunctionReturnObject retVal = new FunctionReturnObject();
 
                //********************************************************************************************************************
 
                //Retrieve record object for editing               
                retVal = WSAccess.StepsGlobal_AddEditComputerEquipmentIssue(objCei);
 
 
                //Was there errors if so deal with them
                //System error are the only thing that needs to be handled
                if (retVal.Errors.Count() > 0)
                {
 
                    //    //    foreach (   cboEmployee.ClearSelection();   cboEmployee.ClearSelection();
 
                }
 
 
                else
                {
 
 
                }
 
                //Refresh the grid to show that record was deleted or was not deleted
                 
 
            }
            rgEquipmentRecords.Rebind();
        }
    }
}

Update:
I setup the "colDateIssue" column for filtering, again using the demo, that filter is working perfectly fine. HMMMM?
Eyup
Telerik team
 answered on 03 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?