Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
I am building a small photo gallery where individual items can have a caption associated with them and changing this value is completed with a simple radprompt() call. The problem I have run into is since user's could enter characters that would break javascript (such as apostrophe's) I do an HtmlEncode on the original value which is filled into the prompt box as the default value. When the prompt displays though, the HtmlEncoded characters (such as &#39 for an apostrophe) are shown in the prompt box which is obviously not ideal. Is there a way to get the correct characters to show for the default value?
Marin Bratanov
Telerik team
 answered on 28 May 2012
1 answer
146 views

Team,

I am using telerik combobox containing check box in it.

(referred URL: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx )

I have a following requirement in my application

1.Change “Check All” label to “Select All”

2.I want to check if all items are checked using “Check All” option on client side because I have notice that  OnClientItemChecked

Event Is not get triggered when all items are checked using  “Check All” option  is there alternate way for this?  

3. Whenever I select items using checkbox all checked item get displayed in combo text with comma separator but the time when focus lost from the combobox only first selected item get display in combo text. It is working proper in a demo. Can you please let me know what can be the cause of this behavior?

Thanks in advance                         

Princy
Top achievements
Rank 2
 answered on 28 May 2012
1 answer
50 views
I have a treeview within a RadPan which is inside a radSplitter which is inside a MasterPage. The nodes are dynamically created and the NavigateUrl looks like this :
cn.NavigateUrl = "Secure/" & row("NavigateURL").ToString() 

The HTML source for a particular node looks like this:
href="Secure/TaskManager.aspx"

On the click of the node I get the following error.

The 'href' property had a malformed URL: Cannot use a leading .. to exit above the top directory..

What could be the problem?
Plamen
Telerik team
 answered on 28 May 2012
3 answers
127 views
Customer is requesting the "Remove Link" toolbar button be disabled/unavailable until the cursor is moved onto a link in the editor content. Is this possible to do?

Thanks.
Rumen
Telerik team
 answered on 28 May 2012
2 answers
374 views
I have to set the value of a RadNumerictextBox. The first problem is that it is in a repeater so I cannot get the object by id. And the second problem is, the event is not fired by the NumericTextBox, but by another control in the repeater (in the same line), so I cannot use the sender argument of the function.

I am able to get the parent of the first control (the one that fires the event), and then look through its children and find the many html elements the RadNumerictextBox renders to. But these are html elements and don't expose the client api.

Specifically it renders into a span containing a span and an input. I had assumed that the first span represents the value displayed, and the input the actual value, the one sent back to the server.
I tried to cheat and access these two elements through their classes and set their values, but it doesn't work. The new value shows up for a second and then resets.

tldr: I need a way to access the NumericTextBox and set its value, in a javascript event fired by another control in the same line in a repeater.

If I had not explained my problem clearly enough please say so and I shall attempt to provide you with more details.
Luka
Top achievements
Rank 1
 answered on 28 May 2012
0 answers
135 views
Hello All,

I have a typical problem.I have a grid in one of my panel bar. I am using normal asp grid view. I am getting all the count values and I am binding the data to the grid also by finding the grid

  Sample: GridView grdPropertyType = (GridView)RadPanelBar1.FindItemByValue("propertyType").FindControl("grdPropertyType");
          
grdPropertyType .DataSource=data;(I have count of 10 values)
grdPropertyType.DataBind();

---------------
and I am using the following code to bind the data:


 protected void grdPropertyType_DataBound(object sender,GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                
                Label lblPropertyTypeName = (Label)e.Row.FindControl("lblPropertyTypeData");
                Label lblPropertyTypeCount = (Label)e.Row.FindControl("lblPropertyTypeCountData");
                PropertyListView rowData = (PropertyListView)e.Row.DataItem;
 
                lblPropertyTypeName.Text = rowData.PropertyTypeDesc;
                lblPropertyTypeCount.Text = rowData.PropertyTypeCount.ToString();
 
            }
 
        }

-----------------------Is my code wrong?

My problem is,I am unable to see grid view in the rad panel bar.Can you people help me on that????

Thanks and Regards

Rama.M
 
Rama
Top achievements
Rank 1
 asked on 28 May 2012
2 answers
100 views
This is my design

