Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
263 views
I have a resource within the scheduler that has 3 overlapping appointments within the Timeline view.

Before the 2008 Q3 release, the resource cell would render as the following, causing this cell to grow to the same height as the height of the cell in the Timeline view:
<TR>
<TH class=rsMainHeader rowSpan=4>
<DIV class=rsHoursWrapper>
<DIV class=rsHoursContent><SPAN class=rnFormat id=9027>Doe, John</SPAN> </DIV>
</DIV>
</TH>
<TH class=rsSubHeaderHidden>
<DIV class=rsHoursWrapper>
<DIV class=rsHoursContent></DIV></DIV></TH></TR>
<TR>

Now, with the 2008 Q3 release, my resource cell is not growing in height in correlation with the Timeline's cell. So, if i have 3 stacked appointments, the resource cell is still only "one row" in height, causing that and subsequent records to be misaligned. The rendered HTML is the following:
<TR class=rsMainHeader style="HEIGHT: 100px">
<TH>
<DIV style="WIDTH: 100px">Doe, John </DIV>
</TH>
</TR>





In my opinion:
1) The height attribute SHOULD NOT be added to the TR tag. Why is this here?
2) A RowSpan attribute should be added as in the previous version so that that cell will grow in correlation with the Timeline view's cell.


Thanks, Jeff



Jeff Nafe
Top achievements
Rank 1
 answered on 04 Dec 2008
4 answers
210 views
I have a problem which I can simplify down to the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <script type="text/javascript"
        function responseEnd(sender, eventArgs) 
        { 
            alert(eventArgs.get_eventArgument()); 
        } 
        function firePostBack(arg) 
        { 
            $find('<%=ajaxManager.ClientID %>').ajaxRequestWithTarget('<%=ajaxManager.ClientID %>', arg); 
            $find('<%=ajaxManager.ClientID %>').ajaxRequestWithTarget('<%=div.ClientID %>', arg); 
        } 
    </script> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <telerik:RadAjaxManager RequestQueueSize="2" ID="ajaxManager" runat="server" ClientEvents-OnResponseEnd="responseEnd"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="ajaxManager"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="div" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
        </div> 
        <div id="div" runat="server"></div> 
        <href="#" onclick="firePostBack('1');return false;">Fire</a> 
    </form> 
</body> 
</html> 
 

Basically, I am firing multiple ajax requests (with ajaxRequestWithTarget) and the OnResponseEnd method is firing more and more times the more you fire the requests. 

If you create a page using the code above, the first time you press "Fire" OnResponseEnd fires 3 times, the next time it fires 5, the next time 7, etc.

Equally if you change the ajaxRequestWithTarget to ajaxRequest, the responseEnd fires twice, four times, six times, eight time etc.  This only seems to occur with multiple ajax requests.


I'm seeing old ajaxrequests that have finished keep firing the OnResponseEnd event - surely this isn't right?

Thanks,

Stephen


Andreas
Top achievements
Rank 1
 answered on 04 Dec 2008
3 answers
190 views
I have created a simple TreeView and have some nodes created from the code behind. I have tried to set the RootNode's NodeExpand ClientSide, ServerSide, ServerSideCallBack. I just can't seem to expand a node through my code behind. I have tried to use OnClientNodePopulated and tried to expand. Nothing works. My first node always opens collapsed. I can't even find a Expand() method on a node. I do have ExpandChildNodes(), and that is what I am calling but no luck so far.  I really need help on this. This is what I have
         RadTreeView1.Nodes.Clear();
            RadTreeNode node = new RadTreeNode();
            node.Category = "Root";
            node.Value = Guid.Empty.ToString();
            node.Text = "Functional Positions";
            node.Checkable = false;
