Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 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
172 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
322 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
217 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
87 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
1 answer
132 views
Very simple scenario...I have a form with a div that is initially displayed.  I have a simple span with an "onclick" that toggles whether the div is displayed using the div's style.display attribute.  The form also has controls on it that do ajax postbacks to update other controls.  Let's say I hide the div client-side, then do an ajax postback.  When the ajax postback is done, the div goes back to being displayed as it was when the form initially loaded.  How can you maintain things that happen client-side with javascript after an ajax postback occurs.  If I hide the div setting style.display = 'none' and then do an ajax postback, i want the div to still be hidden.  Any help?
Martin
Telerik team
 answered on 15 Sep 2009
2 answers
106 views
I found something and I really need this to get working. When using RadBinaryImage inside of XmlHttpPanel. This is super easily reproducable, but if any code needed I will post a small demo project.

Please can you let me know what is the status of this?
Ivan Zlatanov
Top achievements
Rank 1
 answered on 15 Sep 2009
1 answer
47 views
Hi,

I have a RadGrid with a DataSource which is an ObjectDataSource, i have found that renaming the ObjectDataSource to say ObjectDataSource1 to odsDS1, i cannot reference it from the intellisense in the code behind.

I have also found that adding a new ObjectDataSource the object cannot be referenced in the code behind.

This all works find in and ASP.NET page without Telerik controls.

Any ideas?
Martin
Telerik team
 answered on 15 Sep 2009
2 answers
76 views
Hi all,
I have a radgrid. In the rows, I have attachments of word or excel documents. I have made a functionality to open these documents and view them. I want to open these documents and also edit them without downloading on my local machine(ie. the opened document shoudl be editable and it should be saved on the server after edition).
Is there a solution possible?

thanks in anticipation,

Amol Parikh
Amol Parikh
Top achievements
Rank 1
 answered on 15 Sep 2009
6 answers
141 views

Hi,

I have a situation where I have One control that is used to enter Exercise Equipment, it is called the Equipment Maint. This EquipmentMaint has two child controls (programs). One allows you to enter the

type of equipment, the other child control allows you to enter the location of the equipment.

Each child control program uses a RadToolTip to accept the name of the type or name of the location. I am trying to use a

asp:RequiredFieldValidator in each child control program to make sure there is a name entered.

 

When I click on the "Add new Location", the RadToolTip appears that allows me to enter the location name. The problem is that even though I enter the location name, the RadToolTip stays on the screen. I found out that this happens because even though the Type name RadToolTip has not been called yet, the

asp:RequiredFieldValidator placed in both control programs requires both controls to have thier particular name field populated. In other words, even though the Location program RadToolTip name field is populated, its RadToopTip will not go away until the type name is populated, and, even though the type location program RadToolTip name field is populated, its RadToopTip will not go away until the location name is populated
I read this ....

 

6. RequiredFieldValidator inside the RadToolTip
When you use a RequiredFieldValidator inside a RadToolTip you add the RequiredFieldValidator to the page, not only to the displayed in the tooltip part of it. After that, when you click any of your page’s elements which cause validation, those trigger the check of the validator, which fails even if the content of the tooltip is invisible. That is why, in such scenarios you have to set the CausesValidation property to false for all elements on the page that do not require it.

So, I guess my question is obvious - how do I handle validation in this scenario.
Is there a telerik efficient way to do this ?

thanks

IQworks
Top achievements
Rank 1
 answered on 15 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?