Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
115 views

Hi, I've been using RADScheduler for a while and not having much of a trouble.
Since I have updated to Q1 2009, i have found the problem when switch between different view in IE7, it shows a message Script may cause browser not responding and etc.... and not showing anything (seems like a script loop), but it's fine in Firefox, Chrome.

here is my code for the Scheduler.

<telerik:RadScheduler ID="SchedulerTask" runat="server" DataEndField="Sto" DataKeyField="Key" 
                            DataStartField="SFrom" DataSubjectField="SubjectHTML" ShowAllDayRow="False" Skin="WebBlue" 
                            DisplayRecurrenceActionDialogOnMove="True" OnClientAppointmentEditing="AppointmentEditing" 
                            OnClientAppointmentInserting="AppointmentInserting" EnableDatePicker="False" 
                            WorkDayEndTime="21:00:00" CustomAttributeNames="ScheduleImage" ShowFooter="False" 
                            ShowFullTime="False" DayEndTime="18:00:00" DayStartTime="08:00:00" FirstDayOfWeek="Monday" 
                            LastDayOfWeek="Sunday" Culture="English (United Kingdom)" ShowNavigationPane="False" 
                            ShowHeader="True">  
                                <DayView WorkDayEndTime="20:00:00" DayEndTime="21:00:00" /> 
                                <Localization ShowBusinessHours="Show 12 hours..." /> 
                                <WeekView DayEndTime="21:00:00" WorkDayEndTime="21:00:00" /> 
                                <AppointmentTemplate> 
                                    <div> 
                                        <img alt='' src='<%# Eval("ScheduleImage") %>' />&nbsp;<%#Eval("Subject")%></div>  
                                </AppointmentTemplate> 
                            </telerik:RadScheduler> 

any Suggestions?
Peter
Telerik team
 answered on 05 Aug 2011
2 answers
104 views
Hi folks,

Im new to telerik controls and i was wondering the following:

is the latest version of the telerik rad upload control supporting multiple file upload ?
That is in 1 DIALOGUE. So NOT 10 single upload controls... and call it multiple upload control....
I find that there is no way you should call it mutliple file upload if you set 10 single file uploaders after eachother.
Thats just cheating :p

Im not flaming here, i love the controls.

Then, is there a possibility to change the control in source code, so that you can define a file limit depending on the extension ?
Or is this almost not able to archieve ? So fe. I want the user to restrict jpeg files up to 2MB... and then wmv files up to 10MB.

Thx alot in advance, any info you can give me , is much appreciated :)


