Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
The docs for this make no mention of tests for IE10.

is this an oversight in the Docs or in the Library?

--
Stuart
Marin
Telerik team
 answered on 14 May 2013
17 answers
360 views
Hello,

When I enter data in the Rad Text Box (after a postback operation), the entered data does not remain for the next postback. I mean... The data entered in the Text box does not remain in the viewstate. I am facing this problem only when I use Rad Text Box. This is not page specific. But this does not happen everytime. The occurrence is more often but not always.

Please let me know if you need any further information regarding this problem.

Thanks
- gsk
Vasil
Telerik team
 answered on 14 May 2013
1 answer
70 views
  <telerik:RadGrid ID="rdGrdReferenceTable" runat="server" GridLines="None" AllowPaging="True"
                                                        PageSize="10" AllowSorting="true" OnRowDrop="rdGrdReferenceTable_RowDrop" OnItemDataBound="rdGrdReferenceTable_ItemDataBound"
                                                        OnUpdateCommand="rdGrdReferenceTable_UpdateCommand" OnNeedDataSource="rdGrdReferenceTable_NeedDataSource"
                                                      AutoGenerateColumns="False"
                                                        Width="1148px" Height="348px" AllowAutomaticUpdates="false" AllowAutomaticInserts="false"
                                                        AllowFilteringByColumn="true" GroupingSettings-CaseSensitive="false" PagerStyle-AlwaysVisible="true"
                                                        TabIndex="4" Style="border: 1px solid #ccc">
                                                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Position="Bottom"></PagerStyle>
                                                        <MasterTableView EditMode="InPlace" GridLines="None" DataKeyNames="Row_Seq_Number,ShortDescription"
                                                            AutoGenerateColumns="false" Width="100%" NoMasterRecordsText="No data fields to display.."
                                                            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">
                                                            <Columns>
                                                                <telerik:GridBoundColumn DataField="Row_Seq_Number" ReadOnly="True" HeaderText="Row_Seq_Number"
                                                                    UniqueName="Row_Seq_Number" Visible="false">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="RowNumber" ReadOnly="True" HeaderText="Row Number"
                                                                    HeaderStyle-Width="100px" UniqueName="RowNumber">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="ColumnName" ReadOnly="True" HeaderText="Table Name"
                                                                    UniqueName="ColumnName" ColumnEditorID="GridTextBoxColumnEditor1" HeaderStyle-Width="180px">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Short Description" DataField="ShortDescription"
                                                                    HeaderStyle-Width="180px" UniqueName="ShortDescription">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblShortDescription" runat="server" Text='<%# Eval("ShortDescription")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                        <asp:TextBox ID="txtShortDescription" Width="300px" runat="server" Text='<%# Eval("ShortDescription")%>'></asp:TextBox>
                                                                    </EditItemTemplate>                                                             
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridBoundColumn DataField="Parent_Data" ReadOnly="True" HeaderText="Parent Data"
                                                                    HeaderStyle-Width="180px" UniqueName="Parent_Data">
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <GroupingSettings CaseSensitive="false" />
                                                        <ClientSettings AllowColumnsReorder="true"  ReorderColumnsOnClient="true"  AllowRowsDragDrop="true">
                                                            <Resizing AllowColumnResize="true" />
                                                            <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
                                                            <ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated"
                                                                OnCommand="GridCommand" OnRowDropping="RowDropping" />
                                                            <Scrolling AllowScroll="true" UseStaticHeaders="true"  />
                                                        </ClientSettings>
                                                    </telerik:RadGrid>


Thanks,
Jegan
Princy
Top achievements
Rank 2
 answered on 14 May 2013
3 answers
185 views
Hi,

Is it possible to limit the resize capability of the Editor so that users may only resize it vertically rather than both vertically and horizontally? Currently we are having to disable all Resize capabilities to prevent the users from breaking the page.

Hope you can help

A.
Steven
Top achievements
Rank 1
 answered on 14 May 2013
6 answers
547 views
Hi

We just updated to the most recent 2013 Q1 upgrade of ASP.NET tools, and all of the sudden the RadDropDownLists are not working properly with the RequiredValidators,  The validators keep showing messages even though there's content on the dropdowns.  The latest browsers versions of Chrome and IE have this problem.  

