Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 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
169 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
742 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
124 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
153 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
75 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
3 answers
184 views
Hi,
RadTreeView expands a node by clicking the plus button or by double clicking the text node.
I want to change this by just simple click on plus or text.
I tried this by handling the ClientNodeClicked event but it's not working
<
script language="javascript"> function ClientNodeClicked(sender, eventArgs) { var node = eventArgs.get_node(); node.toggle(); } </script>
I used the load on demand server side. when i clicked the text  the plus button changed to minus and when i click on minus button it open the node and next time i redo the same operation on the same node  it works (because is already loaded).
please help.
Plamen
Telerik team
 answered on 24 Jan 2012
4 answers
406 views
Hi,

I want to disable all dates in my datepicker control except the first and the last date of the month.

I tried this code but this does not help:

protected void Calendar_OnDayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
        {
            DateTime dt = e.Day.Date;
            DateTime dtFirst = new DateTime(dt.Year, dt.Month, 1);
            DateTime dtLast = new DateTime(dt.Year, dt.Month, 1).AddMonths(1).AddDays(-1);

            if (e.Day.Date != dtFirst.Date)
            {
                RadCalendarDay calendarDay = new RadCalendarDay();
                calendarDay.Date = e.Day.Date;
                calendarDay.IsSelectable = false;
                rdpBeginDate.Calendar.SpecialDays.Add(calendarDay);
            }
        } 

aspx:

<telerik:RadDatePicker ID="rdpBeginDate" runat="server">
                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
                            runat="server" OnDayRender="Calendar_OnDayRender">
                           
                        </Calendar>
                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                        <DateInput EnableEmbeddedSkins="false" Enabled="false">
                        </DateInput>
                    </telerik:RadDatePicker>

Please help.
Richard
Top achievements
Rank 1
 answered on 24 Jan 2012
3 answers
95 views
Hi,

I have a requirement where I have a RadDock with 2 zones.
I want to load all docks on it initially and then set for each container its own refresh time.
For example dock A will refresh in 5 minutes. Dock B will refresh in 20 minutes.
I want to do this with no postback - everything updates seamlessly. How do I do this?

Note: I have the latest 2011 telerik version.


Update: I have tried using webservice and javascript to populate the docks but found a problem.
The types controls within my docks are TagCloud, Graph and Treeview. I found that if I use webservice and javascript
I can't populate my tag cloud because I have to bind it as a RadTagCloudItem.


Thank you so much,
C
Slav
Telerik team
 answered on 24 Jan 2012
1 answer
85 views
In rad editor, if i click  cut,copy and paste image buttons it shows please click ctrl + x for cut etc.. Please help me, Suppose i click  cut image button the selected text must be cut. what i do for it?
Rumen
Telerik team
 answered on 24 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?