Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
hello, can i get the .net framework 1.1 telerik ASP.NET GRID control?

where?
Shinu
Top achievements
Rank 2
 answered on 08 May 2008
1 answer
116 views
Is there any way to attach my own javascript function call to the sort buttons in a RadGrid?  I need to execute javascript code when the sort button is clicked, but before the postback occurs.

I need to suppress an exit confirmation message ("Are you sure you want to leave this page? You have unsaved data etc.") for all links and buttons that keep the user on the same page.  All of the buttons I figured out except for the sort buttons.  In Firefox it doesn't show the exit confirmation at all (maybe because of the AJAX call) but in IE it does, regardless of the value I set for EnableAJAX in the grid.

The sort buttons don't seem to be server controls, so I'm not sure how to get to them in the codebehind.

So I tried to attach my function call with javascript like below ... this works for the first two postbacks but doesn't work after that.  I even tried putting this code in the grid footer in an attempt to make it execute again when the grid is refreshed (but it didn't).   I am out of ideas and would really appreciate some help with this. Thanks!

                            <script language="javascript"> 
                                //the purpose of this script is to suppress the Exit confirmation message in IE 
                                //for the sort links.  problem appears in IE only. appears in footer so that it 
                                //will execute again when a postback occurs in the grid 
                                var links = document.getElementsByTagName("a"); 
                                alert("found links"); 
                                for (var i=(links.length-1); i>=0; i--) 
                                { 
                                    if (links[i].getAttribute("title") == "Click here to sort") 
                                    { 
                                        alert("found a sort button"); 
                                        var cmd = links[i].getAttribute("href").replace("javascript:", ""); 
                                        links[i].onclick = function () { 
                                            suppressConfirmation(); 
                                            eval(cmd); 
                                            return false; 
                                        } 
                                    } 
                                } 
                            </script> 
 
 

Yavor
Telerik team
 answered on 08 May 2008
1 answer
158 views
I have a radgrid on my page and it takes about 40 secs to load. Can you tell me what timer control do you have that will show loading... message to the users while my grid is loading and how do I implement it.
Princy
Top achievements
Rank 2
 answered on 08 May 2008
1 answer
168 views
Hi guys,

I try to create a new appointment in my scheduler, but it seems like there is no default template that is used to create my appointment.  I see the check mark and the cross (buttons to insert or cancel the appointment creation), but no skin is applied on it.

My code looks like this:

<telerik:RadScheduler ID="AvailScheduler" runat="server" EnableEmbeddedSkins="true" Skin="WebBlue" Width="100%" Height="100%" DataKeyField="uniqueId"
                    DataSubjectField="subject" DataStartField="start" DataEndField="end" DayEndTime="21:00:00" SelectedView="WeekView"
                    OnNavigationCommand="AvailScheduler_NavigationCommandClicked" TimelineView-UserSelectable="false" ShowAllDayRow="False" ShowFooter="False"
                    OnAppointmentClick="AvailScheduler_AppointmentClicked" OnAppointmentCommand="AvailScheduler_AppointmentCommand"
                    OnAppointmentInsert="AvailScheduler_AppointmentInserted" OnAppointmentCreated="AvailScheduler_AppointmentCreated" WeekHeaderDateFormat="dd.MM" >
                <AppointmentTemplate>
                    <div style="width: 800px;" >
                        <div><%# Eval("Subject") %></div>
                    </div>
                </AppointmentTemplate>
                <TimelineView UserSelectable="False" />
            </telerik:RadScheduler>


In AvailScheduler_AppointmentCreated, I only update my update panel.  Am I supposed to always create a custom template??  I see many examples that has comething similar to what I use and it works.  I include the WebBlue/Scheduler.WebBlue.css file cause it is the skin I use.  Should I include something else??


Thx
T. Tsonev
Telerik team
 answered on 08 May 2008
