Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
154 views
Hi,

I have found a fault in the Scheduler layout - I'm using Timeline view with manual Resource setup and web service based appointments.

It appears that when there are only a few timelines on the grid, the visible part of the grid is too high. This results in the timelines being displayed too high (even though I have insert area switched off I get a double height line), and the resource label cells are actually the right size, but spaced apart from one another.

I have found that the rsVerticalHeaderWrapper has a calculated height of 162px as does the bare div directly beneath it. Removing this style closes up the gaps in the resource headers, but the grid itself does not get any flatter, so I guess that this is some sort of minimum height setting. I haven't seen a minimum height setting however.

The grid displays this behaviour when I remove all of my own CSS and client-side script.

Any Ideas?

Thanks for your help.
Peter
Telerik team
 answered on 13 Aug 2010
1 answer
164 views

Currently I'm having this kind of issue when creating a dynamic raddock and adding the treeview control on it. I also followed this demo http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx but still having a problem during expanding the treeview control or clicking on it.

The message says "The target 'ct100$ContentPlaceHolder1$RadDock3$C$Treeview1' for the callback could not be found or did not implement ICallBackEventHandler."

Please let me know how to find a way on this..

Here are my sample codes:

Private 

 

Sub LivelinkTreeView(ByVal treeview As RadTreeView)

 

 

 

 

 

 

Dim rootNode As New RadTreeNode()

 

rootNode.Text = hdnFundName.Value

rootNode.Value = hdnFundObjectID.Value

 

 

 

rootNode.ImageUrl = "~\App_Themes\Image\main.png"

 

 

 

 

 

 

rootNode.Width = "25"

 

 

 

 

 

 

rootNode.Height = "25"

 

 

 

 

 

 

rootNode.Expanded = True

 

 

 

 

 

 

rootNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack

 

treeview.Nodes.Add(rootNode)

 

 

 

End Sub 

 

 

 

 

 

Private Function CreateRadDock(ByVal c As Control, ByVal dockName As String, ByVal iCount As Integer) As RadDock 

 

 

 

Dim docksCount As Integer = CurrentDockStates.Count 

 

Dim dock As New RadDock()

 

 

 

dock.ID =

 

 

 

String.Format("RadDock" & iDockCount, iDockCount)

 

 

dock.Title =

 

 

 

String.Format(dockName)

 

 

dock.Font.Bold =

 

 

 

True

 

 

 

 

 

 

dock.UniqueName = Guid.NewGuid().ToString()

 

dock.Width = Unit.Percentage(100)

dock.Skin =

 

 

"Web20"

 

 

 

 

 

dock.OnClientInitialize = "OnClientInitialize"

 

 

 

 

 

 

dock.Attributes.Add("Style", "margin-top:10px;margin-left:10px")

 

 

dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.ExpandCollapse

dock.EnableDrag =

 

 

 

False

 

 

 

 

 

 

dock.EnableRoundedCorners = True

 

 

 

 

 

 

dock.EnableAnimation = True

 

 

 

 

 

 

dock.ContentContainer.Controls.Add(c) 

 

 

 

 

Return dock

 

 

 

End Function

 

 

 


Private Sub CreateDockDocumentInformation() 

 

 

 

 

 

 

LivelinkTreeView(rtvLivelink)

 

 

 

 

Dim dock As RadDock = CreateRadDock(Treeview1, "Document Information", icnt)

 

 

RadDockZone1.Controls.Add(dock)

iDockCount += 1

 

 

 

CreateSaveStateTrigger(dock)

 

 

LoadWidget(dock)

 

 

 

 

 

 

 

 

End Sub

 

 

 


 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

If Not IsPostBack Then

 

 

 

 

 

 

   CreateDockDocumentInformation()

 

 

 

 

 

 

End If

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

 

 

 

Private Sub LoadWidget(ByVal dock As RadDock) 

 

If String.IsNullOrEmpty(dock.Tag) Then

 

 

 

 

 

 

Return

 

 

 

 

 

 

End If

 

 

 

 

 

 

Dim widget As Control = LoadControl(dock.Tag)

 

 

dock.ContentContainer.Controls.Add(widget)

 

 

 

 

End Sub

 

 

 

 

 

 

 

Private Sub CreateSaveStateTrigger(ByVal dock As RadDock)

 

 

 

 

 

