Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
372 views
I am trying to show the radalert dialog box using the AjaxPanel.ResponseScript.add function.  Whats interesting is that it does work if I write static text in the radalert function, but I want the error message to display back to the user.

 
<VB.NET>
-------------------

 

 

Catch ex As Exception

 

 

 

    Me.RadAjaxPanel1.ResponseScripts.Add("radalert('" & ex.Message & "')")  '' < Doesn't work>

 

 

 

    Me.RadAjaxPanel1.ResponseScripts.Add("radalert('A error occurred. ')")  '' < Works >

 

 

 

End Try

 


I want the radalert to dynamically display the text of the error message  in the dialog box.  I dont want to have static text.  What am I doing wrong?
Dan
Top achievements
Rank 1
 answered on 20 Jul 2011
1 answer
73 views
Hi,

I generate create a EditorToolGroup in code behind like this:

Public Shared Sub AddEditorToolbarGroup(ByRef ed As RadEditor)
      Dim tg As New EditorToolGroup
      tg.Tag = "EmoticonsGroup"
      AddIconsDropDown(tg, EtnicGroup.Afro)
      AddIconsDropDown(tg, EtnicGroup.Hindi)
      AddIconsDropDown(tg, EtnicGroup.Java)
      AddIconsDropDown(tg, EtnicGroup.Indian)
      AddIconsDropDown(tg, EtnicGroup.China)
      AddIconsDropDown(tg, EtnicGroup.Bakra)
      ed.Tools.Add(tg)
  End Sub
  Private Shared Sub AddIconsDropDown(ByRef etg As EditorToolGroup, ByVal etnicity As String)
      Dim smileys As Dictionary(Of String, String) = EtnicSmileys(etnicity)
      'Dim sp As EditorSplitButton = New EditorSplitButton("Emoticons_" + etnicity)
      'sp.Text = "Emoticons_" + etnicity
      'sp.ImageUrl = "Smiley/Smiley_Afro_Happy.gif"
      'For Each smiley As KeyValuePair(Of String, String) In smileys
      '    Dim img As String = String.Format("<img src='Smiley/{0}.gif' height='22' widht='22' onmouseover='this.width=40;this.height=40;' onmouseout='this.width=22;this.height=22;'>", smiley.Value)
      '    Dim url As String = String.Format("Smiley/{0}.gif", smiley.Value)
      '    'sp1.Items.Add("<img src='icons/1.gif'>", "icons/1.gif");
      '    sp.Items.Add(New EditorDropDownItem() With {.Name = img, .Value = url})
      'Next
      'etg.Tools.Add(sp)
      Dim edd As EditorDropDown = New EditorDropDown() With {.Name = "Emoticons_" + etnicity, _
                                                             .Text = "Emoticons_" + etnicity, _
                                                             .Width = Unit.Pixel(22), _
                                                             .ImageUrl = String.Format("./Smiley/Smiley_{0}_Happy.gif", etnicity), _
                                                             .ItemsPerRow = 6, _
                                                             .ShowIcon = True, _
                                                             .ShowText = False _
                                                            }
      For Each smiley As KeyValuePair(Of String, String) In smileys
          Dim img As String = String.Format("<img src='Smiley/{0}.gif' height='22' widht='22' onmouseover='this.width=40;this.height=40;' onmouseout='this.width=22;this.height=22;'>", smiley.Value)
          Dim url As String = String.Format("Smiley/{0}.gif", smiley.Value)
          'sp1.Items.Add("<img src='icons/1.gif'>", "icons/1.gif");
          edd.Items.Add(New EditorDropDownItem() With {.Name = img, .Value = url})
      Next
      etg.Tools.Add(edd)
  End Sub

The dropdowns are filled as expcted, but the dropdown should display my ImgUrl Icon, not te .Text property...
I prefer to use the EditorSplitButton, but it has the same problem: no icon image! I'm sure the path to the icon is correct, since the items are filled properly... What am I doing wrong here?

TIA,
Alex
Rumen
Telerik team
 answered on 20 Jul 2011
3 answers
147 views
Hello guys,
I just tried to upgrade a solution to the Q2 release. Previously, the projects were Telerik Web Applications that were using the 2011.1.621.35 release. Attempting to upgrade through the Telerik menu item upgrade wizard loads the proper dialogs, backs up the projects properly, but fails with the following error after it has removed the references to the Telerik dlls in the project. The error is:

