Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 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
399 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
121 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
127 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
5 answers
122 views
Hello,

We've run into a fairly obscure but critical issue when removing menu items client-side using IE 10. This seems to be an IE 10-only bug - does not occur for other versions of IE or Chrome or Firefox I believe. If there is code like this:

        var historyItems = historyMenu.get_items();
historyItems.removeAt(0);

and there is only one menu item in the list, IE 10 will throw an exception:

Error: NoModificationAllowedError

inside of Telerik script. This line:

if($telerik.isIE&&s){s.outerHTML="";

Call stack is:

_purgeEmptyGroup
_childRemoved
remove
removeAt

We're using the very latest Telerik release. 2012.3.1205.40

Please advise,

Thank you,

- Mike Oliver



Boyan Dimitrov
Telerik team
 answered on 13 May 2013
4 answers
188 views
i need to fill a radgrid with the checked items on the combobox checkbox, but i dont know what event or function can me help to do this.
PLEASE HELP
Mauricio
Top achievements
Rank 1
 answered on 13 May 2013
4 answers
221 views
We changed our grid to assign an item Backcolor ( e.Item.BackColor = System.Drawing.Color.Red;) and now the hover color is gone. We do this on itemDataBound.

Before this change, hovering over each row would change the background.
We still have the client settings set: EnablePostBackOnRowClick="True" EnableRowHoverStyle="True"

is there a way so the BackColor does not override the hover, we just want to see the hover color again, I believe it defaulted to light blue.

Thanks
Adam King
Top achievements
Rank 1
 answered on 13 May 2013
1 answer
145 views

Hi,

 

I want to validate Custom resource fields in radscheduler on client side when i click on save button in insert and update case.

Please help..

Boyan Dimitrov
Telerik team
 answered on 13 May 2013
2 answers
242 views
Hi

I have a requirement to create a RadAutoCompleteBox programmatically.

I have successfully created the RadAutoCompleteBox via code but I am unsure how to set the TextSettings and WebServiceSettings programmatically.

The documentation describes a WebServiceSettings class but I am unsure if it can be used for RadAutoCompleteBox and how to use it.

I also see that a AutoCompleteBoxTextSettings class exists but I am also unsure if it can be used to set the selection mode. 

Ultimately I want single selection and for the RadAutoCompleteBox to post back to the web service to get the detail to display.

Thanks. 








Nencho
Telerik team
 answered on 13 May 2013
1 answer
102 views
Hi,

What key do I need to set the Skin globally?

I have tried

<add key="Telerik.Notification" value="Simple" />

<add key="Telerik.RadNotification" value="Simple" />

neither work

cheers
Marin Bratanov
Telerik team
 answered on 13 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?