Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
106 views
Hi!

I'm implementing the DBFileBrowserContentProvider class to access to a Sql Server data base. It works fine if I use a web site but if I use a web application when I try to show the file the handler doesn't work. Does anybody have an idea about what I'm doing wrong?

The example I'm following is the next

http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/connect-radfileexplorer-or-radeditor-to-a-sql-databse.aspx

This example uses a web site but when I try to do the same in a web application, the hanlder file is never invoked and the file is never shown

Thanks in advance
Israel
Top achievements
Rank 1
 answered on 24 Jan 2012
3 answers
305 views
hello friends,

i am using the RadEditor in my application.

in my .aspx page i have some controls in the middle of those controls RadEditor is present, so i set the focus to the first controls on my aspx page, when ever i open my .aspx page focus is coming the first control after that i am pressing the Tab key  it is going to the next control, once it reaches to the RadEditor control(i.e., in the content area) if i press the Tab within that content area only focus is moving that is also fine. Now, my problem is i had some controls after RadEditor, so how can i move the focus to those controls using Tab key .

Thanks.
Richard
Top achievements
Rank 1
 answered on 24 Jan 2012
1 answer
148 views
Hi,

I was able get the FileExplorer to show files in a relative path within my project.
I'm now trying to show files in a physical location in my machine 'C:/Mediacontent/1' but I keep getting this error :

'C:/MediaContent/1' is a physical path, but a virtual path was expected.

I based my code in this example and I'm using a plain FileSystemContentProvider as the content provider type.
Can you help please?





Dobromir
Telerik team
 answered on 24 Jan 2012
1 answer
114 views
Hi,

I have a problem with the RTL resources (GUI related problems).
By trying to upload an image using the ImageManager (for example), The Upload window opens (View attached screen-shot), but not orgnized well (Not all labels are aligned to right and there is scrollers).

I'm uisng the following resources in order to change the language:
RadEditor.Dialogs.resx
RadEditor.Main.resx
RadEditor.Modules.resx
RadEditor.Tools.resx
RadListBox.resx
RadProgressArea.resx
RadScheduler.Main.resx
RadSpell.Dialog.resx
RadUpload.resx

By the way, the version which is used in this application is 2009.3.1314.35.

Please, I need your help in order to solve the above problem.

Regards,
Bader

Rumen
Telerik team
 answered on 24 Jan 2012
1 answer
120 views
Is it possible to configure a Dock/DockZone such that I can resize a dock both horizontally and vertically?

I'm starting to doubt my sanity; it seems logical that I should be able to do this, I just can't figure out how.

--
Stuart
Richard
Top achievements
Rank 1
 answered on 24 Jan 2012
2 answers
190 views
hi 
i have a RadGrid, popup Edit template which has two buttons the insert/update and cancel button, clicking cancel button causes Rad Confirm to be displayed but there is another default cancel button at the right corner of the popup is there any way make this button views the same Rad Confirm or hide it, any help ?

thank you 
Rasheed
Top achievements
Rank 1
 answered on 24 Jan 2012
