Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
203 views
Hi,

I am having requirement, Rad Grid with 2 levels of heirarchy. Parent Grid is having "Google like Filters" and "Pagination".
Based on some condition I am displaying(Show/Hide) the "Expand" symbol. 
Once I click on "Expand" symbol, I get data from DB and load the Child Grid.

I want to expand the Child Grid by default(Once page load, after Filtering).

Can someone suggest me how to proceed on this?
Thanks, Malli
Princy
Top achievements
Rank 2
 answered on 23 Dec 2009
1 answer
81 views
Now we are running into a problem that RadProgressBar can't be displayed in Chrome and Safari. 

We can see the progress bar when we upload files with RadFileUpload in IE and FF. But we can't see it in Chrome and Safari.

The version we currently use is Q3 2009 SP1. 

We can't duplicate this error in demo page.


It is marked as "Answered" now.

Is the problem being fixed in latest version? or we mis-configure something cause this problem?


Veselin Vasilev
Telerik team
 answered on 23 Dec 2009
1 answer
145 views
When i created adavancededittemplate in radscheduler with aspx controls..when i editing i click in appointment how can it open directly without asking these two
1) Edit only the occurence
2)Edit onlyseries...
T. Tsonev
Telerik team
 answered on 23 Dec 2009
5 answers
210 views
I'm running version 2009.2.826.20 of the scheduler.  For some reason my multiday appointment is getting cut of at 5:00 pm.  I tried changing the WorkDayEndTime and the DayEndTime but it still cuts it off.  I tried changeing thes same properties in the DayView but to no effect.  Any Idea's
<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="false" CodeBehind="Scheduler.aspx.cs" Inherits="crm.calendar.Scheduler.Scheduler" MasterPageFile="~/Intranet.Master" %> 
<%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="MPTitle" runat="server">  
    Scheduler  
      
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="MPCaption" runat="server">  
    Scheduler  
