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

I have datetimecolumn in my grid when i disable the control on itemdatabound event.the page loads properly but when i move the mouse on the datetimecolumn control it gives script error "Object doesnt support this property or method" in Telerik.Web.UI.Webresource.axd.

Is there any workaround or hotfix.

Its urgent Please help


Regards

Sathya
Pavlina
Telerik team
 answered on 21 Jul 2010
3 answers
174 views

I am trying to add special days dynamically, I have set the template of the special day via aspx, and I am trying to assign it the dates with code on DayRender event. Thing is, it's not happening.

The aspx code goes:

 <telerik:DayTemplate ID="DisableTemplate" runat="server">
                <Content>
                    <div class="rcTemplate rcDayDisabled">                      
                    </div>
                </Content>
            </telerik:DayTemplate>
the css:

.RadCalendar_Special .rcRow .rcDayDisabled
{
    background:0 0 no-repeat url(Disabled.gif);
}

the c#:

  protected void RadCalendar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
        {
            if (e.Day.Date < DateTime.Now.Date)
            {
                RadCalendarDay RadDay = new RadCalendarDay();
                RadDay.TemplateID = "DisableTemplate";
                RadDay.Date = e.Day.Date;
                e.Cell.CssClass = "rcDayDisabled";
                RadCalendar1.SpecialDays.Add(RadDay);
                }
}
also I noticed that without the property: Repeatable="DayInMonth" filled the special day will not appear... is there a solution to these problems:

Tsvetina
Telerik team
 answered on 21 Jul 2010
1 answer
106 views
Hi,
    I was wondering whether there is a true InPlace editing in the RadGrid.
