Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
125 views
Hi,

I got problem with asp:RequiredFieldValidator for RadEditor, but this only happen in IE (I'm using IE 9).
This is my code :

<telerik:RadEditor EditModes="Design" Height="250" Width="700" ID="txtBody" runat="server"
          ToolsFile="~/RadEditorTool.xml" Content='<%# Bind("Body") %>'>
          <CssFiles>
          <telerik:EditorCssFile Value="~/Styles/EditorContentArea.css" />
          </CssFiles>
</telerik:RadEditor>
<asp:RequiredFieldValidator ID="reqtxtBody" runat="server" ControlToValidate="txtBody"
           CssClass="FieldValidator" ErrorMessage="Body has to be set" ValidationGroup="save">
           <asp:Image ID="Image3" runat="server" AlternateText="error" ImageUrl="~/Images/exclamation12x12.gif"
           Width="12" Height="12" />
</asp:RequiredFieldValidator>

The validator doesn't work.
It seems like the ID "txtBody" is not attributed to the RadEditor. But I'm not sure.
Can you help me?

Regards,
Pungkas
Princy
Top achievements
Rank 2
 answered on 08 Jan 2013
3 answers
144 views
Hi,

For some reason, IE will not display my autocomplete with the DropDownHeight that I specify for my RadAutocompleteBox.
The DropDownWidth works just fine but the height does not at all.

I have set the Dropdownheight to "100" and I expect that when I type in something that results in a lot of suggestion items, The suggestions list will be 100px tall with a scrollbar in the control itself. But what is happening is that the suggestions list is just one tall list with no scrollbar and instead the scrollbar appears for the entire browser's client area

In the code behind, if I read the value of the  DropDownHeight property of the control it returns 100px which is what I expect, but for some reason the rendering is not honoring that value :(

I have checked that I have no css overriding any of the a RadAutoCompleteBox properties so I am not sure where to go next. 
FYI: here is the code snippet for my autocomplete box which is basically a straight copy from one of the demo pages on telerik.

<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox3"
                runat="server"
                Width="400"
                DropDownWidth="100"
                DropDownHeight="100"
                DataSourceID="SqlDataSource1"
                DataTextField="State_Name">
            </telerik:RadAutoCompleteBox>

Any pointers or suggestions on how to get to the bottom of this and fix it will be highly appreciated

Thanks
mqsash
Top achievements
Rank 1
 answered on 07 Jan 2013
2 answers
65 views
I am using paired ListBox objects.  When an item is transferred from one to the other, the item row where the transferred item is moved from remains highlighted.  Assume three items in the left ListBox and none in the right.  Click on the top item in the left list box and transfer it to the right.  The result is two items in the left ListBox and one in the right, as expected.  What is unexpected is that the top item in the left ListBox is now highlighted.  I have tried to address the issue in the OnClientTransferred handler with the following:

 sourceBox.clearSelection();
destinationBox.clearSelection();
for (i = 0; i < sourceBox.get_items().get_count(); i++)
{
        var item = sourceBox.getItem(i);
        item.unselect();
        item._unhighlight();
}

That did not resolve the issue.  The following is the tag used to declare the RadListBox:

<telerik:RadListBox ID="lstUnassignedSecurity" runat="server" Width="210px" Height="150px" AutoPostBack="false" 
SelectionMode="Multiple" AllowTransfer="true" TransferToID="lstAssignedSecurity" AutoPostBackOnTransfer="False"
EnableDragAndDrop="true" OnClientTransferred="listTransferring" ButtonSettings-ShowTransferAll="false">
    <Items>
    </Items>
</telerik:RadListBox>.
Bruce
Top achievements
Rank 1
 answered on 07 Jan 2013
1 answer
191 views
Hi 

I have a strange problem with the Gridcheckboxcolumn the row in edit mode (edit in place) . 
For at least one client using Chrome Browser (v 23.0) ,or on IE9, on a PC, the checkbox cannot be toggled. It ignores all clicks! 
All the other fields on the edit form work fine however.

On my Machine (a mac) using Chrome browser of the same vintage (or safari or IE or firefox), there is no issue
with the checkbox column. Checkbox can be toggled as expected.

Can someone give me pointer as to how to address this? I am baffled.

The column is like this:

<telerik:GridCheckBoxColumn DataField="PayOnline" DataType="System.Boolean"
            HeaderText="PayOnline" SortExpression="PayOnline" UniqueName="PayOnline">
            <HeaderStyle Width="30px" />
        </telerik:GridCheckBoxColumn>

I am using Q2 2010 . Site is running on Windows Server 2008 R2 with ASP.NET 4.0

Thanks for help!

Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 07 Jan 2013
2 answers
81 views
Hello, I'm using the following example in the demos (Specifically the server side automatic one using VB code):

http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx

I would like to be able to display/enable a button that is triggered when no match is found for what you have entered, that button would allow you to insert a new row into my table of items bound to the combobox using the text currently typed in the entry section of the combobox.

Are there any examples you can provide of how to do this?


Brock
Top achievements
Rank 1
 answered on 07 Jan 2013
1 answer
113 views

I have a RadChart that will always contain 365 plot points. Each plot points represents a dollar value for a day. The last point being today and the first point being 365 days ago.

I bind a list of a simple object containing properties for Dollar and DateTime to the radgrid.

What I'm trying to figure out is how to display a X-Axis Tick line and Label for the point corresponding to the first of every month.

See my screenshot below with point ranging from Apr 22, 2011 to Apr 21, 2012. The result I am looking for is in purple (Note that I didn't draw out all of the labels, just enough to give an idea):

Link To Screen Shot
Petar Kirov
Telerik team
 answered on 07 Jan 2013
3 answers
70 views
Hi,

I'm using RadControls for ASP.NET AJAX Q3 2012.
I have two list boxes which I want to transfer item between them bidirectional. everything works fine except when I use AllowTransferOnDoubleClick="True". In this case although I set TransferMode="Copy", the items moved when they exist in other list box.

<telerik:RadListBox runat="server" DataKeyField="ClassID" ID="RadListBox2" DataSourceID="SqlDataSource1" DataTextField="ClassName"
 TransferToID="RadListBox1" Style="top: 1px; right: 0px;
width: 191px;"  AllowTransferOnDoubleClick="True" TransferMode="Copy"
 DataValueField="ClassID" OnDataBound="RadListBox2_DataBound">
<ButtonSettings TransferButtons="All"></ButtonSettings>
</
telerik:RadListBox>
<
telerik:RadListBox ID="RadListBox1" runat="server" TransferMode="Copy" AllowTransfer="True" AppendDataBoundItems="True" DataKeyField="ClassID"
 DataSourceID="SqlDataSource2"
  DataTextField="ClassName" TransferToID="RadListBox2" Culture="fa-IR" Style="top: 0px;right: 9px; width: 191px;"
 DataValueField="ClassID"
AllowTransferOnDoubleClick="True" EnableMarkMatches="True"><ButtonSettings TransferButtons="All"></ButtonSettings>
</
telerik:RadListBox>

Where is the problem?!

Thanks for your concern
Kate
Telerik team
 answered on 07 Jan 2013
0 answers
108 views
Hello Guys,

Lets sey I have a grid, which datasource is generic DataTable. Based on contents in datatable there are columns. This works fine so far. But what Im trying to do, Group every two colums with custom title into ColumnGroup. (Except first column). In C#, I cant define those in xhtml, coz those column definitions depends on contents of DataTable as a DataSource. Any ideas, how can I achieve this?

Cheers, Jan
Jan
Top achievements
Rank 1
 asked on 07 Jan 2013
0 answers
78 views

Hi,

In Radgrid I am displaying invoice details like -'Invoice- Legal fee', 'Invoice- expenses' and 'Invoice- discount'.

Below each Invoice I am creating NestedViewTemplate for displaying Invoice's Credit memo details like 'Credit memo- Legal fee', 'Credit memo-  expenses' and 'Credit memo- discount'.

Now for displaying Grand Total for Legal fee, expenses, discount I want to do something like this –

 (Invoice- Legal fee- Credit memo- Legal fee)

(Invoice- expenses' - Credit memo- expenses')

(Invoice- discount'- Credit memo- discount')

This is working properly using

     Protected Sub RadGrid2_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)

            If TypeOf e.Item Is GridFooterItem Then

                Dim footerItem As GridFooterItem = TryCast(e.Item, GridFooterItem)

                If footerItem("Total").Text <> "" Then

                    strCMTotal1 = footerItem("Total").Text

                    strCMLegalSum1 = footerItem("Legal_Fees").Text

                    strCMExpenseSum1 = footerItem("Expenses").Text

                    strCMDiscount1 = footerItem("Discount").Text

                    strCMAdminFees1 = footerItem("%_of_Legal_Fees").Text

                    footerItem("Legal_Fees").Text =  strCMLegalSum1 - strCMLegalSum / 3   â€˜Subtracting Credit memo details from Invoice details

                    footerItem("Expenses").Text = strCMExpenseSum1 - strCMExpenseSum / 3    ‘Subtracting Credit memo details from Invoice details

                    footerItem("Discount").Text =  strCMDiscount1 - strCMDiscount / 3    ‘Subtracting Credit memo details from Invoice details

                    footerItem("%_of_Legal_Fees").Text =   strCMAdminFees1 - strCMAdminFees / 3    ‘Subtracting Credit memo details from Invoice details

                    footerItem("Total").Text =  strCMTotal1 - strCMTotal / 3    ‘Subtracting Credit memo details from Invoice details

                End If

            End If

        End Sub

, but when I search (using grid filter), grand Total is not correct because i am not able to access filtered records and filtered credit memo details. Please suggest.

It’s very urgent. Thanks in advance.

Priya
Top achievements
Rank 1
 asked on 07 Jan 2013
3 answers
196 views
Hi

I am planning to upgrade Telerik controls. We never upgraded our controls since the last time we bought the controls in 2008.

Please can you help me get the steps to upgrade as i want to continue using the old version RadControls for ASP.NET Q3 2008 and slowly change one control at a time to new upgraded version.

Thank you
Kavya M
 
Kostadin
Telerik team
 answered on 07 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?