dock.AutoPostBack = True

 

 

 

 

dock.CommandsAutoPostBack = True

 

 

 

 

 

Dim saveStateTrigger As New AsyncPostBackTrigger()

 

 

 

saveStateTrigger.ControlID = dock.ID

saveStateTrigger.EventName =

 

 

 

"DockPositionChanged"

 

 

 

 

 

 

UpdatePanel1.Triggers.Add(saveStateTrigger)

 

saveStateTrigger =

 

 

New AsyncPostBackTrigger()

 

 

saveStateTrigger.ControlID = dock.ID

saveStateTrigger.EventName =

 

 

"Command"

 

 

 

 

 

 

UpdatePanel1.Triggers.Add(saveStateTrigger)

 

 

 

 

End Sub

 

Is there any limitation on this on binding the treeview control on the dynamic raddock?

Thanks,
Allan
Petio Petkov
Telerik team
 answered on 13 Aug 2010
1 answer
240 views
Hi,

I use a RadGrid to show data. When there are +10 rows, the AllowScroll property is set to true to limit the maximum height of the grid.

When an item is selected, another page is loaded with the same grid (no postback). I would like the selected item to be visible, even when it is not 1 of the first 10 rows. The grid should thus scroll to the selected row.

Can this be achieved?

Kind regards,
Dries
Princy
Top achievements
Rank 2
 answered on 13 Aug 2010
3 answers
193 views
I have a code with a radajaxmanager on when enableajax="false" the jquery works a dream, but when I set it to true it doenst work.....  even if I put an alert('hello'); in at the first line it doesnt call it... any ideas:

Code reassables along the lines of:

<telerik:RadAjaxManager ID="ram" runat="server" DefaultLoadingPanelID="ralp" EnableAJAX="TRUE">
    <AjaxSettings>

<asp:MultiView ID="mv" runat="server" ActiveViewIndex="0">
<asp:View ID="viewHorseDetails" runat="server">
        <asp:Repeater ID="rptHorseDetails" runat="server">
            <ItemTemplate>
                        <li>
                            <label>
                                Remarks/Description<br />(Up to 100 words)</label>
                            <asp:TextBox ID="txtRemarks" runat="server" TextMode="MultiLine" Columns="40" Rows="8" CssClass="text"
                                Text="" ValidationGroup="HorseDetails" /><br />(this textbox accepts 100 characters)
                            <span id="spn" runat="server"></span><br />
                        </li>
                            <telerik:RadScriptBlock ID="rsbDesc" runat="server">
                                <script type="text/javascript">
                                    $(function () {
                                        /*alert('bleh');*/
                                        var limit = 10;
                                        var tb = $('textarea[id$=txtRemarks]');
                                        $(tb).keyup(function () {
                                            var len = $(this).val().length;
                                            if (len > limit) {
                                                //this.value = this.value.substring(0, 50);
                                                $(this).addClass('exceeded');
                                                $('#spn').text(len - limit + " characters exceeded");
                                            }
                                            else {
                                                $(this).removeClass('exceeded');
                                                $('#spn').text(limit - len + " characters left");
                                            }
                                        });

                                        $('input[id$=btnFinal]').click(function (e) {
                                            var len = $(tb).val().length;
                                            if (len > limit) {
                                                e.preventDefault();
                                            }
                                        });
                                    });
                                </script>
                            </telerik:RadScriptBlock>
                        <fieldset class="submit">
                            <asp:Button ID="btnNextHorse" runat="server" Text="Next Horse" CssClass="submit" CommandName="NextHorse" ValidationGroup="HorseDetails" />&nbsp;<asp:Button ID="btnFinal" CssClass="submit" runat="server" Text="This is the last horse I am entering" CommandName="FinalHorse" ValidationGroup="HorseDetails" />
                        </fieldset>

            </ItemTemplate>
        </asp:Repeater>
    </asp:View>   
</asp:MultiView>

Any ideas?

Thanks,
Chris
TIOS
Top achievements
Rank 1
 answered on 13 Aug 2010
2 answers
526 views

How can I set the RadTextBox disabled style using .css file? Somehow the style is not being recognized.

<telerik:RadTextBox ID="RadTextBox1" runat="server" Text="Johnson Grammer" Skin="Office2007">
<DisabledStyle CssClass="disableField" />
</telerik:RadTextBox>