//added the following line just so I have a child node
            node.Nodes.Add(new RadTreeNode("dummy");
           
            node.ExpandMode = TreeNodeExpandMode.ServerSide;    // I have tried setting ClientSide, ServerSide
            RadTreeView1.Nodes.Add(node);
            RadTreeView1.Nodes[0].ExpandChildNodes();

what I want at this point the TreeView to fire it's NodeExpand Method so I can load the actual nodes from the database.
Can you please help?

Thanks
himadri
Veselin Vasilev
Telerik team
 answered on 04 Dec 2008
2 answers
129 views
I have a RadGrid with textboxes on the editing form tempate. I have a RadInputManager to control the textboxes. It works fine until i allow filtering on the GridView with AllowFilteringByColumn property. After that I can't open me editing form. I am getting a "Microsoft JScript runtime error: 'null' is null or not an object" error on a line
$find('').dispose();
in tab eval code [dynamic] in Visual Studio.

Is there a way to use RadInputManager on GridViews with enabled filtering?
Iana Tsolova
Telerik team
 answered on 04 Dec 2008
1 answer
94 views
I tried using the code from :
http://demos.telerik.com/aspnet-ajax/Dock/Examples/HighlightedCssClass/DefaultCS.aspx
Since this is very close to what I am doing.
When I set the radDock size to the image size I get a vertical scrollbar, as soon as I move it I get both.
If I make the radDock roughly 5 pixels bigger in both directions the scroll bars go away but I also get the whitespace at the edge and bottom of the image.
I only need the dragging/resizing capabilities of the radDock. Right now I am just trying to get the dragging to display correctly.
My users drag images onto a canvas and create a collage.
Below is my aspx code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .CustomCssClass
        {
            background-color: #c9ecff !important;
        }
        .raddock .rdSideBorders, .raddock .rdTopBorder, .raddock .rdBottomBorder
        {
            border: 0 !important;
        }
        .rdPlaceHolder
        {
            border: 0 !important;
            background: transparent !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
    </telerik:RadScriptManager>

    <script type="text/javascript">
        function SetHandleDock(dock, args) {
            dock.set_handle(document.getElementById("Handle_" + dock.get_id()));
        }
    </script>

    <div>
        <telerik:RadDock ID="RadDock1" runat="server" Width="89px" Height="124px" DockHandle="None"
            DockMode="Floating" OnClientInitialize="SetHandleDock">
            <ContentTemplate>
                <img id="Handle_RadDock1" Width="89px" Height="124px" src="/Images/images.jpeg" />
            </ContentTemplate>
        </telerik:RadDock>
    </div>
    </form>
</body>
</html>


Petko
Telerik team
 answered on 04 Dec 2008
3 answers
151 views

I have deployed the Rad Editor version 5.3.0 for MOSS into my MOSS enviroment.  We have noticed that when trying to set tables to align to the right or center nothing happens.  I looked at the html that is generated for the table and it is setting the style property to "text-align: right" which only affects the table contents, not the table itself.  The table needs to be wrapped in a div tag with the "text-align: right".

We commonly use tables that are right justified to place announcements or other sidebar content in.  Previous versions of the RadEditor deployed in MCMS has worked fine.  I currently have in production for MCMS Q1 2007 and we do not have any issues.

Is there a way to get this fixed in the editor so we can continue to use our right aligned sidebar tables in MOSS?

 

--

Joe Q.

Stanimir
Telerik team
 answered on 04 Dec 2008
3 answers
278 views
Why do I get the following warnig in every pages I use the  'RadFormDecorator?

Warning 5 
Element 'RadFormDecorator' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.

Thanks,
Eric
Georgi Tunev
Telerik team
 answered on 04 Dec 2008
1 answer
289 views
I have setup a RadGrid column to use Aggregate="sum", everything works fine... until there is no data to show, in which case I get the error "Object reference not set to an instance of an object.".

The RadGrid connects to a ObjectDataSource inline, the ObjectDataSource connects to a BLL function that returns a DataTable, when DataTable is null (no records founded), then I get the error. I guess I can go around this problem by setting the Aggregate="sum" in code behind in a proper event only when there is data, but... should not the RadGrid cover this case? If some one knows how please help!. Thanks. Below the code (the column TotalAmount contains the aggregate).

 

            <telerik:RadGrid ID="grdOrder" runat="server" DataSourceID="ObjectDataSource1" Skin="Web20"   
                AllowPaging="True" AllowSorting="false" ShowFooter="true" 
                GridLines="None" AutoGenerateColumns="False">  
            <MasterTableView DataSourceID="ObjectDataSource1">  
                <NoRecordsTemplate> 
                    No orders to display  
                </NoRecordsTemplate>      
                <Columns> 
                    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="Customer">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CustomerName" HeaderText="">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="OrderID" HeaderText="Order No">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="TotalAmount" HeaderText="Total"   
                        DataFormatString="{0:N}" Aggregate="Sum">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CurrencyID" HeaderText="CY">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="DateCreated" HeaderText="Order Date"   
                        DataFormatString="{0:d}">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="DatePaid" HeaderText="Date Paid"   
                        DataFormatString="{0:d}">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="DateShipped" HeaderText="Date Shipped"   
                        DataFormatString="{0:d}">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridHyperLinkColumn DataNavigateUrlFields="OrderID"   
                        DataNavigateUrlFormatString="Order.aspx?orderID={0}" Text="Details...">  
                    </telerik:GridHyperLinkColumn> 
                </Columns> 
            </MasterTableView> 
            <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" /> 
            </telerik:RadGrid> 
 
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"   
        SelectMethod="ShippedOrders" 
        TypeName="Cloud1.Reports.Orders">  
        <SelectParameters> 
            <asp:Parameter Name="customerID" Type="Int32" DefaultValue="0" /> 
            <asp:ControlParameter ControlID="dtmFromDateCreated" Name="fromDateCreated"   
                PropertyName="SelectedDate" Type="String" /> 
            <asp:ControlParameter ControlID="dtmToDateCreated" Name="toDateCreated"   
                PropertyName="SelectedDate" Type="String" /> 
            <asp:ControlParameter ControlID="dtmFromDateShipped" Name="fromDateShipped"   
                PropertyName="SelectedDate" Type="String" /> 
            <asp:ControlParameter ControlID="dtmToDateShipped" Name="toDateShipped"   
                PropertyName="SelectedDate" Type="String" /> 
        </SelectParameters> 
    </asp:ObjectDataSource> 
Princy
Top achievements
Rank 2
 answered on 04 Dec 2008
4 answers
270 views
Hey there,

Working with radrotator similar to the image gallery example shown on your website.  2 things I am wondering...

1. how can i detect the current items shown out of the array?  Preferably on the client side, but if not, server-side is fine too.  That is, if I have 27 items and the room to show 4 at a time... how could i tell as I rotate through them which is the start/end items in my list?
e.g. I want to have "Now showing 5 to 9 of 27" text below my rotator.  I want the '5'/'9' numbers to be updated either on Page_Load (initially) or after I move the screen left/right one.   Anyone know how to do this?

2. Supposing the '5' in the example above was actually a text box the user could type in and hit <ENTER> to set the starting item... how could I do this? 
Edit: 1 more question related to the radrotator...

1. In OnItemclick server-side event, the rotator seems to reset to the first item in the list.  How can I set it to stay at the current frame.  E.g. if I show 4 items at once and have moved over 7, how can I set it up that if I click on the 3rd item, it is in 3rd position of the visible elements in the rotator on page postback.


Thx,
Rob
Lini
Telerik team
 answered on 04 Dec 2008
2 answers
88 views
everytime i tried to do this, it will only display a few not all.

dt.Load(rs)

RadGrid1.HeaderStyle.VerticalAlign = VerticalAlign.Middle

RadGrid1.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

RadGrid1.Width = 868

RadGrid1.MasterTableView.Width = UnitType.Pixel

RadGrid1.MasterTableView.Width = 868

RadGrid1.MasterTableView.Height = UnitType.Percentage

RadGrid1.MasterTableView.Height = 100

RadGrid1.ClientSettings.Resizing.AllowColumnResize =

True

 

RadGrid1.ExportSettings.ExportOnlyData =

True

 

RadGrid1.ExportSettings.IgnorePaging =

True

 

RadGrid1.DataSource = dt

RadGrid1.AllowPaging =

True

 

RadGrid1.AutoGenerateColumns =

True

 

RadGrid1.AllowSorting =

True

 

RadGrid1.Height = 768

RadGrid1.ClientSettings.Resizing.ClipCellContentOnResize =

False

 


Dim

expression As GridGroupByExpression = New GridGroupByExpression

 

 

Dim gridGroupByField As GridGroupByField = New GridGroupByField

 

gridGroupByField =

New GridGroupByField

 

gridGroupByField.FieldName =

"section"

 

gridGroupByField.HeaderText =

"Total for Section "

 

expression.SelectFields.Add(gridGroupByField)

expression.GroupByFields.Add(gridGroupByField)

 

 

RadGrid1.MasterTableView.GroupByExpressions.Add(expression)

 

RadGrid1.MasterTableView.TableLayout = GridTableLayout.Fixed

RadGrid1.ClientSettings.Scrolling.AllowScroll =

True

 

 

 

 

RadGrid1.ClientSettings.Scrolling.UseStaticHeaders =

True

 

 

 

 

 

Dim item As GridItem

 

RadGrid1.Rebind()

 

For Each item In RadGrid1.MasterTableView.Controls(0).Controls

 

 

If TypeOf item Is GridGroupHeaderItem Then

 

 

 

 

item.Expanded =

False

 

 

 

 

 

End If

 

 

 

 

 

Next

 

 

for example
if i have a column section with
apple
apple
pear fruit
strawberry
peanut butter
peanut butter,
i only get apple and pear fruit back. why is this the problem? i know i get all of the databack because if i go to the next page, it will show up the strawberry and peanut butter. and so i put a break point in the line item.expand = false, i noticed that only a few items get into that loop not all. mostly the first two. can you help me ? Thank you for your help.

appdev
Top achievements
Rank 1
 answered on 04 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?