Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
159 views
I have a radlistbox on a page and when the page loads I get this javascript error:

Sys.WebForms.PageRequestManager is null or not an object


Here is the page code:

<

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

<

 

telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">

 

Player Name:

&nbsp;<telerik:RadTextBox ID="radtxtAddPlayer" MaxLength="110" runat="server" /><asp:Button ID="btnAddPlayer" OnClick="btnAddPlayer_Click" Text="Add Player" runat="server" />

 

<

 

telerik:RadListBox ID="radlstPlayerPosition"

 

 

runat="server" height="300px" width="150px"

 

 

DataTextField="PlayerName" DataValueField="nPlayerID" AllowDelete="true"

 

 

AllowReorder="true" AllowTransfer="false" AutoPostBack="True">

 

 

</telerik:RadListBox>

 

 

 

 

</

 

telerik:RadAjaxPanel>

Any ideas why I would get this error?   adding a player works even with the error there???

 

Veselin Vasilev
Telerik team
 answered on 06 Nov 2009
3 answers
197 views
Hello,

I have a RadGrid:

<tel:RadGrid ID="MG" runat="server">
    <MasterTableView DataKeyNames="Key" AutoGenerateColumns="false"
        Width="450px">
        <Columns>
            <tel:GridTemplateColumn HeaderText="Subject">
                <ItemTemplate>
                    <a href='<%# Url.Action("Select", "Messages", new { message = DataBinder.Eval(Container.DataItem, "Key") }) %>'><%# Eval("Subject") %></a>
                </ItemTemplate>
            </tel:GridTemplateColumn>
            <tel:GridBoundColumn HeaderText="Subject" DataField="Subject" />
            <tel:GridBoundColumn HeaderText="Sent" DataField="CreatedDate" DataFormatString="{0:MM/dd/yyyy}" />
            <tel:GridBoundColumn HeaderText="Last Reply" DataField="LastReply" />
            <tel:GridBoundColumn HeaderText="Reply Date" DataField="ReplyDate" />
        </Columns>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="true">
        <ClientEvents OnRowClick="MG_RowClick" />
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</tel:RadGrid>

The MG_RowClick event never fires in my MVC view.  The script is in the same place as my MVC view...   SelectedIndexChanged doesn't fire either.

How do I get that to work?

Thanks.
Georgi Krustev
Telerik team
 answered on 06 Nov 2009
1 answer
133 views
Hello,

I have a grid setup with multiple groups. The groups are year, month and day. By default, all groups should be closed except the one of todays date, that one should be expanded.

I've got the code to retrieve the GridGroupHeaderItem object for the group which matches todays date (year-month-day), and I can expand that. But I need all of the above groups (year, month) to be expanded as well. What is a good way of traversing up the group hierarchy to expand all groups above? I would like to make this function recursive so I can use it again some other time, so it ideally shouldn't be fixed to a number of parent levels.
Mira
Telerik team
 answered on 06 Nov 2009
9 answers
192 views
Hi Folks,

Is it me or should this be simple? I just want to add a progressarea like in the Telerik examples. When I first added it to my project I got the error about it not being registered in the config file, so I put these lines in:

<httpHandlers> 
         
        <add path="Telerik.RadUploadProgressHandler.ashx" validate="false" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler"/> 
         
      </httpHandlers> 
      <httpModules> 
         
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/> 
      </httpModules> 

Now it doesn't throw any error but doesn't actually do anything when I upload a document! Is there a step-by-step guide of how to add a progressarea properly?

Thanks,
IW
Veselin Vasilev
Telerik team
 answered on 06 Nov 2009
1 answer
203 views
Hi,

I just started developing using RadControls for ASP.NET AJAX since last week and I'm stuck with RadTextBox column inside a RadGrid....

I have a RadGrid with parts that look like this:
//------------------------------------------------------------------------
<telerik:RadGrid ID="RadGrid1" .......>
....
<MasterTableView....>
<Columns>
<telerik:GridTemplateColumn UniqueName="D1">
<EditItemTemplate>
<telerik:RadTextBox ID="tb_D1" runat="server" ShowButton="true"...>
</telerik:RadTextBox>
</EditItemTemplate>

....
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
//------------------------------------------------------------------------

I need to either do processing at RadTextBoxButton_OnClick() at server side

OR

pass an integer to a RadWindow form to let user enter a String input and then pass the result back to this grid page for processing.



<buttontemplate> doesn't work for this RadTextBox column inside the grid... so how do I find the button ID of the RadTextBox's button??
and with <buttontemplate> not working, I can't change the appearance of this button right??



Any help will be greatly appreciated.


