Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hi,
I'm very new to Ajax and am trying to update a RadPanelBar on the Master page from a User Control to display or hide certain options.

The example reads like this:
1. Project page loads Control1, hide RadPanelBarItems (1 thru X) on the Master page
2. Project page loads Control 2, show RadPanelBarItems (1 thru X) on the Master page

The first page to load is Control 1, and I have been able to get #1 above to work, but then if I load Control 2 I don't get #2 above to work.

I am guessing I need to update this panelbar on the Master Page dynamically from the Project Page, but I have tried all of the examples for doing this without any luck.

RadAjaxManagerProxy's Name on the master page: "ram"
RadPanelbar's Name on the master page: "rpbMain"

Project's Page Load:
Dim AjaxManagerProxy As RadAjaxManagerProxy = CType(Me.Master.FindControl("ram"), RadAjaxManagerProxy)
Dim PanelBar As RadPanelBar = CType(Me.Master.FindControl("rpbMain"), RadPanelBar)
 AjaxManagerProxy.AjaxSettings.AddAjaxSetting(rsProjects, PanelBar)

Both Dim'd objects always return as nothing and I get an object ref not set error.

Thanks,
Jason
Iana Tsolova
Telerik team
 answered on 19 Apr 2011
3 answers
101 views
Hello,

I am trying to use the treeview in the RadComboBox: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=combobox

I'm having two issues I can't figure out why:

1. The text of the item isn't changing when disabled.  When the control is disabled to prevent the user from changing the value, the value is not changing when set from server-side code.  I have rcbCode.Items[0].Text = "New Value", but the old value still appears.
2. Initially, when hitting the drop down the first time, the drop down is pretty small, but later on it returns to the correct size.  I am explicitly setting a CSS class for the drop down at 500px, but the first time it drops down to 200px.

Any ideas why?

Thanks.
Dimitar Terziev
Telerik team
 answered on 19 Apr 2011
3 answers
57 views
Hi!

Is there any way for localization of help help page in multiple languages?

I have seen this topic but proposed approach will work only for 1 language.
Rumen
Telerik team
 answered on 19 Apr 2011
1 answer
81 views
If i select a radio button control and then i can't deselect it..!!!

Is their any option to use the radio button group..??
Rumen
Telerik team
 answered on 19 Apr 2011
1 answer
67 views
I am considering using RadEditor in a system for the production of letters based on standard templates.
Some letter templates have paragraphs that have legal content, and so only certain parts of these letters can be edited.

Is there a way to prevent a user from editing certain paragraphs or areas within RadEditor?
Rumen
Telerik team
 answered on 19 Apr 2011
1 answer
96 views
Hello All,