</asp:Content> 
<asp:Content ID="Content3" ContentPlaceHolderID="MPContent" runat="server">   
    <script type="text/javascript">  
                var selectedAppointment = null;  
                var contextMenuSlot = null;  
                  
                function checkResourceMenuItem(menu, appointment)  
                {  
                    var calendar = appointment.get_resources().getResourcesByType("Calendar").getResource(0);  
                    if (!calendar)  
                        return;  
                          
                    var categorizeItem = menu.findItemByText("Categorize");  
                    //Traverse all menu items below "Categorize"  
                    for (var i = 0; i < categorizeItem.get_items().get_count(); i++)  
                    {  
                        var item = categorizeItem.get_items().getItem(i);  
                        if (item.get_value() == calendar.get_key())  
                        {  
                            //The item corresponds to the current "Calendar" - the Value of the item stores the Key of the resource  
                            item.set_imageUrl("Images/checked.gif");  
                        }  
                        else  
                        {  
                            item.set_imageUrl("");  
                        }  
                    }  
                }  
                  
                //Called when the user right-clicks an appointment  
                function appointmentContextMenu(sender, eventArgs)  
                {  
                    var menu = $find("<%= SchedulerAppointmentContextMenu.ClientID %>");  
                    selectedAppointment = eventArgs.get_appointment();  
                    checkResourceMenuItem(menu, selectedAppointment);  
                    menu.show(eventArgs.get_domEvent());  
                }  
              
                //Called when the user clicks an item from the appointment context menu  
                function appointmentContextMenuItemClicked(sender, eventArgs)  
                {  
                    if (!selectedAppointment)  
                        return;  
                      
                    sender.hide();  
                      
                    var clickedItem = eventArgs.get_item();  
                    var text = clickedItem.get_text();  
                    var scheduler = $find("<%= rsSecheduler.ClientID %>");  
                      
                    if (text == "Categorize")  
                    {  
                        //Do nothing if the user clicked the "Categorize" menu item  
                        return;  
                    }  
                      
                    if (text == "Delete")  
                    {  
                        scheduler.deleteAppointment(selectedAppointment, true);  
                    }  
                    else if (text == "Edit")  
                    {  
                        scheduler.showInlineEditForm(selectedAppointment);  
                    }  
                    else if (clickedItem.get_parent().get_text() == "Categorize")  
                    {  
                        //The user clicked the item corresponding to the "Calendar" resource to which the appointment is assigned  
                        if (clickedItem.get_imageUrl())  
                            return;  
                          
                        //Clear all resources  
                        selectedAppointment.get_resources().clear();  
                        //Find the resource corresponding to the clicked item  
                        var calendar = scheduler.get_resources().getResourceByTypeAndKey("Calendar", clickedItem.get_value());  
                        //Add it to the appointment resources collection  
                        selectedAppointment.get_resources().add(calendar);  
                        //Update the appointment  
                        scheduler.updateAppointment(selectedAppointment);  
                    }  
                }  
                //Called when the user right-clicks empty time slot  
                function timeSlotContextMenu(sender, eventArgs)  
                {  
                    var menu = $find("<%= SchedulerTimeSlotContextMenu.ClientID %>");  
                    contextMenuSlot = eventArgs.get_targetSlot();  
                    menu.show(eventArgs.get_domEvent());  
                }  
                  
                //Called when the user clicks an item from the time slot context menu  
                function timeSlotContextMenuItemClicked(sender, eventArgs)  
                {  
                    sender.hide();  
                      
                    var text = eventArgs.get_item().get_text();  
                    var scheduler = $find("<%= rsSecheduler.ClientID %>");  
                      
                    if (text == "New Appointment")  
                    {  
                        scheduler.showInsertFormAt(contextMenuSlot);  
                    }  
                    else if (text == "New All Day Event")  
                    {  
                        scheduler.showAllDayInlineInsertForm(contextMenuSlot.get_startTime());  
                    }  
                    else if (text == "New Recurring Appointment")  
                    {  
                        scheduler.showAdvancedInsertForm(contextMenuSlot.get_startTime());  
                    }  
                    else if (text == "New Recurring Event")  
                    {  
                        scheduler.showAllDayAdvancedInsertForm(contextMenuSlot.get_startTime());  
                    }  
                }  
                  
                function SwitchValues()  
                {  
                    SwitchTextBoxValue("_ctl0_MPContent_rsSecheduler_Form_txtTaskTextNew", "<%= hfTaskNotes.ClientID %>" );  
                    SwitchTextBoxValue("_ctl0_MPContent_rsSecheduler_Form_rdpStartDate", "<%= hfStartDate.ClientID %>");  
                    SwitchTextBoxValue("_ctl0_MPContent_rsSecheduler_Form_rtpStartTime", "<%= hfStartTime.ClientID %>");  
                    SwitchTextBoxValue("_ctl0_MPContent_rsSecheduler_Form_rdpEndDate","<%= hfEndDate.ClientID %>");  
                    SwitchTextBoxValue("_ctl0_MPContent_rsSecheduler_Form_rtpEndTime","<%= hfEndTime.ClientID %>");  
                    SwitchTextBoxValue("_ctl0_MPContent_rsSecheduler_Form_ddlAssignedTo","<%= hfAssignedTo.ClientID %>");  
                    SwitchTextBoxValue("_ctl0_MPContent_rsSecheduler_Form_ddlTypes","<%= hfType.ClientID %>");  
                }  
                  
                function SwitchTextBoxValue(txtSource, hfDestination)  
                {  
                    var txtSourceControl = document.getElementById(txtSource);  
                    var hfDestinationControl = document.getElementById(hfDestination);  
                      
                    if(txtSourceControl != null && hfDestinationControl != null)  
                    {  
                        //alert(txtSourceControl.value);  
                        hfDestinationControl.value = txtSourceControl.value;  
                        //alert(hfDestinationControl.value);  
                    }  
                }  
            </script> 
              
    <asp:HiddenField ID="hfTaskNotes" runat="server" /> 
    <asp:HiddenField ID="hfStartDate" runat="server" /> 
    <asp:HiddenField ID="hfStartTime" runat="server" /> 
    <asp:HiddenField ID="hfEndDate" runat="server" /> 
    <asp:HiddenField ID="hfEndTime" runat="server" /> 
    <asp:HiddenField ID="hfAssignedTo" runat="server" /> 
    <asp:HiddenField ID="hfType" runat="server" /> 
 
    <rad:RadScheduler   ID="rsSecheduler" OverflowBehavior="Scroll" ColumnWidth="100px" 
                        AdvancedForm-Enabled="false" MonthView-GroupingDirection="Vertical" 
                         WeekView-GroupingDirection="Vertical" TimelineView-GroupingDirection="vertical" 
                        OnClientAppointmentContextMenu="appointmentContextMenu"   
                        OnClientTimeSlotContextMenu="timeSlotContextMenu"   
                        runat="server"  DayStartTime="7:00" DayEndTime="18:00" 
                        WorkDayStartTime="7:00" WorkDayEndTime="18:00" 
                        DataEndField="EndDate" ShowAllDayRow = "false" 
                        DataStartField="DueDate" ShowFooter="false" 
                        DataKeyField="TaskID" MinimumInlineFormWidth=370 
                        DataSubjectField="TaskNote" 
                        AdvancedForm-Modal="true" HoursPanelTimeFormat="htt" ValidationGroup="rsSecheduler" 
                         RowHeight="60px" 
    > 
        <InlineInsertTemplate> 
            <table> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Start Date:</b> 
                    </td> 
                    <td> 
                        <rad:RadDatePicker ID="rdpStartDate" runat="server" ></rad:RadDatePicker> 
                    </td> 
                    <td> 
                        <rad:RadTimePicker ID="rtpStartTime" runat="server" MaxDate="7:00 pm" MinDate="7:00 am"></rad:RadTimePicker> 
                    </td> 
                </tr> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>End Date:</b> 
                    </td> 
                    <td> 
                        <rad:RadDatePicker ID="rdpEndDate" runat="server" ></rad:RadDatePicker> 
                    </td> 
                    <td> 
                        <rad:RadTimePicker ID="rtpEndTime" runat="server" MaxDate="7:00 pm" MinDate="7:00 am"></rad:RadTimePicker> 
                    </td> 
                </tr> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Assigned To:</b> 
                    </td> 
                    <td colspan="2">  
                        <asp:DropDownList ID="ddlAssignedTo" DataTextField="AMName" DataValueField="UserID" runat="server"></asp:DropDownList> 
                    </td> 
                </tr> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Type:</b> 
                    </td> 
                    <td  colspan="2">  
                        <asp:DropDownList ID="ddlTypes" DataValueField="Value" DataTextField="Text" runat="server">  
     <%--                       <asp:ListItem value="OT">Other</asp:ListItem> 
                            <asp:ListItem value="CA">Call</asp:ListItem> 
                            <asp:ListItem value="EM">Email</asp:ListItem> 
                            <asp:ListItem value="MA">Mail</asp:ListItem> 
                            <asp:ListItem value="ME">Meeting</asp:ListItem>--%> 
                        </asp:DropDownList> 
                    </td> 
                </tr> 
                   <td colspan="4">  
                        <table> 
                            <tr> 
                                <td style="width:29%"  align="right" valign="top">  
                                    <b>Related To:</b> 
                                </td> 
                                <td style="width:45%">  
                                    <asp:LinkButton ID="lbRelatedTo" runat="server"></asp:LinkButton> 
                                </td> 
                                <td align="right" valign="top">  
                                    <b>Created By:</b> 
                                </td> 
                                <td> 
                                    <asp:Label ID="lblCreatedBy" runat="server"></asp:Label> 
                                </td> 
                            </tr> 
                        </table> 
                    </td> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Task Text:</b> 
                    </td> 
                    <td colspan="2">  
                        <asp:textbox id="txtTaskTextNew" runat="server" TextMode="MultiLine" Height="160" CssClass="simple_textarea" Width="100%"></asp:textbox> 
                    </td> 
                </tr> 
            </table> 
            <table> 
                <tr> 
                    <td> 
                        <asp:Button ID="butAddAppointment" Text="Add" CommandName="Insert" OnClientClick="SwitchValues()" runat="server" /> 
                    </td> 
                    <td> 
                        <asp:Button ID="butCancel" Text="Cancel"  CommandName="Cancel" runat="server" /> 
                    </td> 
                </tr> 
            </table> 
        </InlineInsertTemplate> 
         
       <InlineEditTemplate> 
            <table> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Start Date:</b> 
                    </td> 
                    <td> 
                        <rad:RadDatePicker ID="rdpStartDate" runat="server" ></rad:RadDatePicker> 
                    </td> 
                    <td> 
                        <rad:RadTimePicker ID="rtpStartTime" runat="server" MaxDate="7:00 pm" MinDate="7:00 am"></rad:RadTimePicker> 
                    </td> 
                </tr> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>End Date:</b> 
                    </td> 
                    <td> 
                        <rad:RadDatePicker ID="rdpEndDate" runat="server" ></rad:RadDatePicker> 
                    </td> 
                    <td> 
                        <rad:RadTimePicker ID="rtpEndTime" runat="server" MaxDate="7:00 pm" MinDate="7:00 am"></rad:RadTimePicker> 
                    </td> 
                </tr> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Assigned To:</b> 
                    </td> 
                    <td colspan="2">  
                        <asp:DropDownList ID="ddlAssignedTo" DataTextField="AMName" DataValueField="UserID" runat="server"></asp:DropDownList> 
                    </td> 
                </tr> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Type:</b> 
                    </td> 
                    <td  colspan="2">  
                        <asp:DropDownList ID="ddlTypes"  DataValueField="Value" DataTextField="Text"  runat="server">  
     <%--                       <asp:ListItem value="OT">Other</asp:ListItem> 
                            <asp:ListItem value="CA">Call</asp:ListItem> 
                            <asp:ListItem value="EM">Email</asp:ListItem> 
                            <asp:ListItem value="MA">Mail</asp:ListItem> 
                            <asp:ListItem value="ME">Meeting</asp:ListItem>--%> 
                        </asp:DropDownList> 
                    </td> 
                </tr> 
                <tr> 
                    <td colspan="4">  
                        <table> 
                            <tr> 
                                <td style="width:29%"  align="right" valign="top">  
                                    <b>Related To:</b> 
                                </td> 
                                <td style="width:45%">  
                                    <asp:LinkButton ID="lbRelatedTo" runat="server"></asp:LinkButton> 
                                </td> 
                                <td align="right" valign="top">  
                                    <b>Created By:</b> 
                                </td> 
                                <td> 
                                    <asp:Label ID="lblCreatedBy" runat="server"></asp:Label> 
                                </td> 
                            </tr> 
                        </table> 
                    </td> 
                </tr> 
                <tr> 
                    <td align="right" valign="top">  
                        <b>Task Text:</b> 
                    </td> 
                    <td colspan="2">  
                        <asp:textbox id="txtTaskTextNew" runat="server" TextMode="MultiLine" Height="160" CssClass="simple_textarea" Width="100%"></asp:textbox> 
                    </td> 
                </tr> 
            </table> 
              
            <table> 
                <tr> 
                    <td> 
                        <asp:Button ID="butUpdateAppointment" Text="Update" CommandName="Update" OnClientClick="SwitchValues()" runat="server" /> 
                    </td> 
                    <td> 
                        <asp:Button ID="butCancel" Text="Cancel"  CommandName="Cancel" runat="server" /> 
                    </td> 
                </tr> 
            </table> 
        </InlineEditTemplate> 
          
        <AppointmentTemplate> 
            <div style="overflow:auto; height:60px; width:100%; height:100%;">  
                <div class="rsAptSubject">  
                    <asp:Label ID="lblAssignedTo" runat="server"></asp:Label> 
                </div> 
                <br /> 
                <%# (Eval("Subject") as string).Replace("\n", "<br />") %> 
            </div> 
 
        </AppointmentTemplate> 
        <Localization AdvancedAllDayEvent="All day" /> 
        <AdvancedForm DateFormat="M/d/yyyy" Modal="True" TimeFormat="h:mm tt" /> 
    </rad:RadScheduler> 
      
      
            <rad:RadContextMenu runat="server" ID="SchedulerAppointmentContextMenu" OnClientItemClicked="appointmentContextMenuItemClicked">  
            <Items> 
                <rad:RadMenuItem Text="Edit" /> 
                <rad:RadMenuItem IsSeparator="True" /> 
                <rad:RadMenuItem Text="Delete" /> 
            </Items> 
        </rad:RadContextMenu> 
        <rad:RadContextMenu runat="server" ID="SchedulerTimeSlotContextMenu" OnClientItemClicked="timeSlotContextMenuItemClicked">  
            <CollapseAnimation Type="none" /> 
            <Items> 
                <rad:RadMenuItem Text="New Appointment" /> 
            </Items> 
        </rad:RadContextMenu> 
      
