Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
95 views
Hi

I've read several posts about people having the same problem, but they were barely solved, and mine differs slightly from the others. I would like to use a RadListBox inside a RadGrid, but it doesn't recognize it. I have it in the toolbox, but Intellisense doesn't list it and if I use it it a warning pops up (unknown element).
Telerik.Web.UI is registered on the page's top and in the web.config.
Please consider these two screenshots: http://yfrog.com/09bild02ojx

Thanks in advance for your answers. Don't hesitate to request further information if necessary :)

Thanks, best
Roman
Roman
Top achievements
Rank 1
 answered on 16 Sep 2009
9 answers
134 views
When I try to add a word to the dictionary I'm getting a dialog box pop up with a 403 forbidden error, suggesting I check some SpellCheckHandler Configuration doc for Rad 3.x.

Please advise.

I'm running WSS3.0 with MOSS 2007 for Search which isn't full blown MOSS 2007....

Thanks
Stanimir
Telerik team
 answered on 16 Sep 2009
1 answer
111 views
How do i change the "loading..." string that shows up when I click on the Radcombobox?
Shinu
Top achievements
Rank 2
 answered on 16 Sep 2009
1 answer
231 views
Hello,


I am trying to do a very simple thing and have found that i am totally lost..

I have a generic page that loads my RadGrid. I have all the proper code in place for this and it returns my data. I want to be able to select a row on RadGrid and then have it populate serveral different radtextboxes. for instance. I have 7 columns in my RadGrid (ticket id/request/research/etc) i want to be able to click on the row and have ticketid populate my ticketid text  box.. etc.. I already have the postback and the "click" working and can populate these textboxes with static data but i want to use the information in the grid... Any help? thanks so much..

Thanks,
Glenn
Shinu
Top achievements
Rank 2
 answered on 16 Sep 2009
1 answer
101 views
Hi guys

I am retrieving a value from a grid bound column in a selected row like this:

Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged  
 
        Dim strName, strVintage As String 
          
        For Each item As GridDataItem In RadGrid1.SelectedItems  
             
            strName = item("Name").Text  
            strVintage = item("Vintage").Text  
            ' do stuff here   
        Next  
End Sub 

The problem arises when I want to tootip the items in the "Name" column.  As part of this process I have to convert the Name column
to a template, but as soon as I do this, the item("Name").Text value retrieved is an empty string.

How can I modify the approach to retrieve the value when the column is converted to a template field?

Sorry if this is very obvious because I have not found a way of doing it! 

Thanks
Clive
Princy
Top achievements
Rank 2
 answered on 16 Sep 2009
1 answer
68 views
I just want to localize the footer string that says  "Page # of #, items # to # of #"
How do i change that string?
Thanks
Princy
Top achievements
Rank 2
 answered on 16 Sep 2009
0 answers
170 views
I found this out today so I thought I would pass it on to help someone else with the same problem.

I have a RadGrid containing two GridDateTimeColumns (plus a few other columns) and I needed to display several rows of this grid so that all the rows were open to edit at the same time. Because of the way we managed the data, the properties for the RadDatePicker, in the GridDateTimeColumns, were set in the ItemDataBound event for the RadGrid. My problem was that once the RadGrid needed to display more than one row conatining these two GridDateTimeColumns then the 2nd and subsequent RadDatePickers would not be rendered correctly. Instead of showing the RadDatePicker popup box image it would show the tooltip text for the RadDatePicker - Open the calendar popup.

The solution was to use the SharedCalendar functionality. I created a hidden RadCalendar and during the ItemDataBound event I set the SharedCalendar property for the RadDatePicker controls and everything renders as I would have expected. have a look at the following demos for more information.

Shared Calendars - http://demos.telerik.com/aspnet-ajax/calendar/examples/design/sunny/defaultcs.aspx

Data Binding in calendars - http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/databinding/defaultcs.aspx
IsolatedStorage
Top achievements
Rank 1
 asked on 16 Sep 2009
7 answers
314 views
hi,

i have a little problem positionning raddock in my scenario.

if i click on the image the raddock show but not at the right position, it's positionning at left = 1 and top = 1 but on a div. it's suppose to be on the screen a thought.

