Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
235 views

Hi,

We are using RadEditors Enabled property to turn on and off the control. With the new Q3 2013 update this does no longer work and we getting the following error "Sys.ArgumentException: Value must not be null for Controls and Behaviors".

Currently we have found the following workaround:


//reNotesSystem.Enabled = !readOnly; // Does not work with Telerik Q3 2013!!!
//reNotesStation.Enabled = !readOnly;
if (readOnly)
{
    reNotesStation.EditModes = EditModes.Preview;
    reNotesSystem.EditModes = EditModes.Preview;
    reNotesStation.ToolbarMode = EditorToolbarMode.ShowOnFocus;
    reNotesSystem.ToolbarMode = EditorToolbarMode.ShowOnFocus;
}
else
{
    reNotesStation.EditModes = EditModes.All;
    reNotesSystem.EditModes = EditModes.All;
    reNotesStation.ToolbarMode = EditorToolbarMode.Default;
    reNotesSystem.ToolbarMode = EditorToolbarMode.Default;
}



The work arround is not optimal and we would like to have the old behaviour back.

Kind regards

Robert Warnestam

Ianko
Telerik team
 answered on 28 Jul 2014
4 answers
140 views
Hi,

In your online demo, do the following in IE11:
1. Set the cursor somewhere in the middle of the first block of text
2. Press the Bold button
3. Type some text
4. Unpress the bold button
5. Type some text
6. Repeat step 2-5 a few times

What happens is that sometimes the bold doesn't flip, if I was typing bold it continues with bold even if unchecking...
Can't reproduce this in the previous release, only in 2014 Q1!

Regards
Andreas
Ianko
Telerik team
 answered on 28 Jul 2014
19 answers
531 views
It seems there is a Problem with RadEditor for ASP.net AJAX in IE 11 EDGE Mode!?!
Since I had updated my OS to windows 8.1. nothing happens when i click on any Tool in RadEditor.
Any workaround for me? Adding metaTag to force rendering in IE9 or 10 mode wont work.
Ianko
Telerik team
 answered on 28 Jul 2014
2 answers
144 views
Hello,

I'm working on a project that has a RadWindow.
I have added controls dynamically inside the RadWindow.
I try to close the RadWindow by clicking on a button that is located inside the RadWindow.
However, code execution doesn’t reach the button clicking event.

