Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
I created a new page with code from a grid from another page.  For some reason, when I expand the rows, the page performs a post back to the server.  I have the HierarchyLoadMode for the MasterTableView set to "Client".  This works on the other page just fine.  Any ideas?

<rad:RadGrid ID="GridSummary" runat="server" OnColumnCreated="Grid_ColumnCreated"
    OnItemCreated="Grid_ItemCreated" OnItemDataBound="Grid_ItemDataBound"
    EnableEmbeddedSkins="false" Skin="MetroMagenta" Width="900px" AutoGenerateColumns="false">
    <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client"
        OnDataBound="Grid_DataBound"
        DataKeyNames="RecordId, ParentRecordId, RecordName"
        <SelfHierarchySettings ParentKeyName="ParentRecordId" KeyName="RecordId" />
        <Columns>
            <rad:GridBoundColumn DataField="RecordName" UniqueName="RecordName" HeaderText="" />
            <rad:GridBoundColumn DataField="SocialVolume" UniqueName="SocialVolume" HeaderText="Social Volume"  HeaderStyle-Width="150px" ItemStyle-Width="150px" />
            <rad:GridBoundColumn DataField="CaseVolume" UniqueName="CaseVolume" HeaderText="Case Volume"  HeaderStyle-Width="150px" ItemStyle-Width="150px" />
            <rad:GridBoundColumn DataField="HelpVolume" UniqueName="HelpVolume" HeaderText="Help Volume"  HeaderStyle-Width="150px" ItemStyle-Width="150px" />
        </Columns>
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true" />
</rad:RadGrid>
Angel Petrov
Telerik team
 answered on 08 Oct 2012
1 answer
80 views
Hi , i am using Q1 2011 version of rad control in the application

 

 

<telerik:RadGrid EnableEmbeddedSkins="false" CssClass="RadGrid_Outlook grid-inside-section"

 

 

 

ID="rdGridReport" runat="server" AutoGenerateColumns="False" PageSize="10"

 

 

 

AllowSorting="true" AllowPaging="true" Skin="Outlook">

 

 

 

<ClientSettings EnableRowHoverStyle="true">

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

</ClientSettings>

 

 

 

<MasterTableView DataKeyNames="ReportId" ClientDataKeyNames="ReportId" HeaderStyle-VerticalAlign="Top"

 

 

 

HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">

 

 

 

<DetailTables>

 

 

 

<telerik:GridTableView DataKeyNames="ID" runat="server" Name="sample" Width="100%" PageSize="10">

 

 

 

<ParentTableRelation>

 

 

 

<telerik:GridRelationFields DetailKeyField="ReportId" MasterKeyField="ReportId" />

 

 

 

</ParentTableRelation>

 

 

 

<ExpandCollapseColumn Visible="True">

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn UniqueName="chkID" DataField="ID" HeaderStyle-Width="25px"

 

 

 

AllowFiltering="false" ItemStyle-HorizontalAlign="Left">

 

 

 

<HeaderTemplate>

 

 

 

<asp:CheckBox ID="cbAllCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAllCheckBoxes"

 

 

 

onclick="MakeDirty(this);" />

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkOTCID" runat="server" Width="12px" onclick="checkboxClicked(event, this.id)" />

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="25px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderStyle-Width="50px"

 

 

 

ItemStyle-HorizontalAlign="Left">

 

 

 

<HeaderStyle Width="50px" />

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ID" DataField="ID" HeaderText="ID" Visible="false" />

 

 

 

<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" UniqueName="pName" DataField="pName"

 

 

 

HeaderText="Project" HeaderStyle-Width="20%" />

 

 

 

<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" UniqueName="File" DataField="PropertyNumber"

 

 

 

HeaderText="File" HeaderStyle-Width="20%" />

 

 

 

<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" UniqueName="FileType" DataField="FileType"

 

 

 

HeaderText="File Type" HeaderStyle-Width="20%" />

 

 

 

<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" UniqueName="DescriptionDate"

 

 

 

DataField="DescriptionDate" HeaderText="Description Date"

 

 

 

HeaderStyle-Width="10%" />

 

 

 

<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" UniqueName="Status" DataField="Status"

 

 

 

HeaderText="Status" HeaderStyle-Width="15%" />

 

 

 

<telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"

 

 

 

ConfirmDialogType="Classic" ConfirmTitle="Confirm Delete" ConfirmText="Are you sure you want to delete this record?"

 

 

 

ItemStyle-HorizontalAlign="Left">

 

 

 

<HeaderStyle Width="50px" />

 

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridTemplateColumn Visible="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lbStatus" runat="server" Text='<%#Bind("Status") %>'></asp:Label>

 

 

 

<asp:Label ID="lbPropertyActive" runat="server" Text='<%#Bind("Active") %>'></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings EditFormType="WebUserControl" UserControlName="~/Approvals.ascx">

 

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

</telerik:GridTableView>

 

 

 

</DetailTables>

 

 

 

<ExpandCollapseColumn Visible="True">

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn DataField="ReportId" HeaderText="ReportId" UniqueName="ReportId"

 

 

 

Visible="false" />

 

 

 

<telerik:GridBoundColumn DataField="ReportName" HeaderText="Report Name" UniqueName="ReportName">

 

 

 

<HeaderStyle Width="200px" />

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn>

 

 

 

<ItemTemplate>

 

 

 

