Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
119 views
Hi,
I am using RadGrid as node Templates in Radtree. Radgrid has suppoort to add/edit the fields. When Radgrid goes into add/edit mode & I press spacebar in Textbox inside the radgrid automatically root tree node gets selected & on presseing left/right arrow keys tree refreshes. How I can stop selecting the tree node on pressing space key inside the textbox. I tried disabling the onkeydown event

tree.detachEvent("onkeydown",tree.onkeydown);  for tree but it did not work.


Thanks.

Nikolay Tsenkov
Telerik team
 answered on 31 Aug 2011
1 answer
80 views
I have RadGrid with many columns and selectable rows, here is its code:

<telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" AllowMultiRowSelection="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCreated="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender"
            Width="2000px" AllowFilteringByColumn="True" AllowSorting="True"
            PageSize="20" ShowGroupPanel="true" ShowStatusBar="true" ShowFooter="True" AllowPaging="True" runat="server"
            GridLines="Both" EnableLinqExpressions="true">
            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView AutoGenerateColumns="false" GroupsDefaultExpanded="false" CommandItemDisplay="None" EditMode="InPlace"  AllowFilteringByColumn="True" DataKeyNames="VendorChargeId"
                ShowFooter="True" TableLayout="Fixed">               
                 
                <Columns>
                 
                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                <HeaderStyle Width="40px"/>
                </telerik:GridClientSelectColumn>                                       
 
                <telerik:GridCheckBoxColumn  DataType="System.Boolean" AllowFiltering="true" HeaderText="Requires Comment" Groupable="false" DataField="RequiresComments" UniqueName="RequiresComments" ReadOnly="false" >
                        <HeaderStyle Width="80px"/>
                    </telerik:GridCheckBoxColumn>
 
                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" HeaderText="Comments">                       
                        <ItemTemplate><asp:LinkButton ID="ShowComment" runat="server" OnClick='<%# String.Format("ShowComment({0}); return false;",Eval("VendorChargeId")) %>'  Text='<%# Eval("Comments") %>'></asp:LinkButton></ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridDateTimeColumn  FilterControlWidth="105px" DataField="ChargeDate" HeaderText="Transaction Date" DataFormatString="{0:dd/MM/yyyy}"
                        UniqueName="ChargeDate" AutoPostBackOnFilter="true" AllowSorting="true" AllowFiltering="false" Groupable="true" ShowFilterIcon="false">
                        <HeaderStyle Width="80px"/>
                        <ItemStyle Width="80px" />
                    </telerik:GridDateTimeColumn >
                     
                    <telerik:GridBoundColumn AllowFiltering="true" FilterControlWidth="40px" Groupable="true" DataField="Resource" UniqueName="Resource" HeaderText="Resource">
                        <HeaderStyle Width="80px"/>
                        <ItemStyle Width="80px" />
                    </telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="Researcher" UniqueName="Researcher" HeaderText="Researcher"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="ResearcherValid" UniqueName="ResearcherValid" HeaderText="ResearcherValid" Visible="false"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="Timekeeper" UniqueName="Timekeeper" HeaderText="Timekeeper"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="TimekeeperValid" UniqueName="TimekeeperValid" HeaderText="TimekeeperValid" Visible="false"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="MatterNumber" UniqueName="MatterNumber" HeaderText="Matter Number"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="MatterName" UniqueName="MatterName" HeaderText="Matter Name"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="MatterValid" UniqueName="MatterValid" HeaderText="MatterValid" Visible="false"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="ClientName" UniqueName="ClientName" HeaderText="Client Name"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="ChargeService" UniqueName="ChargeService" HeaderText="Service"></telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="true" DataField="ChargeDescription" UniqueName="ChargeDescription" HeaderText="Charge Description">
                    <ItemStyle Width="180px" />
                    <HeaderStyle Width="180px" />
                    </telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" FilterControlWidth="50px" Groupable="false" DataField="ChargeDatabaseTime" UniqueName="ChargeDatabaseTime" HeaderText="Database Time">
                        <HeaderStyle Width="90px"/>
                        <ItemStyle Width="90px" />
                    </telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn AllowFiltering="true" Groupable="false" DataField="TransactionCount" UniqueName="TransactionCount" HeaderText="Transactions"></telerik:GridBoundColumn>
                    <telerik:GridMaskedColumn FilterControlWidth="70px" AllowFiltering="true" Groupable="true" DataField="TotalCharge" UniqueName="TotalCharge" HeaderText="Total Charge" SortExpression="TotalCharge" DataType="System.Double" Aggregate="Sum" DataFormatString="{0:0.00}" FooterAggregateFormatString="Grand Total: {0:0.00}" >                   
                    </telerik:GridMaskedColumn>
                     
                    <telerik:GridTemplateColumn FilterControlWidth="85px" UniqueName="VendorChargeIdLink" HeaderText="Import Raw Data" AllowFiltering="false" Groupable="false">
                        <ItemTemplate>
                            <asp:LinkButton ID="ShowRawData" runat="server" OnClick='<%# String.Format("ShowRecords({0}); return false;",Eval("VendorChargeId")) %>'  Text='<%# Eval("VendorChargeId") %>'></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="80px"/>
                        <ItemStyle Width="80px" />
                    </telerik:GridTemplateColumn>
                     
                    <telerik:GridBoundColumn AllowFiltering="false" Groupable="false" DataField="VendorChargeId" UniqueName="VendorChargeId" HeaderText="Id" Display="false">
                    <HeaderStyle Width="30px" />
                </telerik:GridBoundColumn>
                </Columns>
                 <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" />
                  
            </MasterTableView>
            <ExportSettings IgnorePaging="true" ExportOnlyData="true" HideStructureColumns="true" OpenInNewWindow="true" FileName="Export">
                 
            </ExportSettings>
            <ClientSettings AllowDragToGroup="true">
                <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
                <Scrolling AllowScroll="false" />
            </ClientSettings>
        </telerik:RadGrid>