Curiously, with IE version 8 this problem does not occur!

I'd appreciate any help or bug fix for this as it is a critical problem


Thanks in advance
Neftali Figueroa
Owen
Top achievements
Rank 1
 answered on 13 May 2013
1 answer
110 views
I have a RadGrid that I am create on Page_Init. I have EnableViewState and EnableColumnsViewState both set to true. I apply a filter on the grid, the system runs the NeedDataSource and the correct records are applied. The filter value is still in the textbox. I then apply a second filter to a different column. The system runs the NeedDataSource and records that only apply to the second filter show. The first filter is not applied and the value in the textbox of the first filter is erased. I don't believe this is the desired behaviour. What am I doing wrong?

RadGrid1.ID = "RadGrid1"
RadGrid1.Width = Unit.Pixel(1500)
RadGrid1.Height = Unit.Pixel(700)
RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace
RadGrid1.EnableViewState = True
RadGrid1.AllowPaging = True
'RadGrid1.AllowCustomPaging = True
RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
RadGrid1.AutoGenerateColumns = False
RadGrid1.ShowStatusBar = True
RadGrid1.AllowSorting = True
RadGrid1.AllowFilteringByColumn = True
RadGrid1.MasterTableView.NoDetailRecordsText = "No records could be found."
RadGrid1.MasterTableView.NoMasterRecordsText = "No records could be found."
RadGrid1.MasterTableView.ShowHeadersWhenNoRecords = True
RadGrid1.Skin = "WebBlue"
RadGrid1.ClientSettings.ClientEvents.OnGridCreated = "GetGridObject"
RadGrid1.ClientSettings.Scrolling.FrozenColumnsCount = 2
RadGrid1.ClientSettings.AllowColumnsReorder = True
RadGrid1.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Swap
RadGrid1.ClientSettings.Selecting.AllowRowSelect = True
RadGrid1.ClientSettings.Resizing.AllowColumnResize = True
RadGrid1.ClientSettings.Scrolling.AllowScroll = True
RadGrid1.ClientSettings.Scrolling.UseStaticHeaders = True
RadGrid1.ClientSettings.Scrolling.SaveScrollPosition = True
RadGrid1.ClientSettings.ClientEvents.OnFilterMenuShowing = "filterMenuShowing"
RadGrid1.FilterMenu.OnClientShowing = "MenuShowing"
RadGrid1.MasterTableView.EnableViewState = True
RadGrid1.MasterTableView.EnableColumnsViewState = True
RadGrid1.MasterTableView.PageSize = 50
RadGrid1.MasterTableView.AllowMultiColumnSorting = True
RadGrid1.MasterTableView.DataKeyNames = New String() {"DetailID", "Day", "FoundGeographies", "SubZipCount"}
If mSubCodesAvailable Then
    RadGrid1.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerBind
    RadGrid1.MasterTableView.HierarchyDefaultExpanded = True
End If
David Kucharski
Top achievements
Rank 1
 answered on 13 May 2013
1 answer
141 views
I have a RadGrid that I am creating programmatically in the Page_Init. I have set the EnableViewState to True for both the RadGrid and the RadGrid.MasterTableView.

Once the grid displays, the user applies a filter. The radgrid is automatically re-bound. My problem is the ItemCommand is fired after the NeedDataSource. I don't believe this is the correct behaviour from what I have read. I would like to gather my filtering options before the NeedDataSource is fired.

Let me know what I am doing wrong.
David Kucharski
Top achievements
Rank 1
 answered on 13 May 2013
6 answers
345 views
Hi,

I have a problem where the DataBinding event of my RadGrid is not called after a Filter on any column. The event is only called on the very first binding of the grid or if I call a Rebind(). 

I can see that on filter, it correctly call ItemCommand -> NeedDataSource -> DataBound, but not DataBinding before DataBound.

Is that a normal behavior or this is an issue? 

Thanks.
Jocelyn
Top achievements
Rank 1
 answered on 13 May 2013
1 answer
102 views
I have a radgrid with the grid tied to one datasource and a grid attachment column tied to another one.  The purpose is to just click on the link for the column and have it open the appropriate web plug-in for that attachment.