1 answer
823 views
I started with a simple grid on a page as follows:
<telerik:RadGrid ID="rgSelectCourses" runat="server" AllowSorting="True"
     Width="860px" Height="500px" PageSize="20" CellSpacing="0"
     DataSourceID="sdsCourses" AllowMultiRowSelection="True"
     GridLines="None" AutoGenerateColumns="False">
     <ClientSettings>
         <Scrolling AllowScroll="True" UseStaticHeaders="True" />
         <Selecting AllowRowSelect="true" />
     </ClientSettings>
     <MasterTableView DataKeyNames="Course_Code" DataSourceID="sdsCourses">
         <CommandItemSettings ExportToPdfText="Export to PDF" />
         <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
             Visible="True">
         </RowIndicatorColumn>
         <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
             Visible="True">
         </ExpandCollapseColumn>
         <Columns>
             <telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn" HeaderText="Select">
             <HeaderStyle Width="50px"></HeaderStyle>
             </telerik:GridClientSelectColumn>
         <telerik:GridBoundColumn UniqueName="Course_Code" SortExpression="Course_Code" HeaderText="Code"
             DataField="Course_Code">
             <HeaderStyle Width="130px"></HeaderStyle>
             <ItemStyle HorizontalAlign="Left" />
         </telerik:GridBoundColumn>
          <telerik:GridBoundColumn UniqueName="Course_Title" SortExpression="Course_Title" HeaderText="Title"
             DataField="Course_Title">
             <HeaderStyle Width="200px"></HeaderStyle>
             <ItemStyle HorizontalAlign="Left" />
         </telerik:GridBoundColumn>
         <telerik:GridTemplateColumn FilterControlAltText="Filter column1 column" HeaderText="Expiration Date" UniqueName="column1">
             <HeaderStyle HorizontalAlign="Center" />
             <ItemStyle Width="120px" HorizontalAlign="Center" />
             <ItemTemplate>
                 <telerik:RadComboBox ID="rgTime" runat="server" Width="35px">
                     <Items>
                         <telerik:RadComboBoxItem runat="server" Text="1" Value="1" />
                         <telerik:RadComboBoxItem runat="server" Text="2" Value="2" />
                         <telerik:RadComboBoxItem runat="server" Text="3" Value="3" />
                         <telerik:RadComboBoxItem runat="server" Text="4" Value="4" />
                         <telerik:RadComboBoxItem runat="server" Text="5" Value="5" />
                         <telerik:RadComboBoxItem runat="server" Text="6" Value="6" />
                         <telerik:RadComboBoxItem runat="server" Text="7" Value="7" />
                         <telerik:RadComboBoxItem runat="server" Text="8" Value="8" />
                         <telerik:RadComboBoxItem runat="server" Text="9" Value="9" />
                         <telerik:RadComboBoxItem runat="server" Text="10" Value="10" />
                         <telerik:RadComboBoxItem runat="server" Text="11" Value="11" />
                         <telerik:RadComboBoxItem runat="server" Text="12" Value="12" />
                     </Items>
                 </telerik:RadComboBox>
                   
                 <telerik:RadComboBox ID="rgInterval" runat="server" Width="60px">
                     <Items>
                         <telerik:RadComboBoxItem runat="server" Text="Years" Value="Years" />
                         <telerik:RadComboBoxItem runat="server" Text="Months" Value="Months" />
                     </Items>                         
                 </telerik:RadComboBox>                           
             </ItemTemplate>
         </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn FilterControlAltText="Filter column2 column"
             HeaderText="Comments..." UniqueName="column2">
             <HeaderStyle Width="300px" HorizontalAlign="Left" />
             <ItemStyle HorizontalAlign="Left" />
             <ItemTemplate>
                 <telerik:RadTextBox ID="rtbComment" runat="server" TextMode="Multiline"
                     Height="63px" Width="290px" />
             </ItemTemplate>
         </telerik:GridTemplateColumn
         </Columns>
         <EditFormSettings>
             <EditColumn FilterControlAltText="Filter EditCommandColumn column">
             </EditColumn>
         </EditFormSettings>
     </MasterTableView>
     <FilterMenu EnableImageSprites="False">
     </FilterMenu>
     <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
     </HeaderContextMenu>
 </telerik:RadGrid>
 
 <asp:SqlDataSource ID="sdsCourses" runat="server"
     ConnectionString="<%$ ConnectionStrings:SafetyPlusWebConnectionString %>"
     SelectCommand="SELECT [Course_Code], [Course_Title], [Renewal_Interval], [Time_Frame] FROM [Courses] WHERE [Active] = 1 ORDER BY [Course_Code]">
 </asp:SqlDataSource>

Everything worked perfectly.  I could select and edit items at will.

But, I needed to get the selected items into a database.  I chose to put a radbutton below the grid for the user to click when they had made all their changes.

<telerik:RadButton ID="RadButton1" runat="server" Text="Next" OnClick="RadButton1_Click" ></telerik:RadButton>

When the button is clicked, I get the following:
Operation is not valid due to the current state of the object.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
[InvalidOperationException: Operation is not valid due to the current state of the object.]
   System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() +83
   System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding) +111
   System.Web.HttpRequest.FillInFormCollection() +307
 
[HttpException (0x80004005): The URL-encoded form data is not valid.]
   System.Web.HttpRequest.FillInFormCollection() +404
   System.Web.HttpRequest.get_Form() +85
   System.Web.HttpRequest.get_Item(String key) +94
   Telerik.Web.UI.RadCompression.IsAjaxRequest() +59
   Telerik.Web.UI.RadCompression.Compress(HttpApplication application) +770
   Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender, EventArgs e) +76
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +221
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +120
 
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Any thoughts on how to correct this?