</asp:Content> 
 
T. Tsonev
Telerik team
 answered on 23 Dec 2009
7 answers
214 views
I'm trying to extend the "XmlHttpPanel / Initiating content load client-side" example. I would like to have a few form fields and a RadEditor inside the XmlHttpPanel. Essential I would like very similar functionality to the "Use as container" RadWindow example with the additioon of a RadEditor and no window.

Unfortunately when placing the RadEditor inside the XmlHttpPanel the editor does not behave as expected. In IE the RadEditor toolbars disappear and the content is never updated. In FireFox the content is update.

Am I doing something wrong or is this just not possible? Or is there a better alternative solution?

ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ContentEditor.aspx.cs" Inherits="ContentEditor" %> 
 
<!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></title> 
    <telerik:radscriptblock id="RadScriptBlock" runat="server"> 
    <script type="text/javascript"> 
         function rowSelected(sender, args) { 
             var key = args.getDataKeyValue("ContentId"); 
             var panel = $find("<%=RadXmlHttpPanel.ClientID%>"); 
             panel.set_value(key); 
         } 
    </script> 
    </telerik:radscriptblock> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <asp:scriptmanager id="ScriptManager" runat="server" /> 
        <div style="margin-bottom: 10px;"> 
            <label style="font-family:'segoe ui', arial, sans-serif;font-size:13px;">Group:</label> 
            <telerik:radcombobox id="ContentGroupRadComboBox" runat="server" datasourceid="ContentGroupDataSource" datatextfield="ContentGroupName" datavaluefield="ContentGroupId" appenddatabounditems="true" autopostback="true" width="210" > 
                <items> 
                    <telerik:radcomboboxitem text="All" value="0" selected="true" /> 
                </items> 
            </telerik:radcombobox> 
        </div> 
        <telerik:radgrid id="ContentRadGrid" runat="server" datasourceid="ContentDataSource" allowpaging="true" autogeneratecolumns="false" width="250px" style="overflow:hidden"> 
            <mastertableview clientdatakeynames="ContentId"> 
                <columns> 
                    <telerik:gridboundcolumn uniquename="ContentName" datafield="ContentName" headertext="Name" itemstyle-wrap="false" /> 
                </columns> 
            </mastertableview> 
            <clientsettings enablerowhoverstyle="true" selecting-allowrowselect="true"> 
                <clientevents onrowselected="rowSelected" ondatabound="" /> 
            </clientsettings> 
            <pagerstyle mode="NumericPages" showpagertext="false" /> 
        </telerik:radgrid> 
        <telerik:radajaxmanager id="RadAjaxManager" runat="server" enableajax="true" defaultloadingpanelid="RadAjaxLoadingPanel"> 
            <ajaxsettings> 
                <telerik:ajaxsetting ajaxcontrolid="ContentGroupRadComboBox"> 
                    <updatedcontrols> 
                        <telerik:ajaxupdatedcontrol controlid="ContentRadGrid" loadingpanelid="RadAjaxLoadingPanel" /> 
                        <telerik:ajaxupdatedcontrol controlid="ContentGroupRadComoboBox" /> 
                    </updatedcontrols> 
                </telerik:ajaxsetting> 
            </ajaxsettings> 
        </telerik:radajaxmanager> 
        <div style="margin-top: 25px;border: dashed 2px red;"> 
            <telerik:radxmlhttppanel id="RadXmlHttpPanel" runat="server" onservicerequest="RadXmlHttpPanel_ServiceRequest"> 
                <asp:label id="selectContentLabel" runat="server" text="Select a content item." /> 
                <asp:label id="selectedContentIdLabel" runat="server" /> 
                <telerik:radeditor id="RadEditor" runat="server" /> 
            </telerik:radxmlhttppanel> 
        </div> 
        <telerik:radajaxloadingpanel id="RadAjaxLoadingPanel" runat="server" /> 
        <asp:sqldatasource id="ContentGroupDataSource" runat="server" connectionstring="<%$ ConnectionStrings:InternationalConnectionString %>" selectcommand="SELECT [ContentGroupId], [ContentGroupName] FROM [IS].[ContentGroupInfo] WITH (NOLOCK) WHERE [StoreId] = '49D4B1F4-236B-DE11-870E-001A6465230E' AND [CultureId] = 1033" /> 
        <asp:sqldatasource id="ContentDataSource" runat="server" connectionstring="<%$ ConnectionStrings:InternationalConnectionString %>" /> 
    </div> 
    </form> 
