Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
146 views
Hi,
I'm experiencing problems trying to delete an appointment using RadScheduler with entitydatasource.
Insert and update work fine, but while performing delete i get back a NullReferenceException just before deleting event of the datasource is fired.
I've read in the web that Entity Framwork could have some bugs about this matter.
Does anybody have the same problem?
Thanx in advance.
Doug Beard
Top achievements
Rank 2
 answered on 05 Jun 2009
2 answers
69 views
I am being given the message:
Your Security Settings do not allow website to use ActiveX controls installed on your computer.  This page may not display correctly, click here for options            

Right after that  I get an Error POP-Up saying " A Runtime Error has occured, Do you wish to debug?  Line:6 Object Expected.

Debugging on windows 2003 Server ie7 Q1 2009 Telerik.web.ui
Zed
Top achievements
Rank 1
 answered on 05 Jun 2009
2 answers
115 views
Hello,
 I'm having a problem with the clientside column resizing on grids that are contained in an ASP:ContentPlaceholder for a master page. 
When using the grids on a stand alone page (like in a RadWindow popup that does not inherit from the master page), I've not had an issue with resizing columns. 
The column reorder, item sort and filtering are fine.  But when hovering the mouse over the column dividers, it does not change pointers to the re-size, and you can't drag any of of cell divider lines (column or row) to re-size. 

The site is being tested on IE7 with .NET 3.5 installed. 
Below is the markup for one of the grids I've been having an issue with:
It's contained within an update panel and an ASP formview that are the main elements in the content placeholder.
The script manager tag is on the master page.



<telerik:RadGrid  
                            ID="rgvRepository"  
                            runat="server"  
                            AllowPaging="True"  
                            OnNeedDataSource="rgvRepositoryAccounts_NeedDataSource" 
                            OnItemDataBound="rgv_OnItemDataBound" 
                            GridLines="None" 
                            Skin="Office2007"  
                            Width="700px"  
                            AllowCustomPaging="False"  
                            PageSize="5"   
                            AllowSorting="True"  
                            ForeColor="Black"  
                            AutoGenerateColumns="False"
                            <MasterTableView TableLayout="Auto"
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                                 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </ExpandCollapseColumn> 
                                
                                <HeaderStyle Wrap="true" HorizontalAlign="Center"/> 
                 
                        <Columns> 
                        <telerik:GridBoundColumn DataField="C06NAME" EmptyDataText="&amp;nbsp;"  
                            HeaderText="Name" MaxLength="35" UniqueName="C06NAME" Resizable="true"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="C06ACCT" EmptyDataText="&amp;nbsp;"  
                            HeaderText="Account" MaxLength="30" UniqueName="C06ACCT" Resizable="true"
                        </telerik:GridBoundColumn> 
                        <!-- More gridbound coloumns with the same options removed. --> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings  
                                    AllowColumnHide="false"  
                                    AllowColumnsReorder="true"  
                                    ReorderColumnsOnClient="true" 
                                    ColumnsReorderMethod="Reorder"
                                <Selecting AllowRowSelect="true" /> 
                                 
                    <ClientEvents OnRowSelected="SelectAccountRow"  
                                  OnRowContextMenu="RowClicked" /> 
                    <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" 
                                AllowColumnResize="True"></Resizing> 
                    <Scrolling AllowScroll="true" /> 
                </ClientSettings> 
                <FilterMenu EnableTheming="True"
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </FilterMenu> 
             
            </telerik:RadGrid> 
 