Error executing custom action
Telerik.Web.UI.VSX.Actions.UpdateReferencesAction: Object reference not set to an instance of an object.

The dlls are not automatically added and the upgrade process stops. Also tried the Convert to Telerik Web Application option as well after the upgrade wizard had removed the telerik dlls from the project. This error occurs immediately on the first project it tries to upgrade in the solution.
Andrey
Telerik team
 answered on 20 Jul 2011
6 answers
285 views
Hi Telerik's team,

I would like to change the RadGrid context language according to the selected culture as recommended by Microsoft. For example, the "Add new record" button, "Refresh", "Go to page", "Change", "Go", "Page size" ...
How can we achieve this ?
I'm using DotNetNuke and this works with a few easy changes in RadEditor, I hope it works the same in RadGrid :)

Thank you

S.F.
Erik
Top achievements
Rank 2
 answered on 20 Jul 2011
1 answer
63 views
Hi,

I'm evaluating the Grid control with hierarchy (master table with a detail table). I've enabled the pager for both tables, and I've noticed the PageSizeLabelText is not applied in the pager of the detail table (I've used your sample Hierarchy/Declarative relations).

Is that a designer bug? I can change the label from server code, but not from the designer property.

Regards,
John.




Tsvetoslav
Telerik team
 answered on 20 Jul 2011
4 answers
84 views
Hi All

how are u 
I have problem when  i want to make insert value from database  MS SqlServer  plz
give me any code plz it's can save my appointment in DB i want code plz
thank u for all
Plamen
Telerik team
 answered on 20 Jul 2011
0 answers
43 views
Hi,

I recently updated the telerik ASP.NET AJAX controls to 2011.1.519.35. The themes for RadTreeView and RadTabStrip  don't show up correctly in debug mode in IE. In release mode and in other browsers it shows up well. Can any one help meout thank you.

Thank you.
s
Top achievements
Rank 1
 asked on 20 Jul 2011
1 answer
122 views
Hi,

I am D.Srinivasa

in my project i have a  RadTreeView  to display a data from DataBase. when i expand a Radtree view parent node then it checks the condition successfully. if the condition satisfies then i want to display a button in my  page. but in my logic it check the condition successfully but it doesn't display the Button in the Page. Button default state is Visible =False.

The following is the code for RadNodeExpand()

Protected Sub RadTreeView1_NodeExpand(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeExpand
PopulateNodeOnDemands(e, TreeNodeExpandMode.ServerSideCallBack)
    End Sub



Protected Function PopulateNodeOnDemands(ByVal e As RadTreeNodeEventArgs, ByVal expandMode As TreeNodeExpandMode) As TreeNodeExpandMode
Dim data As DataTable = GetChildNode(e.Node.Value)
Dim message As String = ""
For Each row As DataRow In data.Rows
Dim node As New RadTreeNode()
node.Text = row("child_code").ToString()
node.Value = row("child_id").ToString()
'node.ExpandMode = expandMode
If row("job_status").ToString() = "NS" Then
Button.Visible=True
node.BackColor = Color.LightSkyBlue
message = message.ToString() + node.Text
MsgBox(message.ToString())
End If
e.Node.Nodes.Add(node)
Next
e.Node.Expanded = True
End Function

Please Help How can i display the Button Dynamically..

Thank You
D.Srinivas
Nikolay Tsenkov
Telerik team
 answered on 20 Jul 2011
1 answer
87 views
I put a menu control in a pane which has a height of 30px. When I click on the menu the dropdown is cut of by the boarder of the pane.
I tried to set the z-index but it didn't work. It doesn't happen with a normal combobox.

How can I fix this?

Thanks in advance ...
Kate
Telerik team
 answered on 20 Jul 2011
3 answers
120 views
Hi,

My solution not allow to open Popup as javascript with call the <%  %> expressions. I'm work with one Usercontrol inside masterpage. How to open showpopup for Date and Time picking as codebehind not javascript?

System.Web.HttpException: La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).

Not workking expressions in my solution

<script type="text/javascript">
          function OnOpen1()
          {
                     <%= RadDatePicker1.ClientID %>.ShowPopup();
            var datePicker = $find("<%= RadDatePicker1.ClientID %>"); 
            datePicker.get_selectedDate();  */
         }
              

Iana Tsolova
Telerik team
 answered on 20 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?