Thx
Richard
Top achievements
Rank 1
 answered on 24 Jan 2012
3 answers
137 views
Hello,

I am using telerik rad scheduler in our application. I want to scroll into view a specific time slot on initial page load for day view.
I have implemented all the necessary steps mentioned in the below link:-
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-scroll-into-view-a-specific-time-slot-on-initial-page-load.aspx

After implementing all the steps mentioned in above link, I am getting the below mentioned error.
"Microsoft JScript runtime error: Unable to get value of the property 'get_allowDelete': object is null or undefined"

Could you please let me know how to resolve this error.

Thanks and Regards,
Deepti
Plamen
Telerik team
 answered on 24 Jan 2012
1 answer
208 views
I have a TreeList object that allows inplace editing. Two of the columns are TemplateColumns that display using a label but edit using a RadComboBox. When I press the edit button everything works fine (my drop downs load and everything) but when i press Cancel or Update after editing the system throws a "Failed to load viewstate" error. Treelist code below:

                <telerik:RadTreeList ID="rtl_Content" runat="server" 
                    AutoGenerateColumns="False" DataKeyNames="ID" ParentDataKeyNames="ID_Parent" Skin="Office2010Blue" EditMode="InPlace">
                    <ExportSettings ExportMode="RemoveControls"><Pdf PageHeight="11in" PageWidth="8.5in"></Pdf></ExportSettings>
                    <Columns>
                        <telerik:TreeListBoundColumn DataField="ID" UniqueName="column" Visible="False">
                        </telerik:TreeListBoundColumn>
                        <telerik:TreeListBoundColumn DataField="ID_Parent" UniqueName="column1" Visible="False">
                        </telerik:TreeListBoundColumn>
                        <telerik:TreeListTemplateColumn DataField="Display" HeaderText="Content" UniqueName="col_Display">
                            <ItemTemplate>
                                <asp:Label ID="lblCDisplay" runat="server" Text='<%# Eval("Display") %>' />
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadTextBox runat="server" ID="rtb_CDisplay" Skin="Office2010Blue" Text='<%# Bind("Display") %>' Width="100%" Height="40px" TextMode="MultiLine" />
                            </EditItemTemplate>
                        </telerik:TreeListTemplateColumn>
                        <telerik:TreeListTemplateColumn DataField="Type" HeaderText="" UniqueName="col_Type">
                            <ItemTemplate>
                                <asp:Label ID="lblCType" runat="server" Text='<%# Eval("Type") %>' />
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox runat="server" ID="rcb_CType" Skin="Office2010Blue" SelectedValue='<%# Bind("Type") %>' DataSource='<%# (new string[] {"Team Lead", "EDA"}) %>' Width="100%" />
                            </EditItemTemplate>
                            <ItemStyle Width="75px" HorizontalAlign="Center" />
                            <HeaderStyle Width="75px" HorizontalAlign="Center" />
                        </telerik:TreeListTemplateColumn>
                        <telerik:TreeListEditCommandColumn UniqueName="EditColumn" ButtonType="LinkButton" ShowAddButton="true" HeaderText="">
                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                            <HeaderStyle HorizontalAlign="Center" Width="100px" />
                        </telerik:TreeListEditCommandColumn>
                        <telerik:TreeListButtonColumn UniqueName="DeleteColumn" ButtonType="LinkButton" HeaderText="" CommandName="Delete" Text="Delete">
                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                            <HeaderStyle Width="50px" />
                        </telerik:TreeListButtonColumn>
                    </Columns>
                </telerik:RadTreeList>

Not sure if it makes a difference but the whole thing is inside a RadPageView
Antonio Stoilkov
Telerik team
 answered on 24 Jan 2012
3 answers
90 views
The thread title pretty much covers it;

but i've got a PagerStyle-Position="Bottom" because i want the user to scroll past the items in the grid before being able to change page.
but i'd also like to display the item count at the top of the grid ; # items in # pages

Sure this is very simple to do,

Thanks

Alan
Alan T
Top achievements
Rank 1
 answered on 24 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?