Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
244 views
I want to have the filtering enabled on a GridButtonColumn...filtering based on the text of the LinkButton...is that do able?
mkasuboski
Top achievements
Rank 1
 answered on 13 Jan 2009
4 answers
189 views
I simply cannot figure out how to do this, and feel like I'm probably missing something pretty basic, but I can't figure it out or find anything in the help/forums.

I've got my grid. Each row has a checkbox.

In my header, i'm counting the total records, but I'd also like the count the total that are checked.

HELP!!
Daniel
Top achievements
Rank 1
 answered on 13 Jan 2009
4 answers
175 views
Hi,

I am learning the RADGrid control. The following code of page 459 does not work:

imports Telerik.WebControls  
Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As  
Telerik.WebControls.GridItemEventArgs)  
'Check for GridHeaderItem if you wish tooltips only for the header cells  
If TypeOf e.Item Is GridHeaderItem Then  
Dim headerItem As GridHeaderItem = TryCast(e.Item, GridHeaderItem)  
headerItem("CreditRating").ToolTip = "CreditRating" 
headerItem("PreferredVendorStatus").ToolTip = "PreferredVendorStatus" 
headerItem("ActiveFlag").ToolTip = "ActiveFlag" 
End If  
End Sub 
 First, there's a problem with the namespace.  There is a squiggly line under the namespace explained as follows:

"Namespace or type specified in the Imports 'Telerik,WebControls' doesn't contain any public member or cannot be found.  Make sure the namespace or the type is defined and contains at least one public memeber.  Make sure the imported element name doesn't use any aliases."

So I guess that means that 'WebControls' is not a member of Telerik?

Next, Type 'GridHeaderItem' is not defined.

I deleted the 'Telerik.WebControls' namespace and used the 'Telerik.Web.UI' namespace.  I revised the code to:

Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)  
        'Check for GridHeaderItem if you wish tooltips only for the header cells     
        If TypeOf e.Item Is GridHeaderItem Then  
            Dim headerItem As GridHeaderItem = TryCast(e.Item, GridHeaderItem)  
            headerItem("CreditRating").ToolTip = "CreditRating" 
            headerItem("PreferredVendorStatus").ToolTip = "PreferredVendorStatus" 
            headerItem("ActiveFlag").ToolTip = "ActiveFlag" 
        End If  
    End Sub 

The application ran, but I can not see the Tool tips.  Is there a correction written somewhere for this?

Thanks!
R2
Top achievements
Rank 1
 answered on 13 Jan 2009
4 answers
705 views
are there any examples of how to display a large text field in a tooltip. I have a column on my grid that is truncated and on mouse over I would like the tooltip to display the text. The column is a htmleditcolumn which has no ID field, just a unique name field. i looked through the samples, but they provide much more elaborate scenarios than I have, thanks
Dimo
Telerik team
 answered on 13 Jan 2009
4 answers
121 views
Hello, all

I have an app that utilizes the PanelBar as the toolbar on the left-hand side. There are few textboxes, allowing users to enter some text and click one of the PanelBar item to initiate a search. Could you tell me how that I can capture when users hit the Enter key in order to activate the Search procedure? Thanks in advance.

Tri.
Atanas Korchev
Telerik team
 answered on 13 Jan 2009
3 answers
122 views
Hi,
I would like to know if Telerik have something similar to 'Ajax control toolkit' which microsoft offers.
Thank you
Dimo
Telerik team
 answered on 13 Jan 2009
1 answer
243 views
i know there has been plenty written on this, and i think i have tried it all...so i must be missing something. i still cannot get the upload button to enable on the image manager. following is my code. hopefully you will see something i'm not. i also tried
'~/WebsiteDocuments/xxxsports"

thanks,
susan

 

Dim imagepath() As String = {"/WebsiteDocuments/xxxsports"}

 

WebSportContent2Text.ImageManager.UploadPaths = imagepath

WebSportContent2Text.ImageManager.ViewPaths = imagepath

WebSportContent2Text.ImageManager.DeletePaths = imagepath

And the .aspx:

 

 

<telerik:RadEditor ID="WebSportContent2Text" ToolTip="true" runat="server" TabIndex="1" ContentAreaCssFile="../editorGray.css" Width="700px" Skin="Web20">

 

 

 

 

 

<Tools>

 

 

 

 

 

<telerik:EditorToolGroup>

 

 

 

 

 

<telerik:EditorTool Name="RealFontSize" />

 

 

 

 

 

<telerik:EditorTool Name="AjaxSpellCheck" />

 

 

 

 

 

 

<telerik:EditorTool Name="Cut" />

 

 

 

 

 

<telerik:EditorTool Name="Copy" />

 

 

 

 

 

<telerik:EditorTool Name="Paste" />

 

 

 

 

 

<telerik:EditorTool Name="PasteFromWord" />

 

 

 

 

 

<telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />

 

 

 

 

 

<telerik:EditorTool Name="PastePlainText" />

 

 

 

 

 

<telerik:EditorTool Name="PasteAsHTML" />

 

 

 

 

 