the problem is with Comments column which is template column (its UniqueName is TemplateEditColumn) , in IE 8 when I select a row it looks corrupted:

http://screencast.com/t/QkJzsLZU5bv

It looks fine in IE 9 and Firefox 5.
Galin
Telerik team
 answered on 31 Aug 2011
1 answer
208 views
hi i open radwindow with the following code , my problem is if i set VisibleOnPageLoad=true the code is working but each time the page post back the Radwindow open again if i set VisibleOnPageLoad=false couldn't open radwindow
Dim RW As New RadWindow
RW.NavigateUrl = "Search.aspx"
RW.VisibleOnPageLoad = True
RW.Width = New Unit(720, UnitType.Pixel)
RW.Height = New Unit(532, UnitType.Pixel)
RW.VisibleStatusbar = False
RW.MaxWidth = New Unit(720, UnitType.Pixel)
RW.MaxHeight = New Unit(532, UnitType.Pixel)
RW.OnClientClose = "OnClientClose"
RW.Modal = True
RadWindowManager1.Windows.Add(RW)            
Princy
Top achievements
Rank 2
 answered on 31 Aug 2011
3 answers
221 views
How can I show the group footer when the group is collapsed?  So that the collapsed group would show the header with the name and expand/collapse button, and directly below it the footer with all the aggregates for the group.
Thanks
Pavlina
Telerik team
 answered on 31 Aug 2011
3 answers
66 views
I would like to be able to export data from multiple radgrids at the same time to a word document, Is this possible?
Daniel
Telerik team
 answered on 31 Aug 2011
2 answers
80 views
Hi,

I get the following script error when I have removed items form the RadSlidingZone:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Thu, 25 Aug 2011 13:07:22 UTC

Message: Sys.ArgumentNullException: Value cannot be null.
Parameter name: panelsCreated[7]
Line: 129
Char: 12
Code: 0
URI: http://vmrfri01/ScriptResource.axd?d=2TuO-4de3Cu2jy3GwiBJ9I354x-wa6kqKgnO8MqrHMQCNtAd_g7gknzZfooaXJe3O3k-3KBVsXHPIKGN0b4GONkdyHiZcbOp_H4nzrreccw2VN6Qxn_MHS2MJaxWOnUtFekVypqt0uE6Hi6aBatu4oYI0Sl47S4Hbt4BWJMq_rrbCbka0&t=ffffffffb6731f87


I have defined four slidingpanes in the slidingzone in the aspx file.
In the InitComplete event method I have added two new panes and removed one exisiting pane.
When I load the page, I get the error message.
When I only add panes all working fine without the error
Only when I have removed an existing pane the error occurs after page is loaded.

I'm using the the telerik version 2011.2.712.35

Any idea why the error occurs?

Best regards,
Ralf
d-velop.de


Ralf
Top achievements
Rank 1
 answered on 31 Aug 2011
1 answer
159 views
Hello,

when I resize the raddock to fit it's contents (usually the radDock's width is increaed; the radDock contains a radGrid), the title bar doesn't resize properly.
The width changes correctly, but the "drag zone" doesn't get wider.
For example if the radDock's width is increased from 100px to 200px, the left half of the title can be used to drag the radDock (the curser changes to the move icon when hovering) but when I hover the right part of the title it doesn't work.

After dragging the radDock a bit using the left half of the title, the right part also works correctly.

What can I do about this issue?
The resizing is done client side using the set_width property of the rad dock. The function is called by using:

Sys.Application.add_load(initializeRadDockResources);

I also tried using the OnClientInitialize event, but when using that the whole title has no "drag zone" after resizing. Also the title text is missing. But when the RadDock is opened a second time everything works.

Thanks!

Edit: I just checked something and the problem in OnClientInitialize is the same as in the load event handler. I just set the width to 0 before. It seems that when the radDock is opened and I set the width as described above, the value is not used until the radDock is opened the next time.
Dobromir
Telerik team
 answered on 31 Aug 2011
3 answers
135 views
Is there a way to alter the properties of the built in tool tip for each appointment.  More specifically, i need to adjust the AutoCloseDelay property so the tool tip stays on the user's screen longer.  Right now the tool tip contains too much information to take in when it fades away after a few seconds.

Thanks,

Luke Wautier
Ivan Zhekov
Telerik team
 answered on 31 Aug 2011
1 answer
154 views
Hi,

In the following demo page, there are CSS animations which include cursor change and arrow indicator in group pane when I drag-n-drop a column into group pane:

http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx

How do I style these animations?

TIA
Pavlina
Telerik team
 answered on 31 Aug 2011
1 answer
74 views
I have a RadGrid in UpdatePanel1 and a Listbox and a Button in Updatepanel2.

The button in UpdatePanel2 adds items to the listbox.
 
What I'm not understanding is why when I click the button in Updatepanel2 it runs the click event and then triggers the RadGrid.NeedDataSource sub routine.Shouldn't the the click event in Updatepanel2 only post back and refresh the controls in that updatepanel?


Tsvetina
Telerik team
 answered on 31 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?