Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
486 views
Hi -

I have:
Installed AJAX
Installed RadControls_for_ASP.NET_AJAX_2010_1_519_dev.msi
Added a RadGrid to a web part
Complied and deployed using VS 2010

On runtime I get:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 7:  <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
Line 8:  <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SubmittalUserControl.ascx.cs" Inherits="Tribridge_PM_Portal.Submittal.SubmittalUserControl" %>
Line 9: <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>Line 10: 
Line 11: <script type="text/javascript" language="javascript">

Source File: /_CONTROLTEMPLATES/Tribridge_PM_Portal/Submittal/SubmittalUserControl.ascx    Line: 9

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

One issue may be that I do not see two required dll's in the GAC.

Telerik.Ajax.SharePoint.dll and RadEditorSharePoint.dll.

I do not see these anywhere in the Rad install path or on my hard drive either.

Please advise where these are located.

I noticed when I ran the Telerik installer it did not update the GAC or sp web.config either.

Thank you.




Sebastian
Telerik team
 answered on 23 Dec 2010
1 answer
65 views
Hi,

I am using hierarchical grids in my page. The child grid is expanding on click of parent link, but the right side part of the child grid is missing.  This behaviour is not consistant always, some times its showing the full sub grid. Please refer the attached screen shots for reference.


Regards,
Chandrababu.
Iana Tsolova
Telerik team
 answered on 23 Dec 2010
13 answers
413 views
I am developing prototype using telerik rad controls. One of my requirement is to display a radgrid dynamically inside a radwindow  which comes up as a new pop window, on hyperlink click event. There is an additional radgrid on the page. I would then want to drag a row from the dynamically created radgrid(inside radwindow) into existing radgrid on the same page.
I know that radwindow can be used as container for containing controls from same page but I want to the radwindow as new pop up on same page and then I can refer Id's of both radgrid controls while drag and drop.

Kindly reply
Neerav Patel
Nikolay Tsenkov
Telerik team
 answered on 23 Dec 2010
5 answers
257 views
Hi all,

Apologies if this is a question answered elsewhere or if I've missed something simple.

I've got a treeview in which I build the nodes dynamically based on a datasource - specifically I'm manually creating new RadTreeNodes and inserting them because I want different behaviours based on each, but that's probably not directly relevant. At the time of creating each node I assign it to a predefined (in the .aspx) RadContextMenu, like this:

RadTreeNode contactNode = new RadTreeNode();  
if (contact == currentCustomer.ContactAccounts)  
   contactNode.ImageUrl = "~/images/icons/16/user-business.png";  
else 
   contactNode.ImageUrl = "~/images/icons/16/user-worker.png";  
contactNode.Text = contact.Name;  
 
if (contact.Email.Length > 0 && contact.Fax.Length > 0)  
{  
   contactNode.ContextMenuID = "contactContextMenuEmailAndFax";  
}  
else if (contact.Email.Length > 0)  
{  
   contactNode.ContextMenuID = "contactContextMenuEmailOnly";  
}  
... etc etc etc 

There are two things I'd like to do and haven't found a means of doing:

1) rather than define 4 multiple menus including email, fax, email and fax and neither, it'd be nice to be able to iterate the collection of menuitems and simply disable the ones that don't matter

2) I'd like to set the NavigateUrl property of the "Email contact" menu item to a mailto: link at render time


Is there a way to do this?

Cheers,

Kev
Nikolay Tsenkov
Telerik team
 answered on 23 Dec 2010
1 answer
62 views
Hello,

I am using a Grid with a custom filter column as described in the demo http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx 

The problem I have is that when I turn off the viewstate for the grid the event below does not fire in the event chain.
private void rcBox_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
     {
         ((GridFilteringItem)(((RadComboBox)sender).Parent.Parent)).FireCommandEvent("Filter", new Pair());
     }


        private void rcBox_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            ((GridFilteringItem)(((RadComboBox)sender).Parent.Parent)).FireCommandEvent("Filter", new Pair());
        }
   private void rcBox_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            ((GridFilteringItem)(((RadComboBox)sender).Parent.Parent)).FireCommandEvent("Filter", new Pair());
        }
If I turn on view state then it works fine. I have tried setting the selectedvalue in the "protected override void SetupFilterControls(TableCell cell)" method as follows, but all that does is maintain the selectedvalue during postback and does not cause the  rcBox_SelectedIndexChangedevent to fire. You can see from the code below I tried to fire the Filter command but it is too early and causes other problems.

var formvalue = HttpContext.Current.Request.Form[rcBox.UniqueID];
           if (!string.IsNullOrEmpty(formvalue))
           {
               rcBox.SelectedValue = formvalue;
               //((GridFilteringItem)(rcBox.Parent.Parent)).FireCommandEvent("Filter", new Pair());
           }


Is this a bug in the grid, my only solution is to use viewstate but this is a large gird.

I have also notcied that if the viewstate is switched off you can not change page with the page number buttons and can only use the left and right page buttons.
Iana Tsolova
Telerik team
 answered on 23 Dec 2010
4 answers
166 views
I'm wondering how to use the new TouchScrollExtender - could someone post an example- code?

Thank you!
Kamen Bundev
Telerik team
 answered on 23 Dec 2010
1 answer
69 views
There are two problems I hope you can help with:

1. how to remove the unsightly gap between image and text on mouseOver
2. how to remove the border of the rad menu

The attached .png shows both.

Thanks in advance,
Nachi
Kamen Bundev
Telerik team
 answered on 23 Dec 2010