</body> 
</html> 

Codebehind

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
 
public partial class ContentEditor : System.Web.UI.Page 
{ 
    protected void Page_Init(Object sender, EventArgs e) 
    { 
 
    } 
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        if (ContentGroupRadComboBox.SelectedValue == "0") 
        { 
            ContentDataSource.SelectCommand = "SELECT [CI].[ContentGroupId], [CI].[ContentGroupName], [CI].[ContentId], [CI].[ContentName] FROM [IS].[ContentInfo] AS [CI] WITH (NOLOCK) WHERE [CI].[StoreId] = '49D4B1F4-236B-DE11-870E-001A6465230E' AND [CI].[CultureId] = 1033"; 
            ContentRadGrid.DataBind(); 
        } 
        else 
        { 
            ContentDataSource.SelectCommand = "SELECT [CI].[ContentGroupId], [CI].[ContentGroupName], [CI].[ContentId], [CI].[ContentName] FROM [IS].[ContentInfo] AS [CI] WITH (NOLOCK) WHERE [CI].[StoreId] = '49D4B1F4-236B-DE11-870E-001A6465230E' AND [CI].[ContentGroupId] = '" + ContentGroupRadComboBox.SelectedValue + "' AND [CI].[CultureId] = 1033"; 
            ContentRadGrid.DataBind(); 
        } 
 
    } 
 
    protected void RadXmlHttpPanel_ServiceRequest(Object sender, RadXmlHttpPanelEventArgs e) 
    { 
        String selectedContentId = e.Value; 
        selectedContentIdLabel.Text = selectedContentId; 
        selectContentLabel.Visible = false; 
        RadEditor.Content = selectedContentId; 
    } 
} 
 