1 answer
183 views
I really like the new image editor in the image manager.  Is there a way to use this independent of the radedit control?  I have lots of places where it would be ideal to check the dimensions of an uploaded image and then push them to the image editor if it is not the proper porportions.   Maybe this is really simple and I'm missing something, but it seems like this is currently embedded into the editor where it would be great to use with the upload also.

Thoughts
Shaun Peet
Top achievements
Rank 2
 answered on 08 May 2008
0 answers
121 views
Hi

I am using RadEditor  in a sharepoint site as  a list column .

It was working fine before .But  suddenly control started throwing an exception when i tried to upload a image using  image manager of the control

 

Server Error in '/' Application.

Invalid path. Could not get SPFolder.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Invalid path. Could not get SPFolder.

Source Error:

An unhandled exception was generated during

Thanks in advance
veda
Top achievements
Rank 1
 asked on 07 May 2008
1 answer
134 views
I am trying to prohibit users from entering letters in the date picker. What is the preferred way of going about this without a javascript workaround?

Thank you.
Todd Anglin
Top achievements
Rank 2
 answered on 07 May 2008
5 answers
1.1K+ views
What is the proper technique to cancel a button clicked on the RadToolBar.

Simplistically, I'd like to do something like the following in code behind:

Me.RadToolBar1.Items(1).Attributes.Add("onclick", "if(!confirm('Are you sure you want to delete this item?')) return false;") 

But this JavaScript does not cancel the call back to the server.

Any ideas?

Thanks.

--David
Roberto
Top achievements
Rank 1
 answered on 07 May 2008
2 answers
180 views
Hi,

  I have a search textbox and button on page. Grid is also on same page. I need to refresh it everytime user clicks on serach button. Thing is I am only retriving 20 rows at a time and using VirtualItemCount to page thru others. On dgUsers_ItemDataBound I have to use Class objects and get some values to assign to hypUserId. Ajax doesn't work when I create a new instance of class.  It doesn't refresh when I remove alert('hi') and when it works without alert and class, it doesn't always refreshes grid. What I am doing wrong?
Pls. help..

This is the code I am using on button click.

$find(

"<%=AjaxManager.ClientID%>").ajaxRequest("SEARCH");
alert(
'hi');

Ajax manager settings -

<

telerik:RadAjaxManager ID="AjaxManager" runat="server" OnAjaxRequest="AjaxManager_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="AjaxManager">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panel"  />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="btnSearch">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panel"  />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

And this is the grid.

<

asp:PlaceHolder id="panel" runat="server">
<telerik:RadGrid ID="dgUsers" runat="server" AllowCustomPaging="true" AllowMultiRowSelection="false"AllowPaging="True" AllowSorting="false" AutoGenerateColumns="false" OnItemDataBound="dgUsers_ItemDataBound"
OnNeedDataSource="dgUsers_NeedDataSource" OnPageIndexChanged="dgUsers_PageIndexChanged" PageSize="20" Visible="false">
<PagerStyle mode="NumericPages" AlwaysVisible="true" />
<MasterTableView><Columns>
<telerik:GridTemplateColumn HeaderText="User ID" UniqueName="PersonId">
<ItemTemplate >
<asp:HyperLink ID="hypUserId" runat="server"></asp:HyperLink>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Email" UniqueName="email">
<ItemTemplate>
<asp:Label ID="lblEmail" runat="server"></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:radgrid>
</asp:PlaceHolder>

thanks.

shamley
Top achievements
Rank 1
 answered on 07 May 2008
7 answers
240 views
I am using a custom skin for the RadEditor.
I have created the skin from the existing skin WebBlue.
Copied the css and image folders and renamed the files with myskin name.
EnableEmbeddedSkins="false" 
After setting property. and skin = customskinname
Now the Radeditor looks with the skin, but when i open the ImageMap dialog,
The buttons are displayed in "Black" color i.e default skin color.

Please let me know
what more changes do i need to make?
 
Todd Anglin
Top achievements
Rank 2
 answered on 07 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?