<telerik:RadMultiPage ID="rdmpPersonal" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="rdpgSalary" runat="server">
            <telerik:RadAjaxPanel ID="rdpnlSalary" runat="server">
                <telerik:RadPanelBar runat="server" ID="rdpbSalary" ExpandMode="FullExpandedItem"
                    Skin="Vista" EnableEmbeddedSkins="false" Width="550px">
                    <Items>
                        <telerik:RadPanelItem Expanded="true" Text="Employee Salary Information" runat="server"
                            Selected="true">
                            <Items>
                                <telerik:RadPanelItem Value="SalaryInformation" runat="server">
                                    <ItemTemplate>
                                        <div class="text" style="background-color: #edf9fe">
                                            <ul class="formList" id="salaryinfo">
                                                <li>
                                                    <asp:Label Width="150px" runat="server" ID="lblSalaryPayRate" AssociatedControlID="rdbtnlstPayRate">What is the Pay Rate?</asp:Label>
                                                    <asp:RadioButtonList ID="rdbtnlstPayRate" runat="server" AutoPostBack="true" RepeatDirection="Horizontal"
                                                        OnSelectedIndexChanged="rdbtnlstPayRate_SelectedIndexChanged" Style="width: 155px"
                                                        ValidationGroup="salaryValidation">
                                                        <asp:ListItem Value="S">Salary</asp:ListItem>
                                                        <asp:ListItem Value="H">Hourly</asp:ListItem>
                                                    </asp:RadioButtonList>
                                                    <asp:RequiredFieldValidator ID="rfvsalaryTypeID" runat="server" ControlToValidate="rdbtnlstPayRate"
                                                        ErrorMessage="Please Select One Pay Rate" ValidationGroup="salaryValidation"></asp:RequiredFieldValidator>
                                                </li>
                                                 
                                        </div>
                                    </ItemTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelBar>
            </telerik:RadAjaxPanel>
        </telerik:RadPageView>
    </telerik:RadMultiPage>

This my code
protected void rdbtnlstPayRate_SelectedIndexChanged(object sender, EventArgs e)
    {
RadioButton rdbtnlstPayRate = (RadioButton)rdpbSalary.FindItemByValue("SalaryInformation").FindControl("rdbtnlstPayRate");
          
      Unable to access rdbtnlstPayRate .SelectedValue can some one tell where I went wrong
    }
Peter
Telerik team
 answered on 28 May 2012
10 answers
290 views
  • ASP.net 2010/4.0
  • OS: Wiindows XP Pro
  • IE9
  • newest version of Telerik as of Jan 2012 (dont have that here with me now)
  • vb.net

I have a Radlistbox that is taller than the table that contains it.  I was tasked with creating up and down buttons that the user can use to scroll the Radlistbox up and down.  I created that and I able to scroll up and down a div with no issue  however when I try to do this with the Telerik RadListbox it does not work, using "getElementByID("MyListBox"), that does not work.

I researched the Radlistbox and found that it includes a div so what I did was look in the source code ("view source") of the page and found the name of that div and then tried using that exact name to scroll but nothing happens there.  It appears that the javascript finds the control because it does not error but it is simply  not moving that but the same code works good for a normal div.
Does anyone know  how to solve this? 

In the source code I see that Radlistbox uses 3 different stylesheets that are all online.  I was able to look at one of them last night and wondering if one of the stylesheets for the Radlistbox has some kind of setting that keeps the Radlistbox from being able to be manually scrolled by using a button.

so the question I have is  how can  you use buttons (ex:  UpButton and DownButton) to scroll a RadListBox?

I apologize that I do not have the exact javascript that I'm using here but when I get home later I can update this post with that.

thanks

MC

Ivana
Telerik team
 answered on 28 May 2012
1 answer
46 views
We are still on an older version of the controls for .net 2.0 and cannot upgrade for another month or two.  We need to implement the filtering that ConvertInlineStylesToAttributes does now though.  Could you provide some javascript that would allow us to run this type of cleanup now? 
Rumen
Telerik team
 answered on 28 May 2012
2 answers
84 views
Hi there

I have a total column on one of my grid columns, by using the following code:
applicationValueTotal += Double.Parse(dataItem["ApplicationValue"].Text);
.
.
.
GridFooterItem footerItem = (GridFooterItem)e.Item;           
footerItem["ApplicationValue"].Text = "R " + applicationValueTotal;
This works great, but it only gives me the total of the current "visible" records.

I want it to show me the results of the whole dataset at that point and then a sub total for the current visible records.
I also use filters so basically I would like the following:

for example a total of 50 records, 10 per page
full dataset on first page load: sub total = applicationValueTotal Grand Total = 50 records' applicationValue

filter applied: sub total = applicationValueTotal Grand Total = x records returned' applicationValue

I can't query this directly out of the database as client side filters might be applied.

Any ideas?

Jako
Top achievements
Rank 1
 answered on 28 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?