3 answers
74 views
Inside my ItemCommand event I am handling a grid edit, and when I set the e.Canceled flag to true, the CaptionDataItem does not display (it shows EditItem - {0}.

Any ideas?

Thanks!
Marin
Telerik team
 answered on 23 Dec 2010
5 answers
1.1K+ views
I have an empty RadPanelBar on my webpage. When I say empty, I mean that just the <telerik:RadPanelBar></telerik:RadPanelBar> definition exists with no RadPanelItems in it.

On page load, I check to see if the page has been posted back, and if not, I create and add a dynamic number of RadPanelItems to the RadPanelBar. Each of these RadPanelItems has a control in it (for testing I'm using a textbox, but eventually it will be a RadGrid).

I run my page for the first time and up comes my RadPanelBar with the right number of RadPanelItems, and in each one is a textbox. I enter a value into a textbox and click a submit button and the page postsback to itself.

Now when my page loads, a strange thing happens...
The event that loads the RadPanelItems does not fire but the RadPanelBar still has the dynamically added RadPanelItems, but these items have no controls in them so now my textboxes have disappeared and I have no access to the values that were entered into them.

If I skip the check and load the RadPanelItems everytime the page is hit, the I get more strangeness...

The original RadPanelItems that were created when the page was first loaded are still there, along with newly created RadPanelItems after postback, the new RadPanelItems have the empty textboxes in them, but the existing RadPanelItems again have no textboxes and again I've lost my values.

How on earth do I get around this? I need to dynamically add RadPanelItems and controls to a RadPanelBar, but then need access to these and the controls in them so I can access their values after postback!
Josh
Top achievements
Rank 1
 answered on 23 Dec 2010
1 answer
50 views
Hello,

 In my pagge one grid is thre when i am adding record page post back , some time grid display is not proper .  please find the attachment images
skin is simple
1. Display problem
2. Proper display .. want shown grid all time same like this


grid aspx code

<telerik:RadGrid ID="grdBayInfo" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                                            AllowSorting="true" BorderStyle="Solid" Skin="Simple" ItemStyle-BackColor="#FFFFFF"
                                       PagerStyle-AlwaysVisible ="true" PageSize="4" OnPageIndexChanged ="grdBayInfo_PageIndexChanged" OnPageSizeChanged="grdBayInfo_PageSizeChanged"
                                            OnItemCommand="grdBayInfo_ItemCommand" ShowHeader="true" Width="600px">
                                            <PagerStyle Mode="NumericPages"  />
                                            <MasterTableView EditMode="InPlace" DataKeyNames="FacilityId,BayId,BayName,PricePerHour"
                                                CommandItemDisplay="None" Width="600px">
                                                <Columns>
                                                    <telerik:GridTemplateColumn HeaderText="FacilityId" DataField="FacilityId" Visible="false"
                                                        UniqueName="FacilityId">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFacilityId" Text='<%# Eval("FacilityId")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn HeaderText="BayId" DataField="BayId" UniqueName="BayId"
                                                        Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblBayId" Text='<%# Eval("BayId")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn UniqueName="BayName" HeaderText="BayName">
                                                        <HeaderStyle ForeColor="#326DA0" BackColor="#EEEEEE" BorderStyle="Solid" BorderColor="#326DA0" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblBayName" Text='<%# Eval("BayName")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                                        EditImageUrl="Images/edit.gif" HeaderText="Edit" AutoPostBackOnFilter="true"
                                                        HeaderStyle-Width="10%">
                                                        <HeaderStyle ForeColor="#326DA0" BackColor="#EEEEEE" BorderStyle="Solid" BorderColor="#326DA0" />
                                                    </telerik:GridEditCommandColumn>
                                                    <telerik:GridButtonColumn ConfirmText="Delete this Bay?" ConfirmDialogType="RadWindow"
                                                        HeaderText="Delete" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete"
                                                        Text="Delete" HeaderStyle-Width="10%" UniqueName="DeleteColumn" ImageUrl="Images/action_delete.gif">
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <HeaderStyle ForeColor="#326DA0" BackColor="#EEEEEE" BorderStyle="Solid" BorderColor="#326DA0" />
                                                    </telerik:GridButtonColumn>
                                                    <telerik:GridTemplateColumn UniqueName="PricePerHour" HeaderStyle-Width="30%" HeaderText="PricePerHour">
                                                        <HeaderStyle ForeColor="#326DA0" BackColor="#EEEEEE" BorderStyle="Solid" BorderColor="#326DA0" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label1" Text="$" runat="server"></asp:Label>
                                                            <asp:Label ID="lblPricePerHour" Text='<%# Eval("PricePerHour")%>' runat="server"></asp:Label>
                                                            <asp:Label ID="Label2" Text="/Hour" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:Label ID="Label1" Text="$" runat="server"></asp:Label>
                                                            <asp:TextBox Width="50%" ID="txtPricePerHour" Text='<%# Eval("PricePerHour")%>' runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label2" Text="/Hour" runat="server"></asp:Label>
                                                        </EditItemTemplate>
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridTemplateColumn>
                                                </Columns>
                                            </MasterTableView>
                                            <ClientSettings>
                                                <Scrolling AllowScroll="True" ScrollHeight="100px" UseStaticHeaders="True" SaveScrollPosition="True">
                                                </Scrolling>
                                            </ClientSettings>
                                        </telerik:RadGrid>

thanks


Pavlina
Telerik team
 answered on 23 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?