*edit* so sorry about the crappy title :(, cant adjust it 
Tom
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
77 views
I want to get rid of the gray area seen as part of my telerik Editors bottom , it displays data like FONT > Element, also I need to get rid of many buttons ..

In fact I want the control to look just like this one ( I am writing in ) . Please help
Neha
Top achievements
Rank 1
 answered on 05 Aug 2011
5 answers
149 views
Hi,

I recently upgraded my rad grid from classic to Asp.Net AJAX Q1 grid.
Earlier (before upgrading) I could see the pagination properly.
But now (with all the properties same) I am getting the pager at the bottom of the data div after I scroll till the bottom.
Attached are the images [hope the hidden data is not a problem]. Can you please help me getting the pager properly. The aspx code for the grid is :





<
table width="100%" style="border-width: 1px; border-bottom-width: 1px; border-bottom-width: 1px"
                                                class="STArea" cellspacing="0" cellpadding="0" border="1">
                                                <tr class="SSDetails">
                                                    <td style="height: 100%" align="center">
                                                        <div id="divMFile" runat="server" visible="true" style="overflow: auto; height: 280px;
                                                            width: 100%;">
                                                            <telerik:RadGrid ID="rgridMFile" Skin="SDCSkin" runat="server" BorderStyle="Solid" BorderWidth="0px"
                                                                AutoGenerateColumns="False" GridLines="None" Width="100%" Height="95%" OnSortCommand="rgridMFile_SortCommand"
                                                                OnItemDataBound="rgridMFile_ItemDataBound" OnPageIndexChanged="rgridMFile_PageIndexChanged" EnableEmbeddedSkins="false"
                                                                ShowFooter="false" AllowPaging="true" PagerStyle-Mode="NextPrevAndNumeric" AllowSorting="true">
                                                                <HeaderStyle Height="20px" />
                                                                <ClientSettings>
                                                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                                    <Selecting AllowRowSelect="true" />
                                                                </ClientSettings>
                                                                <MasterTableView>
                                                                    <Columns>
                                                                        <telerik:GridBoundColumn UniqueName="FNum" DataField="FNum" SortExpression="FNum"
                                                                            HeaderText="File ID">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="Names" DataField="Names" SortExpression="Names"
                                                                            HeaderText="File Name">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="FDetail" DataField="FDetail" SortExpression="FDetail"
                                                                            HeaderText="Prod Details">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="PName" DataField="PName" SortExpression="PName"
                                                                            HeaderText="Prod Name">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="Groups" DataField="Groups" SortExpression="Groups"
                                                                            HeaderText="Group Name">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="20%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn UniqueName="Modified" DataField="Modified" SortExpression="Modified"
                                                                            HeaderText="LastModifiedBy">
                                                                            <HeaderStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                                                                            <ItemStyle CssClass="RadGridRow" Height="100%" Wrap="false" HorizontalAlign="left" />
                                                                        </telerik:GridBoundColumn>
                                                                    </Columns>
                                                                </MasterTableView>
                                                            </telerik:RadGrid>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>

Also note that I could not change the pager mode as well. The pager itself is not properly visible in the browser window.
Let me know if anything specific needs to be set in Skin CSS.

Regards,
Ripunjay
Tsvetina
Telerik team
 answered on 05 Aug 2011
1 answer
137 views
I'm currently using the 2010.3.1109.40 version of Telerik.Web.UI.dll.

I just moved our application from a 32 bit windows server running IIS6 to a 64 bit windows server running IIS7 and a few things aren't rendering properly anymore. Specifically the menu control. Instead of formatting properly, it now just displays it as <UL><LI> tags. It's like the dll isn't applying the proper styles.

Has anyone else experienced this?

Thanks
Peter
Telerik team
 answered on 05 Aug 2011
5 answers
228 views
Hi,

I am using Grid control to display some data. All columns use filter option. If the column has text data then all filter options are displayed.
I am getting error while filtering on text data column on "IsEmpty" and "IsNull" options. Whenever I click on IsEmpty button on filter menu I get the error as "

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

"
I debugged and found that this error comes when the command name is "Filter" in Item_Command event while on e.CommandName expression. Please guide me on this issue. Its very urgent.

The names of menus shown in FilterMenu are like "EndsWith", "StartsWith". I need to add a blank space between words of filter menu like "Ends With". Please give me code on how do I do this.
Also, the I want to edit the filter menu only for some columns like for text columns I do not want to show "GreaterThan", "LessThan","Between" filters and keep them for numeric columns in same grid. Please guide me on how this can be done.

Thank you.

Prajakta A.



Marin
Telerik team
 answered on 05 Aug 2011
1 answer
99 views
Hello, i want to bind my radgrid2 according to selected row in radgrid1 like in this example http://demos.telerik.com/aspnet-ajax/grid/examples/clientmasterdetails/defaultcs.aspx ; I can't get it to work, looks like javascript doesnt execute. I use sqldatasources for my radgrids <telerik:RadGrid ID="RadGrid2" runat="server" CellSpacing="0" DataSourceID="SqlDataSource5" (...) /> SqlDataSource5 is dependant on RadGrid1 selected column. It works ok on server side after postback, but i need to do it on client side. Any suggestions on what can be wrong or how to do it right?
Vasil
Telerik team
 answered on 05 Aug 2011
1 answer
72 views
Hi,

How to set vertical alignment of buttons for (alert, prompt, confirm) to bottom? When user specifies  window height as null and text is less then buttons don't align at bottom of window.

Thanks & Regards
Parag
Shinu
Top achievements
Rank 2
 answered on 05 Aug 2011
1 answer
122 views
HI,

We have a requirement in our application , to upload the files greater than 2GB in size. That should also be also support resumable upload feature, in case if the user gets disconnected due to some error while uploading. Kindly let us know , if this can be implemented using the Rad Upload controls.

Thanks,
Sudha.
Shinu
Top achievements
Rank 2
 answered on 05 Aug 2011
3 answers
454 views
Telerik,
I am using a RadGrid and when I switch to EditMode, I have certain controls that I am disabling using the ItemDataBound event. I would like to completely hide these same controls instead of just disabling them. I know I can do that by setting Visible proper to false. However, I cannot determine how to hide the headerText that is associated with these controls in the Edit Form. Not sure of this would be done during the ItemDataBound event or possibly the ItemCreated event or which object to use. Any help would be appreciated.

Here is my RadGrid:
  <telerik:RadGrid ID="rgDocuments" runat="server" Skin="Windows7"

                AutoGenerateColumns="False"

                AllowPaging="True"

                AllowSorting="True"

                ShowFooter="True"

                Height="425px" 

                CellSpacing="0" 

                GridLines="None" 

                PageSize="25" >

            

                <ExportSettings  OpenInNewWindow="true" Pdf-Title="VendorDocuments" Excel-FileExtension=".xls" FileName="VendorDocuments">

                    <Pdf  />

                    <Excel  Format="ExcelML"/>

                </ExportSettings>

                <ClientSettings>

                    <Scrolling AllowScroll="True" UseStaticHeaders="True" />

                </ClientSettings>

                

                <MasterTableView PageSize="25" NoMasterRecordsText="No documents exist for this vendor." DataKeyNames="vcertIdentity,vcertTypeIdentity">

                    <Columns>

                        <telerik:GridEditCommandColumn EditText="Edit" ButtonType="ImageButton" HeaderStyle-Width="25px">

                        </telerik:GridEditCommandColumn>

                        <telerik:GridButtonColumn 

                            HeaderStyle-Width="25px"

                            CommandName="Delete"

                            ButtonType="ImageButton" 

                            Text="Delete"

                            ConfirmDialogType="Classic"

                            ConfirmTitle="Document Management" 

                            ConfirmText="Are you sure you want to delete the document?">

                        </telerik:GridButtonColumn>

                        <telerik:GridTemplateColumn HeaderStyle-Width="25px">

                            <ItemTemplate>

                                <%--<asp:HyperLink ID="hlDoclink" runat="server" Target="_blank" ImageUrl="~/images/AddRecord.gif" NavigateUrl='<%#"http://corp.ubh.com/docimage/Vendors_Test/" & Eval("DocPath") %>'></asp:HyperLink>--%>

                                <asp:HyperLink ID="hlDocLink" runat="server" Target="_blank" ImageUrl="~/images/AddRecord.gif" NavigateUrl=""></asp:HyperLink>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="Type" HeaderTooltip="Document type" SortExpression="vctShortName">

                            <EditItemTemplate>

                                <telerik:RadComboBox ID="rcboDocType_Edit" runat="server" Skin="Windows7"

                                    DataSourceID="ods_DocumentTypes" 

                                    DataTextField="vctShortName" 

                                    DataValueField="vctIdentity"

                                    SelectedValue='<%# Bind("vcertTypeIdentity") %>'

                                    Width="275px" 

                                    CausesValidation="False">

                                </telerik:RadComboBox>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="lblDocType_Item" runat="server" Text='<%# Bind("vctShortName") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="State" HeaderStyle-Width="40px" SortExpression="vcertState" UniqueName="States">

                            <EditItemTemplate>

                                <telerik:RadComboBox ID="rcboState_Edit" runat="server" Skin="Windows7"

                                    Width="125px"

                                    SelectedValue='<%# Bind("vcertState") %>'

                                    DataSourceID="ods_StatesLookup" 

                                    DataTextField="StateName" 

                                    DataValueField="StateCode">

                                </telerik:RadComboBox>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="lblDocState_Item" runat="server" Text='<%# Bind("vcertState") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="File Name">

                            <EditItemTemplate>

                                <asp:Label ID="lblDocName_Edit" runat="server" Text='<%# Bind("vcertFileName") %>' ></asp:Label>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="lblDocName_Item" runat="server" Text='<%# Bind("vcertFileName") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="Effective Date" HeaderStyle-Width="100px" SortExpression="vcertEffectiveDate" UniqueName="EffectiveDate">

                            <EditItemTemplate>

                                <telerik:RadDatePicker ID="rdpDocEffDate_Edit" runat="server" Skin="Windows7"

                                    SelectedDate='<%# Bind("vcertEffectiveDate") %>'

                                    MinDate="1900-01-01">

                                </telerik:RadDatePicker>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="lblDocEffDate_Item" runat="server" Text='<%# Eval("vcertEffectiveDate", "{0:d}") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="Expiration Date" HeaderStyle-Width="100px" SortExpression="vcertExpirationDate">

                            <EditItemTemplate>

                                <telerik:RadDatePicker ID="rdpDocExpDate_Edit" runat="server" Skin="Windows7"

                                    SelectedDate='<%# Bind("vcertExpirationDate") %>' 

                                    MinDate="1900-01-01">

                                </telerik:RadDatePicker>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="lblDocExpDate_Item" runat="server" Text='<%# Eval("vcertExpirationDate", "{0:d}") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="License #" HeaderStyle-Width="100px" SortExpression="vcertLicenseNumber">

                            <EditItemTemplate>

                                <telerik:RadTextBox ID="rtbLicense_Edit" runat="server" 

                                    Skin="Windows7"

                                    Text='<%# Bind("vcertLicenseNumber") %>'>

                                </telerik:RadTextBox>

                            </EditItemTemplate>

                            <ItemTemplate>

                                <asp:Label ID="lblLicense_Item" runat="server" Text='<%# Bind("vcertLicenseNumber") %>'></asp:Label>

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="Validated" HeaderStyle-Width="60px" SortExpression="vcertIsValidated">

                            <ItemStyle HorizontalAlign="Center" />

                            <EditItemTemplate>

                                <asp:Label ID="lblIsValidated_Edit" runat="server" Text='<%# Bind("vcertIsValidated") %>' ></asp:Label> 

                            </EditItemTemplate>

                            <ItemTemplate>

                                 <asp:Label ID="lblIsValidated_Item" runat="server" Text='<%# Bind("vcertIsValidated") %>' ></asp:Label> 

                            </ItemTemplate>

                        </telerik:GridTemplateColumn>

                    </Columns>    

                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>

                    <EditFormSettings>

                        <EditColumn ButtonType="ImageButton" FilterControlAltText="Filter EditCommandColumn column" EditFormColumnIndex="2"></EditColumn>

                    </EditFormSettings>

                                   

                </MasterTableView>

                <FilterMenu EnableImageSprites="False" ></FilterMenu>

                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Windows7"></HeaderContextMenu>

            

            </telerik:RadGrid>


Here is my code from the ItemDataBound Event:

 'build the hyperlink for the document

        If TypeOf e.Item Is GridDataItem Then

            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)

            'get the document filename

            Dim fileName As String = DirectCast(item.FindControl("lblDocName_Item"), Label).Text

            'set the document URL

            Dim link As HyperLink = DirectCast(item.FindControl("hlDocLink"), HyperLink)

            link.NavigateUrl = DocumentURL.Trim + FederalID.Trim + "/" + fileName

        End If

        'modify controls when in edit mode

        If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then

            Dim editItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)

            'get the document type identity

            Dim documentTypeId As Integer = CInt(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("vcertTypeIdentity"))

            If (documentTypeId = DocumentType.W9Doc) Or (documentTypeId = DocumentType.SubProfProfile) Then

                'disable the states dropdown

                Dim statesCombo As RadComboBox = DirectCast(editItem.FindControl("rcboState_Edit"), RadComboBox)

                statesCombo.Enabled = False

                'statesCombo.Visible = False

                'disable the date pickers

                Dim effDatePicker As RadDatePicker = DirectCast(editItem.FindControl("rdpDocEffDate_Edit"), RadDatePicker)

                effDatePicker.Enabled = False

                'effDatePicker.Visible = False

                Dim expDatePicker As RadDatePicker = DirectCast(editItem.FindControl("rdpDocExpDate_Edit"), RadDatePicker)

                expDatePicker.Enabled = False

                'expDatePicker.Enabled = False

                'disable the license number

                Dim licenseTextBox As RadTextBox = DirectCast(editItem.FindControl("rtbLicense_Edit"), RadTextBox)

                licenseTextBox.Enabled = False

                'licenseTextBox.Visible = False

            End If

        End If


Shinu
Top achievements
Rank 2
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?