Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
2.1K+ views
Hi All,

New to these controls so please forgive my igmnorance - I have come from an Infragistics background.  I wanted to create a simple page with 3 large buttons which when clicked would take you to the appropriate web page.  Easy I thought!
I declare my button as :-

<telerik:RadButton ID="btnTeamData" runat="server" Text="Team Data" Height="70px" Width="250px" Font-Size="18px" Icon-PrimaryIconUrl="~/Images/indycar_48.png"
Icon-PrimaryIconWidth="48" Icon-PrimaryIconHeight="48" AutoPostBack="False" Icon-PrimaryIconTop="10"
OnClientClicked="btnTeamView_OnClientClicked"
ToolTip="combined data recovered from the Teams">
</telerik:RadButton>

...and I have a javascript function at the top of the page
<script type="text/javascript" language="javascript"> 

function btnTeamView_OnClientClicked()
{
alert('Team View');
document.location.href = './teamview.aspx';
}

</script>

...what's odd is that as soon as the page loads I get the alert and the page tries to jump off to the specified new page.  I haven't clicked the button so why is it calling the OnClientClicked event?  How do I get this to work as I would expect?

Thanks

Slav
Telerik team
 answered on 06 Dec 2011
4 answers
99 views

This question concerns a few controls but any answer here will sort me out with the others.

Basically im tasked with developing an application that will enable registered users to create their own website which can then be maintained by themselves.

These sites will be created instantly once registration is complete. Or at least for now i think i have found how to update IIS with the directory and site settings.

My desire is for each user's site to have option of a set choice of pages, for example one being a scheduler page they can use to manage tasks/events etc.

So im wondering the best way to incorporate a scheduler into each users page (at registration) if they choose this option for their site, as well as how i would maintain that users entries/reminders/content etc so it is maintained when they return. is this already automatically stored somewhere? if so would it be tied to my main site or the users site (sub-domain) ?

im thinking along the lines of a website id record related to page records with this website id but not sure how i then associate controls within these pages for the relevant userid/websiteid/pageid...

this also applies to other controls such as editor as the user would maintain their site content on most pages with this.

thanks for any guidance.

Peter
Telerik team
 answered on 06 Dec 2011
2 answers
89 views
Hi,

I was going through following thread and found that renaming excel sheet is possible only with ExcelML.
http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-set-excel-sheet-name-in-radgrid-export-to-excel-function.aspx

Since above post is a year long, so I was interested in asking whether this feature is already been added to export with HTML or not?

Thanks.
DIT
Top achievements
Rank 1
 answered on 06 Dec 2011
3 answers
107 views
I have radgrid that calles the objectdatasource which calls the data access (DA) to populate the radgrid.
Radgrid has edit form template to update and insert the records.

1.  radgrid is open in edit form ..
2. User enters the NEW values and click the update button.
3. DA is called to update the database.
4. DA throws the exception that business logic rejected the update process ...
5. DA is automatically called to get the data again and  keeps the radgrid in edit mode...  and controls are populated with the original values this results in loss of NEW values entered by the user...

My understanding is that after step 4...  DA should not be called again to populate the edit form with original values.. Rather it should retain the NEW values and give the user a chance to modify these to try again the update process....



My code radgrid1_ItemUpdated is keeping the radgrid open in edit form template but the NEW values are lost as radgrid goes back to the DA to get the original data.  Where as this round trip to database is USELESS...

 

protected void radgrid1_ItemUpdated(object source, GridUpdatedEventArgs e)

 

