Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
121 views
I'm getting this error in IE8 only on my RadAjaxManager.  Works great in Chrome & FF4.  

Webpage error details
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2;
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E;
BRI/2)
Timestamp: Tue, 29 Mar 2011 22:25:34 UTC
 
Message: 'null' is null or not an object
Line: 162
Char: 13
Code: 0


Here's the RadAjaxManager:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="PageLoaded">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Label1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Here's the OnAjaxRequest & OnLoad methods:
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
            if (ajaxManager == null)
            {
                ajaxManager = new RadAjaxManager();
                ajaxManager.ID = "RadAjaxManager1";
                Controls.Add(ajaxManager);
                this.Page.Items.Add(typeof(RadAjaxManager), ajaxManager);
            }
        }
 
protected void PageLoaded(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
        {
            if(e.Argument=="DocumentReady")
                DisplayDates(new DateTime(radCal.FocusedDate.Year, radCal.FocusedDate.Month, 1), new DateTime(radCal.FocusedDate.Year, radCal.FocusedDate.Month, DateTime.DaysInMonth(radCal.FocusedDate.Year, radCal.FocusedDate.Month)));
        }

Here's the javascript:
$(document).ready(function () {
  
            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
            ajaxManager.ajaxRequest("DocumentReady");//THIS IS WHERE THE ERROR OCCURS
              
}

I have a feeling that I'm missing something important, but I'm still pretty new to telerik.  Any help would be appreciated, thanks.
Iana Tsolova
Telerik team
 answered on 04 Apr 2011
1 answer
115 views
I'm just trying to add some top and bottom padding to Level 1 items (the first level below the root level).  I've got a custom default.css class which I copied out of the install folder.

I've been at it for about 2 hours, with no luck.  For some reason, this is really difficult, probably because I'm not a CSS guy.

Aaron    
Shinu
Top achievements
Rank 2
 answered on 04 Apr 2011
1 answer
23 views
  • Can I use these tools in another PC without installing the RadControls for ASP.NET AJAX  Version: 2011.1 315 in that PC?
  • after i design the web application, i will be use it in a another PC, so will the RadControl tools will be appear there if i do not install them in that PC
Sebastian
Telerik team
 answered on 04 Apr 2011
1 answer
89 views
Hi,

I am working on Scheduler.

I have an issue:

There are many people using my scheduler and they setup their appointment with this scheduler. Whoever logs in will have their details like first name and last name entered and is stored in the database tables.
Now, after logging in when they double click on the scheduler to setup an appointment, I want their first name and last name to be displayed on the scheduler overriding of what they want to save. Their first name and last name will be pulled from the database and should be displayed in the scheduler.
How do I do this? Is there any way?
Veronica
Telerik team
 answered on 04 Apr 2011
5 answers
201 views
<telerik:RadGrid ID="rgStatus" runat="server" AutoGenerateColumns="False" BorderStyle="None" Width="100%">
                                      <HeaderStyle HorizontalAlign="Left" Font-Bold="true" BorderWidth="0" BorderStyle="None" />
                                      <ItemStyle BorderStyle="None" BorderWidth="0" />
                                      <AlternatingItemStyle BorderStyle="None" BorderWidth="0" />
                                      <ClientSettings EnablePostBackOnRowClick="false"></ClientSettings>
                                      <MasterTableView>
                                          <Columns>
                                              <telerik:GridTemplateColumn ItemStyle-Width="250" DataField="StsExternalDesc" UniqueName="StsExternalName" HeaderText="Status">
                                                  <ItemTemplate>
                                                      <asp:Label ID="lblStatus" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.StsExternalDesc") %>' />
                                                  </ItemTemplate>
                                              </telerik:GridTemplateColumn>
                                              <telerik:GridBoundColumn ItemStyle-Width="125" DataField="StsDateTime" HeaderText="Date" />
                                              <telerik:GridBoundColumn ItemStyle-Width="99" DataField="StsDateTime" HeaderText="Time" />
                                          </Columns>
                                          <NestedViewTemplate>                               
                                               <table border="0" cellpadding="2" cellspacing="0">
                                                   <tr id="trStsDesc1">                                        
                                                      <td><asp:Label ID="lblStsDesc1" runat="server" Text='<%# Eval("StsDesc1") %>'></asp:Label></td>
                                                   </tr>
                                                  <tr id="trStsDesc2">
                                                      <td><asp:Label ID="lblStsDesc2" runat="server" Text='<%# Eval("StsDesc2") %>'></asp:Label></td>
                                                  </tr>
                                              </table>
                                            
                                          </NestedViewTemplate>
                                      </MasterTableView>
                                         
                                  </telerik:RadGrid>
I see alot of articles on this subject but I am still not able to get it to work. I have   a gridview with 3 columns status,date,time.
For each status there could be some notes associated with it, which if there are notes then show in the nestedtemplate.My issue is if there are no notes I don't want to see the image to expand. If there is a note for a particular status then show the image to expand.Right now my code shows the expand image even if the notes are blank.

 
Pavlina
Telerik team
 answered on 04 Apr 2011
1 answer
139 views
Hello
I have a RadGrid created dynamically in aspx.
Get all the features of the columns of a table in my database and created the radgrid as has been defined.
More or less:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/groupby/defaultcs.aspx

My problem now is that I want to include a filter of this type:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/headercontextfiltermenu/defaultcs.aspx

Do not know how I can dynamically create this part here is done in HTML.


 <HeaderTemplate>
                        <table>
                            <tr>
                                <td>
<asp:LinkButton ID="lnkSort" runat="server" CommandArgument="ShipCity" CommandName="Sort"
Text="Ship city"></asp:LinkButton>

                                </td>
                                <td>
                                    <img src="Img/Menu.gif" style="margin-top: 5px; margin-left: 5px; cursor: pointer"
                                        onclick='ShowColumnHeaderMenu(event,"ShipCity")' alt="Show context menu" />
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblCity" runat="server" Text='<%#Eval("ShipCity") %>'></asp:Label>
                    </ItemTemplate>



Can you help? Thanks
Mira
Telerik team
 answered on 04 Apr 2011
3 answers
96 views
Hello,
is there anyway i could make it so it displays the username on the subject in the calendar?
for example on the calendar should be like

(Joe Smith) Vacation

right now it only shows Vacation with a unique assigned color, but it would be great if it could also display the person name on the calendar.

Thanks,
Veronica
Telerik team
 answered on 04 Apr 2011
1 answer
79 views
Hi,

I recently attached a javascript event handler the client event OnCommand. I noticed that when I select a page using the numeric pager, the command argument for the event is the page number. For instance, I select page 1, the command name is 'Page' and the command argument is 1. When I select page 1 using the master table view set_currentPageIndex, I get the command name 'Page', but the command argument is 0, the index value I passed to the function. This has caused me some difficulty as I don't necessarily have a way of determining how the event was originally triggered.

Obviously it would be preferable if it used either the page number or the index, but not both.

I am currently on 2010 Q2.

Thanks,
Joe

Vasil
Telerik team
 answered on 04 Apr 2011
1 answer
94 views
I'd like to add a date/time field to the advanced template for existing scheduler items that would allow the user to select a date/time combo and have the the event copied to the selected date while retaining that date in the database so that the user could see the date the event was rescheduled to.  Not sure how I would do this - do you have a suggestion as to how I might achieve this?

Maybe instead of a field on template I could handle this with a context menu and an attribute field?  Thoughts?

thanks.
Peter
Telerik team
 answered on 04 Apr 2011
2 answers
122 views
Hi;

I'd like to have the following feature, as you move your mouse over the left side, the right page chnges:
http://crm.dynamics.com/en-us/sales

Which control can offer this functionality?
The closest that I can think of Tab page with vertical tabs and if I can change the behavior to mouse over than click.

Secondly when you click on "Click to Zoom" it dims out the screen and opens a modal window with X to close. Is this something we can do with the current controls?

Thanks!
..Ben
Ben Hayat
Top achievements
Rank 2
 answered on 04 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?