Here is some of the master page (I've omitted some static items, images and the like for brevity).  All the grids on child pages would be within the contentplaceholder1 control.
<form id="mmaster" defaultbutton="btnOK"  runat="server"
     
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
           
          <div class="PageTitle"
          <asp:Label  CssClass="TextPadl" Font-Bold="true" Height="25px" ID="lblPageTitle" runat="server" Text=""></asp:Label>  
           <br /> 
          <asp:Label CssClass="TextPadl" runat="server" ForeColor="red" ID="lblError"  ></asp:Label> 
      </div> 
       
      <div  id="sidemenudiv" runat="server" class="mLeftMenu"
            
           <asp:Label CssClass="mLeftMenuL" ID="lblSystem" runat="server">  
            
           </asp:Label> 
            
           <br /> 
           <br /> 
           <br /> 
 
          <asp:ContentPlaceHolder  ID="ContentPlaceHolder2" runat="server" > 
        
            </asp:ContentPlaceHolder> 
          
          <UserControl:TreeViewControl ID="TreeViewControl" runat="server" /> 
           
           
            
     </div> 
      
      
        <div class="Buttons" > 
            <asp:Button ID="btnOK" runat="server" CssClass="Button" /> 
            <asp:Button ID="btnCancel" runat="server" CssClass="Button" CausesValidation="false" /> 
            <asp:Button ID="btnApply" runat="server" CssClass="Button" /> 
            <asp:Button ID="btnClear" runat="server" CssClass="Button" /> 
            <br/> <br/> 
        </div> 
     
     
     <div id="msDiv" runat="server" class="ContentHolder"
         <div id="DebtorRow" runat="server" style="position:relative; left:30px; top:10px; width:300px;"
             <asp:Label ID="lblDCode"   Width="70px" Font-Bold="true" ForeColor="blue"  runat="server" ></asp:Label> 
             <asp:Label ID="lblDCodeVal"  runat="server" ></asp:Label> 
         </div> 
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"
        
        </asp:ContentPlaceHolder> 
    </div> 

Hopefully I'm just missing an option, or need to configure something something on the master page, but I'm having trouble finding what that might be.
Thanks for any suggestions as to what I'm doing wrong.
 
Dan Lewis
Top achievements
Rank 1
 answered on 05 Jun 2009
2 answers
319 views
I have a GridFoterItem in my ItemDatabound and it works great.  The only issue I have with it is that I don't know how to align the text to the right instead of the default left. Below is what I have any help would be great!  Thanks!

 

GridFooterItem footerItem = e.Item as GridFooterItem;

 

footerItem[

"person"].Controls.Add(new LiteralControl("<strong>Total</strong><br/>"));

 

Mike
Top achievements
Rank 1
 answered on 05 Jun 2009
2 answers
96 views
I'm building a master detail kind of application where you first select a client in a radgrid and then on selection it updates a series of radtab's with detailed information about that client (payments, events, calls etc). How would I handle this scenario? How can I pass the grid's selecteditemid tot the datasources inside the radtabs and update them?

goyaweb
Top achievements
Rank 2
 answered on 05 Jun 2009
5 answers
190 views
I have the following client settings in my RadGrid using the static header. However, when I try to select a row, the reaction is very slow and the layout out the grid content even totally change.(eg. the column width become very wide) I need to allso rows selection and use static hearder with scrolling. Could you please advice what is the problem of my grid. Thanks.
                                    

           <telerik:RadGrid ID="rgAfftAdd" runat="server" AutoGenerateColumns="False"
                                               GridLines="None" Skin="WebBlue" Width="100%" BorderStyle="Solid"
                                               BorderColor="#3399FF" BorderWidth="1px"
                                               AllowMultiRowSelection="True" AllowSorting="True"
                                               onprerender="rgAfftAdd_PreRender">
                                                 
                                        <SelectedItemStyle BackColor="#99CCFF" />      
                                     
                                        <ClientSettings>
                                                 <Selecting AllowRowSelect="true" />
                                               <Scrolling AllowScroll="True" UseStaticHeaders="true"></Scrolling> 
                                        </ClientSettings>   

                                        <MasterTableView Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                         Font-Strikeout="False" Font-Underline="False" PageSize="2000"
                                                        
                                            ClientDataKeyNames="TYPE, START_TIME, ADDR, SP_CUST, REC_NO, lid, ln_sub_no"
                                            Width="98%" AllowMultiColumnSorting="True">
                                                          
                                                <RowIndicatorColumn>
                                                    <HeaderStyle Width="20px"></HeaderStyle>
                                                </RowIndicatorColumn>

                                                <ExpandCollapseColumn>
                                                    <HeaderStyle Width="20px"></HeaderStyle>
                                                </ExpandCollapseColumn>
                                           
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="TYPE" HeaderText="Type" UniqueName="TYPE">
                                                        <HeaderStyle Width="12%" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="START_TIME" DataType="System.DateTime"
                                                                             HeaderText="Start Time" UniqueName="START_TIME"
                                                                             DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
                                                        <HeaderStyle Width="14%" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ADDR" HeaderText="Address" UniqueName="ADDR">
                                                        <HeaderStyle Width="59%" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="SP_CUST" HeaderText="Sp. Cust."
                                                                             UniqueName="SP_CUST" Aggregate="Count" ReadOnly="True">
                                                        <HeaderStyle Width="15px" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="REC_NO" HeaderText="Rec_No" UniqueName="REC_NO" Visible = "false">
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="lid" UniqueName="lid" Visible = "false" >
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ln_sub_no" UniqueName="ln_sub_no" Visible = "false">
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                </Columns>
                                               
                                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
                                                             Font-Strikeout="False" Font-Underline="False" ForeColor="Black" Wrap="True" />       
                                        </MasterTableView>                   

                                        <FilterMenu EnableTheming="True" Skin="WebBlue">
                                            <CollapseAnimation Duration="200" Type="OutQuint" />
                                        </FilterMenu>

                                </telerik:RadGrid>



Tsvetoslav
Telerik team
 answered on 05 Jun 2009
1 answer
160 views
I have the following client settings in my RadGrid using the static header. However, when I try to select a row, the reaction is very slow and the layout out the grid content even totally change.(eg. the column width become very wide) I need to allow rows selection and use static hearder with scrolling. Could you please advice what is the problem of my grid. Thanks.
                                    

           <telerik:RadGrid ID="rgAfftAdd" runat="server" AutoGenerateColumns="False"
                                               GridLines="None" Skin="WebBlue" Width="100%" BorderStyle="Solid"
                                               BorderColor="#3399FF" BorderWidth="1px"
                                               AllowMultiRowSelection="True" AllowSorting="True"
                                               onprerender="rgAfftAdd_PreRender">
                                                 
                                        <SelectedItemStyle BackColor="#99CCFF" />      
                                     
                                        <ClientSettings>
                                                 <Selecting AllowRowSelect="true" />
                                               <Scrolling AllowScroll="True" UseStaticHeaders="true"></Scrolling> 
                                        </ClientSettings>   

                                        <MasterTableView Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                         Font-Strikeout="False" Font-Underline="False" PageSize="2000"
                                                        
                                            ClientDataKeyNames="TYPE, START_TIME, ADDR, SP_CUST, REC_NO, lid, ln_sub_no"
                                            Width="98%" AllowMultiColumnSorting="True">
                                                          
                                                <RowIndicatorColumn>
                                                    <HeaderStyle Width="20px"></HeaderStyle>
                                                </RowIndicatorColumn>

                                                <ExpandCollapseColumn>
                                                    <HeaderStyle Width="20px"></HeaderStyle>
                                                </ExpandCollapseColumn>
                                           
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="TYPE" HeaderText="Type" UniqueName="TYPE">
                                                        <HeaderStyle Width="12%" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="START_TIME" DataType="System.DateTime"
                                                                             HeaderText="Start Time" UniqueName="START_TIME"
                                                                             DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
                                                        <HeaderStyle Width="14%" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ADDR" HeaderText="Address" UniqueName="ADDR">
                                                        <HeaderStyle Width="59%" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="SP_CUST" HeaderText="Sp. Cust."
                                                                             UniqueName="SP_CUST" Aggregate="Count" ReadOnly="True">
                                                        <HeaderStyle Width="15px" />
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="REC_NO" HeaderText="Rec_No" UniqueName="REC_NO" Visible = "false">
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="lid" UniqueName="lid" Visible = "false" >
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ln_sub_no" UniqueName="ln_sub_no" Visible = "false">
                                                        <ItemStyle VerticalAlign="Top" />
                                                    </telerik:GridBoundColumn>
                                                </Columns>
                                               
                                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
                                                             Font-Strikeout="False" Font-Underline="False" ForeColor="Black" Wrap="True" />       
                                        </MasterTableView>                   

                                        <FilterMenu EnableTheming="True" Skin="WebBlue">
                                            <CollapseAnimation Duration="200" Type="OutQuint" />
                                        </FilterMenu>

                                </telerik:RadGrid>

Tsvetoslav
Telerik team
 answered on 05 Jun 2009
2 answers
280 views
I have created a custom RadGrid class and added export buttons inside the CommandItemTemplate.  When I export to Excel/PDF the hyperlinks (value) do not show up.  I know setting ExportDataOnly="false" takes care this but my web pages crash when I set it to false.  Is there a solution to this?  Thanks,
Robert
Top achievements
Rank 1
 answered on 05 Jun 2009
5 answers
293 views
Hi

I am using Updatepanel. when i click on My Grid Button and it display the RadUpload Control and then i will Upload the File and Grid is Bind and then i edit record at that time RadUpload control lost its Skin File.

Please let me know if you have any solution for this. this would be great help to me......



Thanks in advance,
Mayur Panchal

sbe
Top achievements
Rank 1
 answered on 05 Jun 2009
3 answers
221 views
It is really strange, I have a radsplitter (width=100%) and tow radpanes. Inside the second radPane, I use a radTabStrip. Inside the second radTab, I use another radSplitter (width=100%). It really strange, but when I display the page, the first tab is well displayed, but the second tab which contains the second radsplitter have a width very very big. And when I do a postback, the second radsplitter is displayed correctly (width=100%). I don't understand.

I would like to refresh the content of the second tab to resolve my problem. But I don't know how to do,

Thank you,

Suzi. 
Svetlina Anati
Telerik team
 answered on 05 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?