{

 

if (e.Exception != null)

 

{

e.KeepInEditMode =

true;

 

e.ExceptionHandled =

true;

 


WHY radgrid goes to step 5.. How can i stop it... 

Daniel
Telerik team
 answered on 06 Dec 2011
1 answer
76 views
I have installed the asp.net ajax controls and their not working i did a bit of digging as telrik suggested and got this firebug log 

Sorry I was off for a few days here is the error from firebug

"NetworkError: 404 Not Found - http://localhost:49573/Account/modules/cms/js/libs/modernizr-2.0.6.min.js"
modern....min.js
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ae59a902c%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aac66bdd8%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a92753c09%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a311bfd78%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3aaac1aeb7%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aa07539a3%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ac86a4a06%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a648927c0"
Teleri...48927c0
"NetworkError: 404 Not Found - http://localhost:49573/WebResource.axd?d=iL2Ghm8pdzYzqSLgWdlnq9d33UQ-Kt4BmCBjqtckaMj3vSZjHhJVXEkt5H-kaiTWbSu8w7QJ08xAX19NHKL1zgjEq8xSfTzSxyWoISXgLb41&t=634534317011483291"
WebRes...1483291
"NetworkError: 404 Not Found - http://localhost:49573/Scripts/System.Web.Extensions/4.0.0.0/4.0.30319.237/MicrosoftAjaxWebForms.js"
Micros...orms.js
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=content_RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a63b115ed%3a24ee1bba%3a874f8ea2%3a1569bb5f%3adc7e0bd%3a8547b8b2%3a30f1f089%3af46195d3%3a19620875%3a490a9d4e%3a7c926187%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1"
Teleri...59462f1
"NetworkError: 404 Not Found - http://localhost:49573/Account/modules/cms/js/libs/modernizr-2.0.6.min.js"
modern....min.js
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ae59a902c%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aac66bdd8%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a92753c09%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a311bfd78%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3aaac1aeb7%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aa07539a3%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ac86a4a06%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a648927c0"
Teleri...48927c0
"NetworkError: 404 Not Found - http://localhost:49573/WebResource.axd?d=iL2Ghm8pdzYzqSLgWdlnq9d33UQ-Kt4BmCBjqtckaMj3vSZjHhJVXEkt5H-kaiTWbSu8w7QJ08xAX19NHKL1zgjEq8xSfTzSxyWoISXgLb41&t=634534317011483291"
WebRes...1483291
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=content_RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a63b115ed%3a24ee1bba%3a874f8ea2%3a1569bb5f%3adc7e0bd%3a8547b8b2%3a30f1f089%3af46195d3%3a19620875%3a490a9d4e%3a7c926187%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1"
Teleri...59462f1
"NetworkError: 404 Not Found - http://localhost:49573/Scripts/System.Web.Extensions/4.0.0.0/4.0.30319.237/MicrosoftAjaxWebForms.js"
Micros...orms.js
http://localhost:49573/Scripts/System.Web.Extensions/4.0.0.0/4.0.30319.237/MicrosoftAjaxWebForms.js"


I have all the dlls in the bin directory as suggested and have used telerik controls before what could the issue be i have included the error log from firebug above
Bozhidar
Telerik team
 answered on 06 Dec 2011
1 answer
75 views
I observe my pages are weighing more than 143 K of viewstate because of telerik controls (grid/tabstrip). Is there a way the telerik controls can work with ViewState disabled for the page? What is traded off in the process?
Sebastian
Telerik team
 answered on 06 Dec 2011
1 answer
93 views
Hi...all

I am using Radgrid.In one of column in i have drodown.Depeding on the selection in the dropdown ,the values in other column(I used text box inside the column to dispaly integer values ,these integer values change  with drop down selection).I want to find the sum of integer ,as soosn as the values in the text box are changed.how to do it.

Thanks
Prencia
Andrey
Telerik team
 answered on 06 Dec 2011
5 answers
117 views
My boss wants to do recurrence handling his way which is having an actual DB entry for each appointment. And they are being grouped by some common field in the DB. When those appointments are loaded I check for that field and if it's not 0 then I know that this is a recurrent appointment so in AppointmentDataBound event i do the following:

If row.Item(10) = 0 Then
    e.Appointment.RecurrenceState = RecurrenceState.NotRecurring
Else
    e.Appointment.RecurrenceState = RecurrenceState.Occurrence
End If

But when I click on the delete icon the OccurrenceDelete event does not fire. What should I do to fix it? Thanks


Peter
Telerik team
 answered on 06 Dec 2011
1 answer
225 views
Hi,

I have a requirement from our clients. They would like to have up and down buttons ( like you have in list box) to move items up and down in a Rad Grid. They don'T want to use drag and drop functionality already provided with the Rad Grid. Is there a way that I can achieve this with Grid?


Thanks
Andrey
Telerik team
 answered on 06 Dec 2011
0 answers
76 views
Hi Friends,

Here is my scenario,

I have one .aspx page which have one user control and this usercontrol have one RadListView whose itemtemplate is one usercontrol in which we have one label and RadComboBox [RadComboBox creted dynamically in code behind].

I need to gets all the ComboBox inside RadListView using javascript/jQuery.

Please guide me.

Thanks,
Jawahar
jawahar
Top achievements
Rank 1
 asked on 06 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?