Pero
Telerik team
 answered on 23 Dec 2009
2 answers
191 views
hi

I have this code:

  <telerik:RadMaskedTextBox ID="DOBTextBox"  Text='<%# Bind("DOB") %>'  runat="server" Mask="##/##/####">
                </telerik:RadMaskedTextBox> &nbsp; day/month/year

But when i looked at the stored value in the DB, it show 23122009. How can i capture 23/12/2009 format in the DB?

I am using Nvarchar(20) for my DOB field. thanks
Shinu
Top achievements
Rank 2
 answered on 23 Dec 2009
3 answers
77 views
Hi all,

With Firefox 3.0.16 recent update, I have found a strange issue using RadDatepicker. When typing "020202" in the dateinput and then press tab to exit the input, with Firefox 3.0.16 the input "020202" is not parsed and is not replaced with the desired string : "2/2/2002". The behavior can be seen on Telerik demo site here. This scenario works with IE and FF 3.5.6. If anybody has a workaround for this, it will be greatly appreciated.

Bye,

Morgan
Pavel
Telerik team
 answered on 23 Dec 2009
3 answers
406 views

I have a grid with client-side row selection turned on. After selecting a row, I want to click a button to access the row and the various individual fields in that row. How can do I do this in JavaScript? Basically, I want something like the following where I can access a column by name or index, but I don't have the syntax figured out, so it crashes...


                var grid = $find("<%= RadGrid1.ClientID %>");  
                var masterTable = grid.get_masterTableView();  
                var row = masterTable.SelectedRow;
                var colid = row.Column["SupplierID"];  // access by name
                alert(colid);  
                var col3 = row.Column[2];  // access by index
                alert(col3);  