I am using RadEditor version 2008.03.1016.35 its working fine with Fire-Fox but I am not able to write anything in Google chrome as the editor is not enabled for writing. Similarly I am facing issue with radCalender the pop-up calender is not getting displayed so I am not able to select any date in google chrome. Plz help. :(
Rumen
Telerik team
 answered on 19 Apr 2011
1 answer
58 views
Hi,

My main issue is that my insertCommand is only picking up (and inserting it) the top item from the combobox and NOT the "Selected Item".  What is missing in this code in order for my query to recognize the "Selected item " from my combobox.  Here are the relevant pieces of my code:

<SCRIPT runat="server">

 Sub On_Click(ByVal source As Object, ByVal e As EventArgs)
   
        SqlDataSource2.Insert()
 
 End Sub 'On_Click
</SCRIPT>

|
|
|
|-----------more code
|
|
|

        <tr>
            <td>
                Categroy:
            </td>
            <td>
                <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource2"
                    AppendDataBoundItems="true"
                      DataTextField="Category" DataValueField="CatId" Skin="Windows7"
                      DropDownWidth="298px" EmptyMessage="Choose a Category" HighlightTemplatedItems="true"
                            EnableLoadOnDemand="true" Filter="StartsWith" >
                            <HeaderTemplate>
                                <table style="width: 100px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 100px;">
                                            Category Id</td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 100px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 100px;">
                                            <%# Eval("CatId")%>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
               </telerik:RadComboBox>
            </td>
        </tr>

|
|
|
|-----------more code
|
|
|

        <tr>
            <td colspan="2">
                <br />
                <br />
                <asp:Button ID="btnAdd" runat="server" Text="Add New" OnClick="On_Click" />
            </td>
        </tr>

|
|
|
|-----------more code
|
|
|

    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MUNTERSJMmlConnectionString %>"       
        SelectCommand="SELECT  MCategories.CatId FROM  MCategories"
        InsertCommand="INSERT INTO MProducts (CatId) VALUES (@CatId)">
        <insertParameters>
            <asp:ControlParameter Name="CatId" ControlId="RadComboBox1" PropertyName="SelectedValue" />
        </insertParameters>
    </asp:SqlDataSource>

Dimitar Terziev
Telerik team
 answered on 19 Apr 2011
1 answer
93 views
Hi,

My main issue is that my insertCommand is only picking up (and inserting it) the top item from the combobox and NOT the "Selected Item".  What is missing in this code in order for my query to recognize the "Selected item " from my combobox.  Here are the relevant pieces of my code:

<SCRIPT runat="server">

 Sub On_Click(ByVal source As Object, ByVal e As EventArgs)
   
        SqlDataSource2.Insert()
 
 End Sub 'On_Click
</SCRIPT>

|
|
|
|-----------more code
|
|
|

        <tr>
            <td>
                Categroy:
            </td>
            <td>
                <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource2"
                    AppendDataBoundItems="true"
                      DataTextField="Category" DataValueField="CatId" Skin="Windows7"
                      DropDownWidth="298px" EmptyMessage="Choose a Category" HighlightTemplatedItems="true"
                            EnableLoadOnDemand="true" Filter="StartsWith" >
                            <HeaderTemplate>
                                <table style="width: 100px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 100px;">
                                            Category Id</td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 100px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 100px;">
                                            <%# Eval("CatId")%>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
               </telerik:RadComboBox>
            </td>
        </tr>

|
|
|
|-----------more code
|
|
|

        <tr>
            <td colspan="2">
                <br />
                <br />
                <asp:Button ID="btnAdd" runat="server" Text="Add New" OnClick="On_Click" />
            </td>
        </tr>

|
|
|
|-----------more code
|
|
|

    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MUNTERSJMmlConnectionString %>"       
        SelectCommand="SELECT  MCategories.CatId FROM  MCategories"
        InsertCommand="INSERT INTO MProducts (CatId) VALUES (@CatId)">
        <insertParameters>
            <asp:ControlParameter Name="CatId" ControlId="RadComboBox1" PropertyName="SelectedValue" />
        </insertParameters>
    </asp:SqlDataSource>

Dimitar Terziev
Telerik team
 answered on 19 Apr 2011
1 answer
48 views
Hi,

I am not able to get the ID from the dropdown to do the insert of the new record based on that selected item from the that dropdown. 
So when I click the "Add file" no record is being saved to the database.

thanks



<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <telerik:RadFormDecorator 
                        ID="RadFormDecorator1" Runat="server" Skin="Windows7" DecoratedControls="Textbox" />
    <div style="padding-left:20px">
    <table width="90%" border="0" cellpadding="5" style="text-align:left">
         
        <tr>
            
            <td align="left">  <div style="font-size: 14pt; font-weight: bold;">
                    Add New Media
                </div>
            </td>  <td align="right" >
                <img src="../images/arrow_back.png" align="absmiddle" /> <asp:LinkButton ID="btnAddMedia" Font-Bold="false"   CausesValidation="false" runat="server" Text="Back to Listings" />
            </td>
        </tr>
         <tr>
            <td><div runat="server" id="successaddmsg" visible="false">
                <img src="../images/accept.png" align="absmiddle" /> 
                <asp:Label ID="Label1" runat="server" ForeColor="green"  Font-Bold="true" Font-Size="12px" Text="Media item was successfully added." />
            </div>
            </td>
            <td>
                <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="validateRadUpload"
                    ErrorMessage="Please select at least one valid media file" fileOnServerValidate="CustomValidator1_ServerValidate" />
            </td>
        </tr>
        <tr>
            <td>
                Categroy:
            </td>
            <td>
                <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource2"
                    AppendDataBoundItems="true" DataTextField="Category" DataValueField="CatId" Skin="Windows7">
                    <Items>
                        <telerik:RadComboBoxItem />
                    </Items>
                </telerik:RadComboBox>
            </td>
        </tr>
        <tr>
            <td>
                Media File:
            </td>
            <td>
                <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None"
                    Skin="Office2007">
                </telerik:RadUpload>
            </td>
        </tr>
        <tr>
            <td>
                Title:
            </td>
            <td>
                <asp:TextBox ID="txtTitle" Width="321px" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Comments:
            </td>
            <td>
                <asp:TextBox ID="txtDesc" Width="321px" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:CheckBox ID="chkShow" Checked="true" runat="server" Text="Make it available on User's Download Page." />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <br />
                <br />
                <asp:Button ID="btnAdd" runat="server" Text="Add file" />
            </td>
        </tr>
    </table>
    </div>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MUNTERSJMmlConnectionString %>"
        SelectCommand="SELECT MediaCategories.CatId, MediaCategories.CatName AS Category FROM MediaCategories ORDER BY CatName ">
    </asp:SqlDataSource>
    <%--
      Upload Large File Setting Requirements:
      Open the file C:\Windows\System32\inetsrv\config\applicationHost.config and find the line:    
<section name="requestFiltering" overrideModeDefault="Deny" />
  
Set the overrideModeDefault property to Allow. So now the line should look like:
<section name="requestFiltering" overrideModeDefault="Allow" />
    --%>
</asp:Content>
Dimitar Terziev
Telerik team
 answered on 19 Apr 2011
1 answer
82 views

Hi, 


We using custom skin for rad controls. The scrollbar looks in IE and Firefox correct but not in google chrome. the result is the same on Telerik demo for rent a car which is a custom skin (clear).  See the attachment.  

Thanks
Regards 
Farid 
Bozhidar
Telerik team
 answered on 19 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?