I explain: I've looked at your documentation and I've tried to set the EditMode="InPlace" and nothing happened.
Then I digged more on the subject and I found out that I should manage the double click event of the grid.
I copied the example I found in the documentation and it worked, but, sadly, I noticed it is performing a partial update of the page (don't like).
Then I looked in your online examples and found this:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx
Perfect: it is not performing partial updates, but then I look at the page code and I see two hundred lines of javascript codes where you on the basis of the column name extract the info necessary to update the UI.

The question is: is all of this necessary? Is there not any built in way (without writing tons of JS or performing postbacks) to perform in place editing?

Best regards, Andrea Pirola
Iana Tsolova
Telerik team
 answered on 21 Jul 2010
3 answers
194 views
Is there a way to turn off all the font styles that a raddock generates? I have the following configuration on my page:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label ID="LabelAdmin" runat="server" Text="" />
    <telerik:RadDockZone ID="RadDockZoneContentBlock1" runat="server" MinHeight="50px" MinWidth="100px" BorderStyle="None">
        <telerik:RadDock ID="RadDockContentBlock1" runat="server" DockHandle="None" DefaultCommands="None" OnClientInitialize="SetHandleDock" DockMode="Docked">
            <ContentTemplate>
                <div id="Handle_ctl00_ContentPlaceHolder1_RadDockContentBlock1" style="cursor: move;">
                    <uc1:ContentBlock ID="ContentBlock1" ContentID="1" runat="server" />
                </div>
            </ContentTemplate>
        </telerik:RadDock>
    </telerik:RadDockZone>
</asp:Content>

I have attached 2 images to this, the "correct style.png" is how it is supposed to look on the page. The "wrong style.png" is how it looks when i create the same page using the above layout. If I move the content blocks outside the raddock it looks just fine, as well I used firebug and turned of some skins and styles on the raddock and the preview firebug shows looked correct as well. I have tried turning on and off pretty much every property I can find for raddocks but nothing fixes the problem.
Bozhidar
Telerik team
 answered on 21 Jul 2010
1 answer
110 views
I attached a file

So, why subject, attachment column are not allign? when i specify horizontal align and vertical align properties for this items

when i pres with mouse some of the field then it will auto-align them, but in first load - its not align
very strange

is it because of the icons on the end?

<telerik:GridCheckBoxColumn
                            DataField="fldIsSent"
                            HeaderText="Sent:"
                            UniqueName="fldIsSent"
                            Visible="false">                        
                          <ItemStyle  width="40px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                          <HeaderStyle width="40px" VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
</telerik:GridCheckBoxColumn>
 <telerik:GridTemplateColumn
                            UniqueName="EditColumn"
                            HeaderText="Edit/View">
                              <ItemTemplate>
                                    <a href="#" onclick="ShowUpdateForm('<%#DataBinder.Eval(Container.DataItem,"fldEmailID")%>','<%#DataBinder.Eval(Container.DataItem,"fldMeetingID")%>'); return false;">
                                        <asp:ImageButton ID="ibEditViewEmail" ImageUrl='../images/Email/email_edit.png' ToolTip="Edit/View Email"  runat ="server" alt="" style="cursor:hand;vertical-align: middle;" />
                                    </a>
                                </ItemTemplate>
                           <HeaderStyle  Width="50px" VerticalAlign="Middle" HorizontalAlign="Center"></HeaderStyle>
                           <ItemStyle  Width="50px" VerticalAlign="Middle" HorizontalAlign="Center" Wrap="false"></ItemStyle>
                        </telerik:GridTemplateColumn>
Pavlina
Telerik team
 answered on 21 Jul 2010
1 answer
174 views

This is how my source page looks like

<telerik:RadGrid ID="radGridWrapper" runat="server" ShowHeader="false" BorderStyle="None" Width="100%" 
                       onexcelmlexportstylescreated="radGridWrapper_ExcelMLExportStylesCreated" onexcelmlexportrowcreated="radGridWrapper_ExcelMLExportRowCreated" >
                      <MasterTableView Width="100%">
                            <ItemTemplate>
                                <div id="id1" runat="server" style="width:800px;text-align:left; overflow:hidden;">
                                     <telerik:RadGrid ID="RadGrid1" Width="100%" GridLines="Vertical" 
                                            AllowPaging="true" PageSize="100" 
                                            runat="server" AllowSorting="True" BackColor="white"  Skin="Web20" onitemdatabound="RadGrid1_ItemDataBound"
                                            HeaderStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Names="Arial" onexcelmlexportstylescreated="RadGrid1_ExcelMLExportStylesCreated"
                                            HeaderStyle-Wrap="true" onneeddatasource="RadGrid1_NeedDataSource"   
                                            OnItemCreated="RadGrid1_ItemCreated" OnSortCommand="RadGrid1_SortCommand" 
                                            OnInsertCommand="RadGrid1_InsertCommand"
                                            ongridexporting="RadGrid1_GridExporting"                    
                                            onpdfexporting="RadGrid1_PdfExporting" 
                                            onpageindexchanged="RadGrid1_PageIndexChanged">
                                                <PagerStyle Mode="NumericPages" />
                                                <ClientSettings >
                                                    <Scrolling UseStaticHeaders="true" AllowScroll="true"/>
                                                </ClientSettings>
                                                <ItemStyle Font-Names="Arial" HorizontalAlign="Left" BackColor="white"></ItemStyle>
                                                <AlternatingItemStyle Font-Names="Arial" HorizontalAlign="Left" BackColor="white"/>
                                                <MasterTableView Width="100%">
                                                </MasterTableView>                                        
                                     </telerik:RadGrid>  
                                </div>                                        
                </td>               
                <%--  </div>--%>
                <tr>
                <td style="height: 72px">
                    <telerik:RadGrid ID="RadGrid2" Width="100%" GridLines="Vertical"   Visible="false"
                         runat="server" AllowSorting="True"  Skin="Web20" AllowPaging="true" PageSize="100"
                          HeaderStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true" OnSortCommand="RadGrid2_SortCommand"  
                        HeaderStyle-Font-Names="Arial" onneeddatasource="RadGrid2_NeedDataSource"
                         HeaderStyle-Wrap="true" onpageindexchanged="RadGrid2_PageIndexChanged">
                         <PagerStyle Mode="NumericPages" />
                        <ItemStyle Font-Names="Arial" HorizontalAlign="Left"></ItemStyle>
                        <AlternatingItemStyle Font-Names="Arial" HorizontalAlign="Left" />
                         <MasterTableView Width="100%">                         
                         </MasterTableView>                                        
                    </telerik:RadGrid> 
                      
                    <br />
                </td>
                </tr>
             <%--  </div>--%>
                            </ItemTemplate>
                       </MasterTableView>
              </telerik:RadGrid>
Everthing works fine, i am able to export both the grids into a single excel.
but i had a question in this i have set page size as 100 as you can see so when i am exporting to excel only the 100 items are getting exported (which is right).
this is my code behind method for exporting
RadGrid radGrid = lbl_txt.Text == "All RadGrids" ? radGridWrapper : (RadGrid)radGridWrapper.Items[0].FindControl(lbl_txt.Text);
          
        //html.Visible = false;
        if (radGrid.Items.Count == 0)
        {
            Page.ClientScript.RegisterStartupScript(base.GetType(), "Alert", GC.Message("No records found"));
            return;
        }
        if (isExcelExport = true)
        {
            gridcaption = "<b style='color: blue; text-align: left;'>Effort Analysis Report </b>";
            if (CheckBox4.Checked == true)
            {
                gridcaption += "<BR/>" + "<b>Process : </b>" + ddlprocess.SelectedItem.Text + " " + "|" + " " + "<b>Group : </b> " + ddlGroupby.SelectedItem.Text + " " + "|" + " " + "<b>From Date :</b>" + txtFromDate.Text + " " + "|" + " " + "<b>To Date :</b>" + txtToDate.Text;
            }
            radGrid.MasterTableView.Caption = gridcaption;
            radGrid.ExportSettings.FileName = "EffortAnalysis_" + "_from_" + txtFromDate.Text + "_to_" + txtToDate.Text;
            radGrid.ExportSettings.OpenInNewWindow = true;
            //radGrid.ExportSettings.IgnorePaging = true;
            //radGrid.ExportSettings.ExportOnlyData = true;
            gridBind();
            radGrid.MasterTableView.ExportToExcel();

so if in this method i add in export settings as ignore paging i am getting an error saying the below message
Object reference not set to an instance of an object.

can any of you guys tell me how i can get over this speed bump
Iana Tsolova
Telerik team
 answered on 21 Jul 2010
10 answers
424 views
Is there any way that I can add a CSS class to the error message for the CAPTCHA?

Thanks,
Brian Dukes
Basel Nimer
Top achievements
Rank 2
 answered on 21 Jul 2010
1 answer
139 views
Hi everybody,
Using two controls RadRotator and RadMenu on the one and the same page we've met the following problem: from time to time an exception is thrown. We are using Telerik RadControls for ASP.NET Ajax controls version 2009.2.826.35. The stack trace and technical information are below:

Source:
mscorlib

StackTrace:
в System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) в System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) в Telerik.Web.UI.Common.ControlRenderer.GetUrl(Control controlRef, String resourceName) в Telerik.Web.UI.Common.ControlRenderer.GetControlScripts(Control controlRef) в Telerik.Web.UI.RadDataBoundControl.RenderScriptsNoScriptManager(HtmlTextWriter writer) в Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) в System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer) в System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) в System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) в System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) в System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) в System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer) в System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) в System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) в System.Web.UI.Control.Render(HtmlTextWriter writer) в System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer) в ASP.main_master.__RendermainForm(HtmlTextWriter __w, Control parameterContainer) в System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) в System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) в System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) в System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) в System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) в System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) в System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) в System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) в System.Web.UI.Control.Render(HtmlTextWriter writer) в System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer) в System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) в System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) в System.Web.UI.Page.Render(HtmlTextWriter writer) в System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) в System.Web.UI.Control.RenderControl(HtmlTextWriter writer) в System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