Princy
Top achievements
Rank 2
 answered on 23 Dec 2009
1 answer
195 views
After I save the content in radeditor, I run the report and export the report to the PDF file.  Here is what I got the content from the PDF file:

<P><FONT style="BACKGROUND-COLOR: #ff0000">test test
test</FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</P>


Is there some kind convertor I need to use before it is exported to pdf?
I also attach the a picture file. Please let me know how to solve this issue.

thanks
Kevin
Rumen
Telerik team
 answered on 23 Dec 2009
1 answer
304 views
Is it possible to utilize GridCheckBoxColumn if the underlying datafield value stores string Y and N instead of 1 and 0?
I would like to display a read only version of the checkbox that is still legible.   If I use the template to set it to Enabled="false", it's very light.  (and the GridTemplateColumn's ReadOnly property doesn't work)

                    <telerik:GridTemplateColumn UniqueName="emailprimaryuser" HeaderText="Email Primary User"  
                        ReadOnly="true" DataField="emailprimaryuser" SortExpression="emailprimaryuser"> 
                        <ItemTemplate>  
                            <asp:CheckBox Enabled="false" ID="chkemailprimaryuser" runat="server" Checked='<%# DataBinder.Eval (Container.DataItem,"emailprimaryuser").ToString()="Y" %>' 
                             /> 
                        </ItemTemplate>                                                   
                    </telerik:GridTemplateColumn>    

Princy
Top achievements
Rank 2
 answered on 23 Dec 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?