<telerik:EditorTool Name="Undo" />

 

 

 

 

 

<telerik:EditorTool Name="Redo" />

 

 

 

 

 

 

<telerik:EditorTool Name="FormatStripper" />

 

 

 

 

 

<telerik:EditorTool Name="ImageManager" />

 

 

 

 

 

<telerik:EditorTool Name="InsertTable" />

 

 

 

 

 

<telerik:EditorTool Name="ToggleTableBorder" />

 

 

 

 

 

<telerik:EditorTool Name="LinkManager" />

 

 

 

 

 

<telerik:EditorTool Name="Unlink" />

 

 

 

 

 

<telerik:EditorTool Name="InsertSymbol" />

 

 

 

 

 

</telerik:EditorToolGroup>

 

 

<telerik:EditorToolGroup>

 

 

 

 

 

<telerik:EditorTool Name="Indent" />

 

 

 

 

 

<telerik:EditorTool Name="Outdent" />

 

 

 

 

 

<telerik:EditorTool Name="JustifyLeft" />

 

 

 

 

 

<telerik:EditorTool Name="JustifyCenter" />

 

 

 

 

 

<telerik:EditorTool Name="JustifyRight" />

 

 

 

 

 

<telerik:EditorTool Name="JustifyFull" />

 

 

 

 

 

<telerik:EditorTool Name="JustifyNone" />

 

 

 

 

 

<telerik:EditorTool Name="InsertUnorderedList" />

 

 

 

 

 

<telerik:EditorTool Name="InsertOrderedList" />

 

 

 

 

 

<telerik:EditorTool Name="FormatCodeBlock" />

 

 

 

 

 

 

<telerik:EditorTool Name="Bold" />

 

 

 

 

 

<telerik:EditorTool Name="Italic" />

 

 

 

 

 

<telerik:EditorTool Name="Underline" />

 

 

 

 

 

<telerik:EditorTool Name="FontName" />

 

 

 

 

 

<telerik:EditorTool Name="FontSize" />

 

 

 

 

 

<telerik:EditorTool Name="ForeColor" />

 

 

 

 

 

<telerik:EditorTool Name="BackColor" />

 

 

 

 

 

<telerik:EditorTool Name="FormatCodeBlock" />

 

 

 

 

 

</telerik:EditorToolGroup>

 

 

</Tools>

 

 

 

 

 

 

<Content>

 

 

 

 

 

</Content>

 

 

 

 

 

</telerik:RadEditor></td></tr>

 

Rumen
Telerik team
 answered on 13 Jan 2009
2 answers
117 views
When I submit the content in my editor to the database (html) and click save, it writes the text to the database but not the HTML.  Any suggestions? 
WebGeek
Top achievements
Rank 1
 answered on 13 Jan 2009
1 answer
287 views
Hi there,

i am working on telerik. I want the height and width of  my grid should reduce according to window size. For this i am using one java script. This javascript is working for IE and opera,but not working for mozilla. Means, i want to say that by using javascript my grid height and width is getting reduce for IE and opera, but when i will come to Mozilla the height and width is not getting reduce. The javascript coding i am using is: 
<script type="text/javascript">  
             window.onresize = reSize;  
             function reSize()
             {           
               grid = document.getElementById('<%=rgCustomer.ClientID %>');                
               h = 0;
               if(!window.innerWidth)
               {
                   if(!(document.documentElement.clientWidth == 0))
                   {
                   w = document.documentElement.clientWidth;
                    h = document.documentElement.clientHeight;
                  }
                  else
                  {
                    w = document.body.clientWidth;
                    h = document.body.clientHeight;
                  }
             }
             else
             {
               w = window.innerWidth-20;
               h = window.innerHeight-50;
             }
            
             if(h-185 > 120)
             {
               grid.style.height = h-185;
             }
             else
            {
                gridhgt = 15+(grid.getRowCount()*grid.getRowHeight())+grid.getHeaderHeight();
                if(120>gridhgt)
                {
                    if(gridhgt<75 && grid.getRowCount()>=1)
                        grid.setStyle("height", 75);  
                    else if(gridhgt<75)
                        grid.setStyle("height", 57);
                }    
                 else
                 {
                   grid.style.height = 120;
                 }
             }
             if(w-40 > 100)
             {
               grid.style.width = w-40;
             }    
             else
             {
                grid.style.width = 100;
             }        
             };            
            </script>

Can anybody help me to come out of this problem.

Regards.
Vimal Kumar Srivastava
Madhepura,Bihar


Dimo
Telerik team
 answered on 13 Jan 2009
1 answer
130 views
Hi,
I have a grid where in i add template(image) columns and gridbound columns dynamically.
I set visibility to false to some gridbound columns while binding.
I have also enabled client side reordering of columns for the grid.
When i drag a column(gridbound) and drop it inbetween template column, those gridbound columns which i have made invisible during binding become visible.
What should i do to keep the state of the columns?

Regards
Veda
Daniel
Telerik team
 answered on 13 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?