If you move the dock and close it, after that if you click again on the image the dock show a the right position on the screen and not on a div.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestFile.aspx.vb" Inherits="TestFile" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body  style="margin: 0px;  
    padding: 0px;  
    min-height: 100% !important; /*For all browser except IE */   
    height: auto !important;  
    height: 100%; /*IE hack since IE doesn't understand min-height */  
    background-position: center top;  
    width: 100%;  
    position: absolute;  
    top: 0px;  
    left: 0px;  
    background-image: url('./Images/background.gif');  
    background-repeat: repeat-y;"> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div id="DivGlobal" style="padding: 0px;  
    width: 990px;  
    margin: 0px auto 0px auto;  
    position: relative;  
    background-color: #F9F9F9;  
    min-height: 100% !important; /*For all browser except IE */   
    height: auto !important;  
    height: 100%; /*IE hack since IE doesn't understand min-height */   " > 
    <div style="width: 690px;  
    min-height: 100% !important; /*For all browser except IE */   
    height: auto !important;  
    height: 100%; /*IE hack since IE doesn't understand min-height */  
    position: relative;  
    float: left;  
    padding: 0px;  
    margin: 0px;">                              
            <div id="DivContent" style="padding: 0px;  
    margin: 0px;  
    width: 690px;  
    min-height: 100% !important; /*For all browser except IE */   
    height: auto !important;  
    height: 100%; /*IE hack since IE doesn't understand min-height */  
    background-color: #F9F9F9;  
    float: left;" > 
                <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">  
        <script type="text/javascript">  
 
            function ShowDock5() {  
                var dock = $find("<%=RadDock5.ClientID%>");  
                var dockStyle = document.getElementById("<%= RadDock5.ClientID %>");  
                dock.set_height(100);  
                dock.set_width(100);  
                dockStyle.style.left = 1 + "px";  
                dockStyle.style.top = 1 + "px";  
                dock.get_element().style.zIndex = 1999;  
                dock.set_closed(false);  
            }  
        </script> 
    </telerik:RadCodeBlock> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
    </telerik:RadWindowManager> 
    <div style="background-color: #FFFFFF;  
    float: left;  
    min-height: 100% !important; /*For all browser except IE */   
    height: auto !important;  
    height: 100%; /*IE hack since IE doesn't understand min-height */  
    position: relative;  
    width: 825px;  
    padding: 0px;  
    margin: 0px;"> 
    <telerik:RadDock ID="RadDock5" runat="server" AutoPostBack="false"  Resizable="true" CloseText="Fermer" 
        DockMode="Floating" DefaultCommands="Close" Height="1px" Width="1px" Top="1px" Left="1px"  >     
        <ContentTemplate>   
            <asp:Image ID="Image3" runat="server" /> 
        </ContentTemplate>    
    </telerik:RadDock>   
        <div id="imagePreviewPanel" style="display: block;">  
                                        <asp:ImageButton ID="imagePreview" runat="server" ImageUrl="../../Images/Contenu/imagegallery/spacer.gif" Height="192px" 
                                            Width="272px" AlternateText="Photo" BorderWidth="0"    
                                            OnClientClick="ShowDock5(); return false;" 
                                            /> 
                                           
                                    </div> 
    </div>      
            </div>      
        </div> 
    </div> 
    </form> 
</body> 
</html> 
 

code behind
Imports System  
Imports System.Net  
Partial Class TestFile  
    Inherits System.Web.UI.Page  
 
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        RadDock5.Closed = True 
    End Sub  
 
End Class 

someone can help me to understand what's the problem ?

Thanks

Eric
Eric
Top achievements
Rank 1
 answered on 16 Sep 2009
4 answers
210 views
In the Grid,My first column is linkcolumn,if I use " rgClassTreat.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML" will no screen,but no use also have links when I export to excel, I want to the only data, How to di it ?thinks

below My Code:
<
Columns>

                        <telerik:GridButtonColumn CommandName="ReadColumn" UniqueName="CHECK_JOB_ID" DataTextField="CHECK_JOB_ID" ButtonType="LinkButton" HeaderText="ID" SortExpression = "CHECK_JOB_ID"></telerik:GridButtonColumn>

                        <telerik:GridBoundColumn DataField="CUSTOMS_CODE" HeaderText="CODE" SortExpression="CUSTOMS_CODE" UniqueName="CUSTOMS_CODE" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="INPUT_DATE" DataFormatString="{0:d}" HeaderText="DATE" SortExpression="INPUT_DATE" UniqueName="INPUT_DATE" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"> </telerik:GridBoundColumn>

                          <telerik:GridButtonColumn UniqueName="Edit" CommandName="EditColumn" Text="edit" ButtonType="LinkButton" HeaderText=" edit "></telerik:GridButtonColumn>

                        <telerik:GridButtonColumn ConfirmText="Are You Sure?"  ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="Delete" HeaderText="delete" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">

                            <ItemStyle HorizontalAlign="Center" />

                        </telerik:GridButtonColumn>

                    </Columns> 

aspx.cs:

protected void rgClassTreat_ItemCommand(object source, GridCommandEventArgs e)

    {       

        CheckClassTreatController controller = new CheckClassTreatController();

        CheckClassTreatInfo info = new CheckClassTreatInfo() ;

        if (e.CommandName == "EditColumn")

        {

            GridEditableItem item = (GridEditableItem)e.Item;

            string documentID = item.GetDataKeyValue("DOCUMENT_ID").ToString();

            info = controller.GetCheckClassTreatByDocumentID(documentID);

            string url = "window.showModalDialog('CheckClassTreatInput.aspx?DocumentID=" + documentID + "&TreatClass=" + info.TreatClass + "', 'new', 'status:no;dialogWidth:800px;dialogHeight:600px;resizable:no');window.location.reload();";

            pnlInput.ResponseScripts.Add(url);

        }

        else if (e.CommandName == "ReadColumn")

        {

            GridEditableItem item = (GridEditableItem)e.Item;

            string documentID = item.GetDataKeyValue("DOCUMENT_ID").ToString();

            info = controller.GetCheckClassTreatByDocumentID(documentID);

            string url = "window.showModalDialog('CheckClassTreatInput.aspx?DocumentID=" + documentID + "&TreatClass=" + info.TreatClass + "&ReadOnly=" + "', 'new', 'status:no;dialogWidth:800px;dialogHeight:600px;resizable:no');";

            pnlInput.ResponseScripts.Add(url);

        }

}

 

protected void btnToExcel_Click(object sender, EventArgs e)

    {

        rgClassTreat.ExportSettings.ExportOnlyData = true;

        rgClassTreat.ExportSettings.IgnorePaging = true;

        rgClassTreat.ExportSettings.OpenInNewWindow = true;

        rgClassTreat.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;

        rgClassTreat.MasterTableView.ExportToExcel();

    }

 

 

 

 

 

 

 

 

 

xiaolin
Top achievements
Rank 1
 answered on 16 Sep 2009
1 answer
86 views
Hi
How add tooltip to RadGrid when is binding WebSerivce to Client?

Please help ...
ToddT
Top achievements
Rank 1
 answered on 15 Sep 2009
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?