Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
1.4K+ views
Hi,

As soon as I drag a RadGrid onto my page, when loading the page I get the following error:

Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.

Exception details:
Error Message Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.
Error Source Telerik.Web.UI
Stack Trace at Telerik.Web.SkinRegistrar.RegisterCssReference(Page _page, Control _control, String _url) at Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control) at Telerik.Web.UI.RadCompositeDataBoundControl.RegisterCssReferences() at Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) at Telerik.Web.UI.RadGrid.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Target Site Void RegisterCssReference(System.Web.UI.Page, System.Web.UI.Control, System.String)

Wrapping the RadGrid into a radCodeBlock doesn't solve the problem. Only removing the RadGrid from the page gets everything back to normal.
Any idea?

Thanks,
John
Houda
Top achievements
Rank 1
 answered on 18 Sep 2012
2 answers
84 views

<telerik:GridTemplateColumn UniqueName="rdbnot" DataField ="Escalation_Notify_ID" SortExpression="Escalation_Notify_ID" ItemStyle-BorderStyle="None" HeaderText="<%$ Code:Resources.Escalation.Notification_Freq%>">
<ItemStyle Width="150px" BorderStyle="None" HorizontalAlign="Left" />
                                                                                                            <ItemTemplate>                                                                                                           
<asp:LinkButton ID="btnNotify" runat="server" OnClientClick="AddNotify()"></asp:LinkButton>                                                                                                                       
</ItemTemplate>
<ItemStyle Width="150px" BorderStyle="None" HorizontalAlign="Left" />
</telerik:GridTemplateColumn>

link button row select is work in Ie 9, It's Not worked in Mozilla and chroma ,

<ClientSettings AllowRowsDragDrop="True">
<ClientEvents OnRowSelected="RowClicked" />
</ClientSettings>

function RowClicked(sender, eventArgs) {
                rowCounts = grid.get_masterTableView().get_selectedItems().length;
            }
 

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 18 Sep 2012
1 answer
90 views
Hi:
I have a client function for OnClientNodeClicked  
   function NodeClicked (sender, args)

i use this function to calculate how many checked nodes.
Now, i am doing something on server side and do not want to write the same function on server side again. Is there a way i can call  NodeClicked (sender, args)  function from server side ?

thanks for helping

Princy
Top achievements
Rank 2
 answered on 18 Sep 2012
1 answer
281 views
Decided to make a new thread per http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-footer-validation.aspx 


Using the ItemDataBound, everything is working except the e.Canceled = true; line. When the values don't match I get the response.write "Cancelled" message on my page as intended but the e.Canceled = true; line doesnt execute and the updates execute . And when they do match, update executes sucessfully and I dont get the message as intended. 


  
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridFooterItem)
    {
        GridFooterItem fitem = (e.Item as GridFooterItem);
        string value1 = fitem["CALENDAR_DAYS_MTD"].Text;
        string value2 = fitem["WEEKENDS_MTD"].Text;
        string value3 = fitem["HOLIDAYS_MTD"].Text;
        string value4 = fitem["BUSINESS_DAYS_MTD"].Text;
        int footervalue1;
        int footervalue2;
        int footervalue3;
        int footervalue4;
        int.TryParse(value1, out footervalue1);
        int.TryParse(value2, out footervalue2);
        int.TryParse(value3, out footervalue3);
        int.TryParse(value4, out footervalue4);
 
        //to get the value only.
        if (footervalue2 + footervalue3 + footervalue4 != footervalue1)
        {
 
            e.Canceled = true; // Cancel Update
            Response.Write("Cancelled");
 
        }
         
    }
}





Shinu
Top achievements
Rank 2
 answered on 18 Sep 2012
1 answer
84 views
I want to make the toolbar not visible, even during editing.  Any ideas?
Princy
Top achievements
Rank 2
 answered on 18 Sep 2012
3 answers
240 views
Hi, 

can we use a user control as an itemtemplate inside a radlistbox as we do it with the radgrid?

Tom
Princy
Top achievements
Rank 2
 answered on 18 Sep 2012
2 answers
62 views
Hi,

How do I programmatically append new records to the rad grid without using add new record  option of rad grid?

I have to perform new record insertion when user clicks on a button outside grid.

Is this feature supported in rad grid?

Thanks,
Jay
Jay
Top achievements
Rank 1
 answered on 17 Sep 2012
2 answers
92 views
I've attached two screen shots beforeMouseOver and afterMouseOver.
I am able to see this issue all times :-(

I was able to see this for

  • radTextBox
  • radDatePicker
  • radNumericTextBox ( with the spins buttons enabled )

... but not for radComboBox

Thanks,
-Aarsh
Aarsh
Top achievements
Rank 1
 answered on 17 Sep 2012
3 answers
119 views
I checked following link:

http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-readonly-hidden-fields-in-edit-mode-radgrid.aspx#2292669 

but when i used given code then i got following error-

 protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) 
    { 
        GridEditFormItem Data = (GridEditFormItem)e.Item;  
        string strHiddenField=Data.ParentItem["ProductName"].Text; 
        Hashtable ht = new Hashtable(); 
        Data.ExtractValues(ht); 
        ht.Add("ProductName", strHiddenField); 
    } 


Unable to cast object of type 'Telerik.Web.UI.GridDataItem' to type 'Telerik.Web.UI.GridEditFormItem'

Any solve it? 
Casey
Top achievements
Rank 1
 answered on 17 Sep 2012
15 answers
233 views
Did this issue come back to life in Q2? After upgrading to Q2 the issue described here was noticed in my login page which contains two radTextboxes and a radButton placed within an asp panel (default button set to radButton). If you enter a user name then use tab to enter the password, hitting enter on your keyboard (while radTextbox has focus) does nothing. Only after hitting the enter button twice or using the mouse to click back to the first textbox makes the enter key work. I tried setting the EnableSingleInputRendering to false but this did nothing. If I replace the radTextbox with an asp textbox everything works as expected.
Martin
Telerik team
 answered on 17 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?