When I debug the grid in IE 9, I get an exception thrown out of the RadScript Manager.  Line: 6
Error: Could not complete the operation due to error c00ce514. 

From what I can tell, it doesn't even hit the database for the second datasource to retrieve the image when running in IE.

When I run the same code in Firefox, everything behaves as expected.  When I have googled the error, it talks about temporarily turning off Ajax.  My gut feeling is that the Javascript code I have in place is being ignored in IE.  I have set breakpoints in that Javascript code just to make sure it is getting executed and the objects are not null / nothing. 

Any idea what could be going on?  Here is a snippet of the code...

<telerik:RadGrid ID="grdAttachments" runat="server" AllowSorting="True" AutoGenerateColumns="False"
CellSpacing="0" DataSourceID="sdsCaseAttachments" GridLines="None" OnDeleteCommand="grdAttachments_DeleteCommand"
	OnItemCommand="grdAttachments_ItemCommand" OnItemDeleted="grdAttachments_ItemDeleted"
OnItemInserted="grdAttachments_ItemInserted" OnItemUpdated="grdAttachments_ItemUpdated">
	<ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true">
	<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
	<MasterTableView CommandItemDisplay="None" DataKeyNames="DocId" DataSourceID="sdsCaseAttachments">
	<Columns>
		<telerik:GridBoundColumn DataField="DocId" DataType="System.Int32" Display="false"
		EditFormColumnIndex="0" HeaderText="DocId" ReadOnly="True" SortExpression="DocId"
			UniqueName="DocId" />
		<telerik:GridBoundColumn DataField="CaseProgId" DataType="System.Int32" Display="false"
		EditFormColumnIndex="0" HeaderText="CaseProgId" ReadOnly="True" SortExpression="CaseProgId"
		UniqueName="CaseProgId" />
		<telerik:GridAttachmentColumn DataSourceID="sdsAttachment" HeaderText="Download"
		AttachmentDataField="CaseDoc" AttachmentKeyFields="DocId" FileNameTextField="FileName"
			DataTextField="FileName" UniqueName="AttachmentColumn">
		</telerik:GridAttachmentColumn>
		<telerik:GridBoundColumn DataField="FileType" EditFormColumnIndex="2" HeaderText="File Type"
		SortExpression="FileType" UniqueName="FileType" />
		<telerik:GridDateTimeColumn DataField="UploadDt" DataFormatString="{0:MM/dd/yyyy}"
		EditFormColumnIndex="1" FilterDateFormat="{0:MM/dd/yy}" HeaderText="Date Uploaded"
		SortExpression="UploadDt" UniqueName="UploadDt" />
		<telerik:GridBoundColumn DataField="FileSz" EditFormColumnIndex="2" HeaderText="File Size"
			SortExpression="FileSz" UniqueName="FileSz" />
		<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure you want to delete?"
			ImageUrl="~/images/delete.png" Text="Delete" UniqueName="imgDelete" />
		</Columns>
	</MasterTableView>
	<ClientSettings>
	     <ClientEvents OnCommand="gridCommand"></ClientEvents>
	</ClientSettings>
	<FilterMenu EnableImageSprites="False">
	</FilterMenu>
</telerik:RadGrid>


function gridCommand(sender, args) {
if (args.get_commandName() == "DownloadAttachment") {
var manager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>');
manager.set_enableAJAX(false);
 
	setTimeout(function () {
		manager.set_enableAJAX(true);
	}, 20000);
	}
}
Viktor Tachev
Telerik team
 answered on 13 May 2013
1 answer
109 views
Hi Community,
    Need help with the hide expand/collapse (buttontype="ImageButton").   I have look at the documentation page http://www.telerik.com/help/aspnet-ajax/grid-hide-expand-collapse-images-when-no-records.html, but it hide everything.  Because the nestedView.Items.Count always equal to zero (Not sure if I'm doing it right).

I have an attachment column if they have an attachment it show the detail (detail table) about the attachment, when they don't have an attachment I want to hide the button or disable it.

Any help would be greatly appreciated it.

See attach image.
Paul
Top achievements
Rank 1
 answered on 13 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?