Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 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
161 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
333 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
124 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
101 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
57 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
135 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
111 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
141 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
1 answer
197 views
Hi,


I am using Radgrid control for my custom Grid control. I am simply wrapping all the properties to RadGrid control internally.
So i wrapped 'AllowAutomaticUpadates' property also.

When i am using my custom grid and set the 'AllowAutomaticUpadates' property from Property window as 'True', The below Bold and Italian font code adding to design code:

 

 

<CSP:CSPGrid ID="ClientiGrid" runat="server" AutoGenerateColumns="False" AutoGenerateHierarchy="True"

 

 

 

GridLines="None" Skin="Web20" AllowAutomaticUpdates="True">

 

 

 

<ClientSettings ColumnsReorderMethod="Swap">

 

 

 

<DataBinding FilterParameterType="List" ResponseType="Json">

 

 

 

<DataService DataServiceType="AdoNet" />

 

 

 

</DataBinding>

 

 

 

</ClientSettings>

 

 

 

<MasterTableView AllowAutomaticUpdates="True" DataKeyNames="ClienteStudioId"

 

 

 

TableLayout="Fixed">

 

 

 

<columns>

 

 

 

<CSP:CSPGridBoundColumn DataField="ClienteStudioId"

 

 

 

HeaderText="ClienteStudioId" Resizable="false" UniqueName="ClienteStudioId"

 

 

 

Visible="false">

 

 

 

</CSP:CSPGridBoundColumn>

 

 

 

<CSP:CSPGridBoundColumn DataField="RagioneSociale" HeaderText="RagioneSociale"

 

 

 

Resizable="false" UniqueName="RagioneSociale" Visible="true">

 

 

 

</CSP:CSPGridBoundColumn>

 

 

 

<CSP:CSPGridBoundColumn DataField="CodFiscale" HeaderText="CodFiscale"

 

 

 

Resizable="false" UniqueName="CodFiscale" Visible="true">

 

 

 

</CSP:CSPGridBoundColumn>

 

 

 

<CSP:CSPGridBoundColumn DataField="PIva" HeaderText="PIva" Resizable="false"

 

 

 

UniqueName="PIva" Visible="true">

 

 

 

</CSP:CSPGridBoundColumn>

 

 

 

<CSP:CSPGridBoundColumn DataField="Fax" HeaderText="Fax" Resizable="false"

 

 

 

UniqueName="Fax" Visible="true">

 

 

 

</CSP:CSPGridBoundColumn>

 

 

 

</columns>

 

 

 

<CommandItemSettings ExportToPdfText="Export to Pdf" />

 

 

 

<EditFormSettings>

 

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

<ExpandCollapseColumn AndCurrentFilterFunction="NoFilter"

 

 

 

CurrentFilterFunction="NoFilter" DataSecurity="Read" FilterDelay=""

 

 

 

FilterListOptions="VaryByDataType">

 

 

 

</ExpandCollapseColumn>

 

 

 

<RowIndicatorColumn AndCurrentFilterFunction="NoFilter"

 

 

 

CurrentFilterFunction="NoFilter" DataSecurity="Read" FilterDelay=""

 

 

 

FilterListOptions="VaryByDataType">

 

 

 

</RowIndicatorColumn>

 

 

 

</MasterTableView>

 

 

 

<PagerStyle CssClass="rgPager" Mode="NextPrevAndNumeric" Wrap="True" />

 

 

 

</CSP:CSPGrid>

But in RadGrid the above code are not adding.So Please help me in this regards.

Thanks & Regards,
Anita Sahu

 

Mira
Telerik team
 answered on 20 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?