TargetSite:
ThrowArgumentException

InnerExceptionMessage:
null

RequestInfo:
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
UserLanguages: ru-RU

Will appreciate any help.
Thanks.
Pero
Telerik team
 answered on 21 Jul 2010
1 answer
107 views
Hi telerik team,

i had my code to create new node and option to enter its name in the radtreeview.
as the code below.

it is working in IIS6 and not in IIS7 can any one help me about this.

Private Sub startNodeInEditMode(ByVal nodeValue As String)
        'find the node by its Value and edit it when page loads
        Dim js As String = "Sys.Application.add_load(editNode); function editNode(){ "
        js += "var tree = $find(""" + ObjFoldersTree.ClientID + """);"
        js += "var node = tree.findNodeByValue('" + nodeValue + "');"
        js += "if (node)  tree._startEdit(node); "
        js += "Sys.Application.remove_load(editNode);};"
 
        RadScriptManager.RegisterStartupScript(Page, Page.[GetType](), "nodeEdit", js, True)
    End Sub
Nikolay Tsenkov
Telerik team
 answered on 21 Jul 2010
1 answer
69 views

 

Hi,
I am using RAD Grid and want to edit  mode with some dropdown and textboxes.
I couldn’t able to push the values in to dropdown list . Since I am loading the data in code behind.
I am not using SqlDataSource in .aspx page. I am loading all the datas in code behind page.

Can you please help me on this issue?

Thanks in advance,
S. Murugesan

Shinu
Top achievements
Rank 2
 answered on 21 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?