<asp:LinkButton ID="lbDownLoadReport" runat="server" Text="OTC Report" CommandName="Download"></asp:LinkButton>

 

 

 

</ItemTemplate>

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="UnSubmit">

 

 

 

<ItemTemplate>

 

 

 

<asp:LinkButton ID="lbUnSubmitReport" runat="server" Text="UnSubmit Report" ToolTip="UnSubmit Report"

 

 

 

CommandName="UnSubmit" OnClientClick="if( ! OTCReportcheck()) return false;"></asp:LinkButton>

 

 

 

</ItemTemplate>

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

<ItemStyle VerticalAlign="Top" Wrap="True" />

 

 

 

<HeaderStyle VerticalAlign="Top" />

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

-----------------------------------------------------------

Above is html of grid , poblem i am facing

 

 

I delete the last record using the Delete button in DetailTables (last column) ,telerik inbuilt javascript breaks .
Although it works fine when record reaches at top using sorting.

Following is error log:


ception of type 'System.Web.HttpUnhandledException' was thrown.   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.layouts_singlelayout_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously).

----------------------------
 Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index   at System.Collections.ArrayList.get_Item(Int32 index)
   at Telerik.Web.UI.GridTableView.SetDataSourceFilter()
   at Telerik.Web.UI.GridTableView.FilterDetailDataSource()
   at Telerik.Web.UI.GridTableView.DataBind()
   at Telerik.Web.UI.GridTableView.Rebind()
   at Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source)
   at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
   at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

 

Angel Petrov
Telerik team
 answered on 08 Oct 2012
1 answer
141 views
What is the syntax for using the RadGrid between filter?  I am using a DataTable as my datasource.  When I apply greater then it works, but the between filter isn't working.   I have tried

81000,82000
81000|82000
81000 and 82000

Thanks,
Tony
Angel Petrov
Telerik team
 answered on 08 Oct 2012
4 answers
805 views
Hello,

I am trying to write some Javascript that will traverse all the rows of a radgrid and determine how many rows have a checkbox that is checked. 

I have a GridTemplateColumn that contains a Checkbox in the radgrid.  This is the checkbox I am trying to determine (for each record) if it is checked or not.

How do I do this in Javascript?

I was able to do it on Server side, but I would prefer to do this in Java script.

Thanks!
Waseem
Top achievements
Rank 1
 answered on 08 Oct 2012
1 answer
65 views
Hi,
we use Telerik Controls library v 2008

is it possible to implement spell check for the Editor control v 2008 ?
if anybody knows how to do that, please share your knowledge

Thanks a lot.

Oleks
Rumen
Telerik team
 answered on 08 Oct 2012
1 answer
150 views
I have a custom developed SharePoint 2010 solution which uses a File Explorer in a page view control in order to view files on the system drive.  It seems to work great except for the fact that when i go to the site in IE9 an additional header seems to show on my site.  It works fine in Firefox, but not in IE.  I verified that when i remove the user control containing the file explorer, everything returns to normal.

I followed this blog post in order to get it to work.
http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx

Screenshots attached.  Please advise if there is a way to fix this.
Thanks in advance!
Vessy
Telerik team
 answered on 08 Oct 2012
0 answers
74 views
done...
Felipe
Top achievements
Rank 1
 asked on 08 Oct 2012
1 answer
102 views
Hi, 

I have a problem with RadAsyncUpload control in Internet Explorer 8. In other browsers everything is ok. 
When I try to upload some file, in this case file with size 12.7Mb, uploader stops on 90% uploaded file (11.5Mb). This happens every time when I try to upload this file. In other browsers I don't have this problem. Error is JavaScript, I think, and message is:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 4 Oct 2012 08:06:16 UTC

Message: Exception thrown and not caught
Line: 2296
Char: 8
Code: 0
URI: http://www.somesite.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a62e881c6-518e-447d-b6e7-1af83cb2d164%3a16e4e7cd%3af7645509%3aed16cbdc%3a68f76a79%3a24ee1bba%3ad312a85e%3a874f8ea2%3a2a2fc429%3af46195d3%3a19620875%3a490a9d4e%3ab7778d6c%3a1e771326%3aaa288e2d%3a4cacbc31

In attachment you can see SS of the problem.
Can you help me?

Best regards
Plamen
Telerik team
 answered on 08 Oct 2012
1 answer
144 views
Hi,

 We have got a requirement to add a new event in day view. The requirement is as follows:

Take day view of radschduler. Click on one time slot say 9 am and drag to 1 pm, and upon releasing the drag we need to open the create event popup with start time as 9 am and end time as 1 pm .  Is there any way to do this?

We need to complete these things fro client-side, since we are using wcf services to bind the calendar.


Thanks

  
Boyan Dimitrov
Telerik team
 answered on 08 Oct 2012
10 answers
488 views
Using Q3 2008 RadGrid, Dot Net 3.5

I may have missed something, if so apologies in advance, but my question is whether there is a way of making the In-Line edit controls match the width of the column.

Perferably this would apply even if the user is re-sizing the columns, in real time client side!

Coupled to this, when column widths are small, the edit controls are often too large and spread into the next coumn to the right, again is there a resonable way to get them to fit. I may be asking a lot here, but it would make the Grid that bit better. By resonable, I mean a setting or minimal code behind (I will end up wnating this in quite a few places).

Yes I know I coudl use an edit form rather than in-line, but In-line is more appropriate for editing simple stuff.
Eyup
Telerik team
 answered on 08 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?