My style sheet entries. I tried both but didn't work. What am i doing wrong?

.disableField .RadInput .riTextBox  

{
background-color: #EFEFEF;
font-weight: bold;
}

 
.disableField1
{
 background-color: #EFEFEF;
 font-weight: bold;
 }

I could achieve this by doing like this but I would like to use the.css so I can change at once.

<telerik:RadTextBox ID="RadTextBox1" runat="server" Text="Johnson Grammer" Skin="Office2007">
        <DisabledStyle BackColor="#EFEFEF" BorderColor="Black" Font-Bold="True" />
</telerik:RadTextBox>

I found a style sheet example for Radcombobox from Telerik site which works great for RadComboBox. But was not able to get it work for text box.
http://www.telerik.com/help/aspnet-ajax/appearance-change-input-look-tutorial.html

Thanks in Advance.

Nalini
Top achievements
Rank 1
 answered on 13 Aug 2010
4 answers
1.4K+ views
I have not found any simple declarative property that enables me to set the width of textboxes for editable GridBoundColumns in RadGrid.I tried ItemStyle-Width but that does not seem to work. Setting MaxLength does not alter the visual display size of the TextBox control.

So how to do it ? in a simple declarative way for textboxes when using EditMode="EditForms"It seems that this is an important feature that should be easy to set declaratively in the *.aspx file....

If it's not possible, then I hope the next release will add this important feature!!!
Graham
Top achievements
Rank 1
 answered on 13 Aug 2010
3 answers
377 views
I have been asked by a friend to develop a room booking system for his office, I am developing it in VB.NET as a windows application using SQL 2008 back-end. I have created 3 forms Login, Users and Admin only the Admin will be able to book a room the user will have view only access. I notice the RadScheduler has either changed since 2009 version or its different in ASP.NET I have created a table in the database called Rooms with the following tables :- roomID, bookedIN, bookedOUT. the room id is the name or number of the room to be booked and the bookedIN/bookedOUT is datetime is it possible to edit the EditAppointment screen to always have RoomBooked as subject and have the location as a drop down list of roomID's that would be populated from the database. can the EditAppointment form be edited to not show resources.

I hope all this makes sense any suggestions greatly received

thanks
M
Stefan
Telerik team
 answered on 13 Aug 2010
1 answer
70 views

Hi All,

i have a form that contains RadTreeview. if we check any radnode,it opens the Radwindow. here i would like to pass entire node  to radwindow. i want to use that node values in Radwindow.

pls help to resolve this.


Thanks and Regards,
Srikanth.
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2010
1 answer
171 views
I have a main grid that has a NestedViewTemplate that contains a tabstrip with each tab containing its own grid.
One of these nested grids needs dynamically created columns but I also need to get the ID field that relates the nested grid to the parent grid so that I can run a query to determine the columns to add.

All of the samples I have seen show how to build the dynamic content on Page_Init, but when do you do it if you need to build the columns based on the value of the selected row in the parent grid?

Martin
Telerik team
 answered on 13 Aug 2010
1 answer
97 views
Hi

I have a requirement to implement 2 custom dialogs in the RadEditor.  I have already implemented a custom provider for the Image/Media/Flash/Document managers which works well.  These 2 new additional dialogs are to work in a very similar way and have the same "look and feel".

The first dialog is the more basic of the 2 custom dialogs.  It should function much like the Document Manager with a treeview on left (driven using a custom provider for folders/items), items for user to select in middle and just an insert/cancel button on right (i.e. no preview or custom properties).

The second dialog is identical to the above with the exception that when the user clicks items in the middle column the right column needs to load a custom form - the structure of which will change depending on the item which was clicked.  Im assuming that this may be possible with some sort of Ajax callback which uses server side code to query my database and decide on which custom fields my form requires ?

I have attached an image which shows how dialog 2 is to work (based on the Document Manager).  I have looked at the online demo which shows how to create completely custom dialogs but im struggling with :
(a) how to implement the File Manger inside my custom dialog so it looks like one of the out of the box Telerik managers (e.g. doc manager)
(b) how to implement the item click/custom form scenario which forms part of my 2nd custom dialog above.

Do you have any suggestions/code samples which you could point me at to help ?

Thanks

Steve
Stanimir
Telerik team
 answered on 13 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?