VB.NET:
Dim btn_PopupAccept1 As New Button()
    
  
    Private Sub Page_Init(sender As Object, e As EventArgs) Handles Me.Init
        With btn_PopupAccept1
            .Text = "Accept"
        End With
  
  
        AddHandler btn_PopupAccept1.Click, AddressOf btn_PopupAccept1_Click
   
    End Sub
 
    Protected Sub RadTreeView1_NodeClick(sender As Object, e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeClick
        Dim myLabel As Label = New Label()
        Dim myTextBox As TextBox = New TextBox()
        Dim myRadio As RadioButton = New RadioButton()
        Dim myCheckBox As CheckBox = New CheckBox()
        Dim spacer As LiteralControl = New LiteralControl(" ")
        Dim br As LiteralControl = New LiteralControl("<br />")
        Dim DivStart As LiteralControl = New LiteralControl("<div style=""padding:15px;""")
        Dim DivEnd As LiteralControl = New LiteralControl("</div>")
        myLabel.Text = "Control " & e.Node.Text
        myLabel.ID = "lbl_PopupControl" & e.Node.Value
        myTextBox.TextMode = TextBoxMode.Number
        myTextBox.ToolTip = "numeric"
  
        RadWindow1.VisibleOnPageLoad = True
        RadWindow1.ID = "RadWindow1"
        RadWindow1.Width = 500
        RadWindow1.Height = 300
        RadWindow1.Modal = True
        RadWindow1.CenterIfModal = True
  
        RadWindow1.ContentContainer.Controls.Add(DivStart)
  
        RadWindow1.ContentContainer.Controls.Add(myLabel)
        RadWindow1.ContentContainer.Controls.Add(spacer)
        RadWindow1.ContentContainer.Controls.Add(myTextBox)
  
        RadWindow1.ContentContainer.Controls.Add(br)
        RadWindow1.ContentContainer.Controls.Add(btn_PopupAccept1)
        RadWindow1.ContentContainer.Controls.Add(DivEnd)
  
    End Sub
 
    Protected Sub btn_PopupAccept1_Click(sender As Object, e As EventArgs)
  
        Dim script As String
    End Sub


ASPX:
<table cellpadding="0" cellspacing="0" class="auto-style1">
            <tr>
                <td class="auto-style2">
                    <telerik:RadTreeView ID="RadTreeView1" Runat="server">
                    </telerik:RadTreeView>
                </td>
                <td>
                     
                    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                    </telerik:RadWindowManager>
  
               
  
                    <telerik:RadWindow ID="RadWindow1" runat="server">
                      
                    </telerik:RadWindow>
                </td>
            </tr>
        </table>


How can I accomplish this??

Thanks,
Daniel.

Daniel
Top achievements
Rank 1
 answered on 27 Jul 2014
4 answers
1.4K+ views
Hi,

I have a radgrid, which has one of the column say Status. The datatype of value for this column Status is bool.
I am setting text of each cell of Status column to depending on some conditions, in the rdgrid_ItemDataBound event.
string str = "A", "AAB", "ABC", "ABCD"
So, depending on some specific conditions met, str can be any of the above values.

If e.item.cell[9].Text == "True"
    e.item.cell[9].Text = "A";

If e.item.cell[9].Text == "False"
e.item.cell[9].Text = "AAB";

If e.item.cell[9].Text == "True" && e.item.cell[7].Text = "False"
e.item.cell[9].Text = "ABCD";

I want to apply string filter on this column. Say I enter "ABCD" in the filter for this column of grid from UI, it should give me result for value "ABCD" only.

Thanks


access
Top achievements
Rank 1
 answered on 26 Jul 2014
1 answer
87 views
function rowSelected(sender, args) {
 
      UserID = getDataItemKeyValue(sender, args.get_gridDataItem());
 
      currentRowIndex = args.get_gridDataItem().get_element().rowIndex;
 
     $find("<%= RadTabStrip1.ClientID %>").set_selectedIndex(0);
 
     MyWebService.GetUserByUserID(UserID, setValues)
}
I tried following link:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/insert-update-delete-client/defaultcs.aspx

and made a project
I change some method name and column name about database.

I made ServiceReference :
<telerik:RadScriptManager ID="ScriptManager1" runat="server">
      <Services>
          <asp:ServiceReference Path="MyWebService.asmx" />
      </Services>
</telerik:RadScriptManager>

but I will got error in JavaScript,MyWebService is undefined

I also tried
RadScriptManager.GetCurrent(this).Services.Add(new ServiceReference(ResolveUrl("MyWebService.asmx")));

but also the same.

Could somebody help me?
I use Windows 8.1,Visual Studio 2012 Professional,SQL Server 2014.
And browser is IE 11.

Hsuani
Top achievements
Rank 1
 answered on 26 Jul 2014
2 answers
197 views
Hi

First post on Telerik Forum, hope will receive satisfactory and quick answer. Excuse me for my English and formatting....
I have created a User Control.ascx, inside it, I have RadFileExplorer.

<telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" EnableAsyncUpload="True" Width="100%">
<Configuration SearchPatterns="*.*" EnableAsyncUpload="True" UploadPaths="~/FolderSource" ViewPaths="~/FolderSource" ></Configuration>
</telerik:RadFileExplorer>

I am populating RadWindow with above UserControl.ascx dynamically. 

<telerik:RadWindow ID="DocumentRadWindow" runat="server" Height="600px" Width="1000px" Modal="true">
        <ContentTemplate>
            <asp:PlaceHolder ID="DocumentPlaceHolder" runat="server" />
        </ContentTemplate>
</telerik:RadWindow

//CodeBehind
   
protected void RadTabStripDocument_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        string TabText = e.Tab.Text;

        if (TabText == "Upload Document")
        {
            UserControl DocumentSort = (UserControl)LoadControl("~/DesktopModules/Document/DocumentUpload/DocumentUpload.ascx");
            
            DocumentPlaceHolder.Controls.Add(DocumentSort);
            DocumentRadWindow.VisibleOnPageLoad = true;
        }
    }

 During Upload,Delete and even clicking on Refresh button, it throws an pupup error "Callback has failed". And nothing happen, except loading image.














Muneer Raza
Top achievements
Rank 1
 answered on 25 Jul 2014
2 answers
128 views
Hi

I use the next code  for change the background the radeditor but the  cursor appears in the center. i use internet explore. I have one question it is a error or exists a bug

Thanks.








Gustavo
Top achievements
Rank 1
 answered on 25 Jul 2014
2 answers
239 views
Hi,

I am using a RadNumericTextbox in a DetailsView control to display a decimal value coming from a SQL query.
The original value from the database is "23,3000" with decimal type.
When displayed in a conventional ASP Textbox, the value is correctly displayed, even when I use:
Text='<%# Convert.ToDecimal(Eval("PriceInclTax")) %>'

When I pass exactly the same value to the RadNumericTextbox, I always get the value "233000" as an integer.

I am using the following code in aspx:

 

<telerik:RadNumericTextBox ID="PriceInclTaxTextBox" runat="server" Value='<%# Convert.ToDecimal(Eval("PriceInclTax")) %>' NumberFormat-DecimalDigits="4"></telerik:RadNumericTextBox>



I tried to change the Culture, NumberFormat-DecimalDigits, NumberFormat-GroupSeparator, NumberFormat-DecimalSeparator and Datatype parameters but with no luck. Another aproach was to divide the result by 10000, but only dividing by 1000 is showing the "comma" in the original value as "233,0000". Dividing by 10000 has the same result as dividing by 1000.
Any help?
JAIME
Top achievements
Rank 1
 answered on 25 Jul 2014
10 answers
538 views

I am using the PivotGrid to connect to the cube. But unless I give permission to Everyone, I can’t connect to the cube using the domain account I have.

 

Here is how I set it up:

 

<OlapSettings ProviderType="Adomd">

    <AdomdConnectionSettings Cube="FCube"

                             DataBase="FirstCube"

                             ConnectionString="Data Source=XXX;Catalog=FirstCube;User Id=xxx\xxx;password=xxxx;">

     </AdomdConnectionSettings>                  

</OlapSettings>

 

Please let me know what I should do.

Maria Ilieva
Telerik team
 answered on 25 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?