Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
359 views
Hi,

I am exporting the grid data to pdf on a button click.
After clicking on button I will get a window to open / save the pdf file, when I save and open the file I am getting the data in pdf file.
But when I click directly on open button I am getting following error:

There was error in opening this document. This file can not be opened.


Can any one help in this.


Thanks,
Daniel
Telerik team
 answered on 22 May 2009
1 answer
150 views
Hi, does anybody know how to force a rebind before the ItemCommand event is processed on a postback?

I cannot do the bind in the PageLoad as it breaks the functionality of the Edit/Insert custom form, also I cannot disable the Grid's Viewstate as it alos breaks the functioning of the custom edit form.

All the columns are created programatically as the number and name of the columns is not known until runtime.

The senario is basically this:

I have a Grid which is wrapped in an AJAX Panel which shows a list of Charges which is to be split between an arbitary number of groups. The method of splitting the charge is configurable which requires a compex Edit Form  to set the parameters for the split. Everything works fine up to here, the users can happily create and edit charges and change the parameters. BUT there is a requirement to amend the total charge in-place in the grid and to split this charge using the already configured parameters.

There appears to be a mutually exclusivity between the in-line edit without going into edit mode and the enabling of the Viewstate. If the Viewstate is disabled then the in-line portion works a treat but the Edit form fails miserably.

The issue bolis down to the unavailability of a bound GridDataItem in the ItemCommand event and I can't for the life of me get theforce the grid to bind before this event is fired.

Any help would be greatly appreciated.
Nick
Top achievements
Rank 1
 answered on 22 May 2009
3 answers
96 views
hi,

i am using  RadControls for ASP.NET AJAX: Grid
if i inculde the following code  in my page design
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>

page load event is repeatedly called.

it doesnt show the page at all.

what is wrong in my code.

thanks,
Pavlina
Telerik team
 answered on 22 May 2009
5 answers
165 views

How can I delete all selected rows on the client in RadGrid without doing a postback?

I already use a GridClientDeleteColumn for individual rows (with a single postback later).

I want to select several rows and achieve the same effect.  I found MasterTableView.deleteSelectedItems() but it does a postback. Should I cancel it?  Can I use MasterTableView._clientDelete(event) directly?

Thank you.




Iana Tsolova
Telerik team
 answered on 22 May 2009
6 answers
534 views
I have a radgrid , when I add a new line , hit enter on any of the date controls (raddatepicker) , it automatically posts back to the server which is very annoying. I was able to disable this for a RadNumericTextBox. 

how can I disable this for the raddatepicker ? can you please provide an example ? 

function disableEnterKey(sender, eventArgs)

 

{

 

var key = eventArgs.get_keyCode();

 

 

if(key && key == 13)

 

eventArgs.set_cancel(

true);

 

}

 

 


 

<telerik:RadNumericTextBox

 

 

ShowSpinButtons="False"

 

 

Skin="Office2007"

 

 

Type="Currency"

 

 

width="155px"

 

 

ID="txtUnitPrice"

 

 

runat="server" DbValue='<%# Bind("UNIT_SELLING_PRICE") %>' InvalidStyleDuration="100"

 

 

MinValue='<%#Convert.ToDouble(ConfigurationManager.AppSettings["MinNumber"].ToString())%>'

 

 

MaxValue='<%#Convert.ToDouble(ConfigurationManager.AppSettings["MaxNumber"].ToString())%>'

 

 

>

 

 

<NumberFormat AllowRounding="True" KeepNotRoundedValue="False" />

 

 

<ClientEvents OnKeyPress="disableEnterKey" />

 

 

</telerik:RadNumericTextBox>

 



 

Neeraj
Top achievements
Rank 1
 answered on 22 May 2009
3 answers
75 views
Hi,

My pages was working fine, and don't know what reasons that cause the "Sys is undefined" error message.  I searched some suggestions which did not help much.  I tried to remove RadScriptManager from my page and replace with ScriptManager then I get the error "Telerik is undefined". 

And all my selected skins disappear. 

Regards,

Duy
Daniel
Telerik team
 answered on 22 May 2009
2 answers
91 views
I have a user control, say MyControl.ascx that includes on it a PanelBar.

I want the developer to be able to assign an event handler for the PanelBar's ItemDataBound event.

ATM, they are having to do this programmatically saying something like this...
protected void Page_Load(object sender, EventArgs e) 
  // Load the control, then 
  MyControl.PanelBar.ItemDataBound += ...             
I'd like 'em to be able to do it declaritively....
<uc1:MyControl runat="server" ID="MyControl" OnPanelBarItemDataBound="..." /> 
Is this even possible?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 22 May 2009
1 answer
99 views
We have a grid in our application that works fine except for when we add validation tags for some of the fields.

This is what the lines look like when adding data:
http://mrflippy.net/images/telerik/beforeSubmit.jpg

When the "Insert" button is pressed, the rendering on the drop downs breaks:
http://mrflippy.net/images/telerik/afterSubmit.jpg

The drop down columns are GridDropDownColumns. There is a standard asp.net required field validator on the Stock/Part # field. This field is a GridTemplateColumn (using the "Convert to Template Column" function in the property builder). We added the validator tag in the EditItemTemplate after the edit text box.

The validation itself seems to work fine.

If we hit the cancel button and then add a new row, the issue does not reoccur.

Any idea what's going on here?

Edit:
RadControls for ASP.NET AJAX Q3 2008
Visual Studio 2008, but using .NET 2.0
Behavior seen in both IE 6 and Firefox 3
Sebastian
Telerik team
 answered on 22 May 2009
1 answer
86 views
Hi

In the week view it shows the start and end dates of the week in the navigation/header area?
Could you tell me how i go about getting hold of these start and end dates for the currently selected week please?

Thanks
Andrew
Top achievements
Rank 1
 answered on 22 May 2009
1 answer
121 views
Hi everybody.
I'm a little confused here with the process to create a custom skin for the RadControls.

I got a RadMenu, RadPanelBar and RadDecorator custom skins.
I followed the instructions explained here: http://www.telerik.com/community/forums/community-forums/design/telerik-skinning-tutorial.aspx
Basically says that you take one existing skin, customize the images and the corresponding css file and that's all.
Well, this works great.

BUT I got a problem. This skins and controls are from the Rad Controls for Asp.Net Ajax Q3 2008.
I have to upgrade and use Rad Controls for Asp.Net Ajax 2009.
And the skins now are broken, they are not being rendered correctly and now they look ugly  and the reason is that the WebResources.css file that is created behind the scenes is affecting the current skin styles.

So , what is the point of creating custom skins that will work only for one version of the Telerik Controls?
Is there a way to avoid this problem?
What is exactly WebResources.css?

Thank you

Alex Gyoshev
Telerik team
 answered on 22 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?