Thanks
Ryan
Princy
Top achievements
Rank 2
 answered on 06 Nov 2009
1 answer
191 views
I am using RadToolTip in my application to show the help. I have set the property "ManualClose" to TRUE, but I want to display the text right beside the close button, so that when user clicks either text or the button, tooltip gets closed. How can I put the text "Close" beside close button and code it so that desired functionality is achieved.
Georgi Tunev
Telerik team
 answered on 06 Nov 2009
1 answer
116 views
I wanted to know if RadUpload (RadProgressBar) still required Full Trust in the latest 2009 Q3 release. I realize my question is answered in the release notes:
Fixed: RadUploadHttpModule should not throw an exception when an attempt is made to use it in medium trust

I would like to understand more details. Is there functionality difference between Full and Medium Trust?

Thanks!
Sarah
Atanas Korchev
Telerik team
 answered on 06 Nov 2009
3 answers
176 views
Hi there!

I have a link that displays a RadWindow, but when I tried to extend it to display in my extension monitor it doesn't show up, it somewhat extending the page horizontally in the primary monitor.

Is there a way to change its properties  or a script to make it display in the extension monitor?

Hope I can find a solution for this topic.


Here's my script in my sample webproj:

markup:

        <telerik:RadWindowManager ID="WindowManager" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" NavigateUrl="Default2.aspx" runat="server" />
            </Windows>
        </telerik:RadWindowManager>
        <a href="javascript: openWindow();">RadWindow</a>
       
        <script type="text/javascript">

            function openWindow() {
                radopen('<%= ResolveUrl("~/Default2.aspx") %>', "RadWindow1");
        
            }
         </script>



Regards,

Reynald.



Georgi Tunev
Telerik team
 answered on 06 Nov 2009
1 answer
88 views
I have two drop downs (The first AsgTo contains a list of people (it has duplicates) this is why the Value filed is set to the unique id).  I think take this ID and requery the same table for the 2nd drop down (This will be a hidden field that the users wont see).  But how do I make it so RadComboBox1 is bound to the field "procreq_asgto", I cant do "SelectValue=<%# Bind("procreq_asgto")%>" as it comes back with an error because Im binding int he VB code.  Ideas?

                <tr> 
                    <td style="width:25%;">  
                        Team</td> 
                    <td> 
                        <telerik:RadComboBox ID="AsgTo" runat="server" DataSourceID="Asg2SQL" AutoPostBack="true" 
                            DataTextField="mfgasgto_team" DataValueField="mfgasgto_id" MarkFirstMatch="true" EmptyMessage="Select One" 
                            OnSelectedIndexChanged="SelectedIndexChanged" AllowCustomText="true">  
                        </telerik:RadComboBox> 
                        <telerik:RadComboBox ID="RadComboBox1" runat="server" MarkFirstMatch="True">  
                        </telerik:RadComboBox> 
                    </td> 
                </tr>  

    Protected Sub SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)  
 
        'first reference the edited grid item through the NamingContainer attribute   
        Dim editedItem As GridEditableItem = CType(CType(sender, RadComboBox).NamingContainer, GridEditableItem)  
 
        Dim StatusBox As TextBox = CType(editedItem.FindControl("procreq_status"), TextBox)  
        Dim RequestorBox As RadTextBox = CType(editedItem.FindControl("RadTextBox4"), RadTextBox)  
        StatusBox.Text = "1" 
        RequestorBox.Text = Context.User.Identity.Name.ToString()  
 
        Dim PersonValue As RadComboBox = CType(editedItem.FindControl("AsgTo"), RadComboBox)  
        Dim PersonBox As RadComboBox = CType(editedItem.FindControl("RadComboBox1"), RadComboBox)  
        Asg2PersSQL.SelectCommand = "SELECT [mfgasgto_person] FROM [mfg_asgto] WHERE [mfgasgto_id] = " + PersonValue.SelectedValue  
        PersonBox.DataSource = Asg2PersSQL  
        PersonBox.DataTextField = "mfgasgto_person" 
        PersonBox.DataValueField = "mfgasgto_person" 
        PersonBox.DataBind()  
 
    End Sub 
Veli
Telerik team
 answered on 06 Nov 2009
2 answers
289 views
Hi all,

I have a list box with checkboxes. I selected the checkbox depending on the values stored in the database. Now when a user check s or uncheck the boxes and click save i want that to be save in the database the values. I need an event in the server side that i can use to collect the values of the checkboxes that are checked/unchecked by user. I need the code for it. 

Thanks in advance
Uma Mahe
Top achievements
Rank 1
 answered on 06 Nov 2009
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?