Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
204 views
Hi. Is there a way to get a RadPanelBar to resize its width when the RadPane that its in shows a vertical scroll bar? Its always sized to the width of the RadPanel that its in, but if a scrollbar is showing, it covers up the right hand side exspand / collape arrow. Yes, I know you can click anyhere on the main RadPanelItem, but it would look better if its sized properly.
   
How would I accomplish this in java script? Can I detect when a RadPane has a scrollbar showing and what the width of that scrollbar is? Is it possible to even set the width of a RadPanelBar on the client side? I get a error when I call set_width() on its client side object,
Thanks,
Brian

Mr. Plinko
Top achievements
Rank 1
 answered on 01 Sep 2009
5 answers
200 views

Hi there,

It is possible to disable (make invisible) some cells of a RadGrid to visually represent Triangular Matrices ?
Thanks for any help.

Regards,

Marcio Nascimento

Daniel
Telerik team
 answered on 01 Sep 2009
5 answers
2.0K+ views
Full Error: Control 'RadGrid1_ctl00_ctl02_ctl00_ctl04' of type 'Button' must be placed inside a form tag with runat=server

Details:
I'm placing a radgrid in a usercontrol, the usercontrol will be placed on an mvc page 6 times.  The radcontrol works if it is alone on a page (not int a user control) using the following code:
<body>
    <form runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" runat="server">
        <MasterTableView>
            <Columns>
                <telerik:GridBoundColumn DataField="region" DataType="System.String" HeaderText="regionheader" />
                <telerik:GridBoundColumn DataField="playCount" DataType="System.Int32" HeaderText="playcountheader" />
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <DataBinding Location="/ASP/GridWS.asmx" SelectMethod="GetData" SelectCountMethod="GetCount" />
        </ClientSettings>
    </telerik:RadGrid>
    </form>
</body>

However I get the error when I attempt to place the grid in the control on the page.  If I move the <form> tag from the page to the control it will render without the error, but I need to have the form on the page as there are other controls that need to post, and basically because it seems like bad practice.
JR Go
Top achievements
Rank 1
 answered on 01 Sep 2009
1 answer
317 views
Hi

Can any one please send me the code snipet for using the radstylesheet manager control.

More please clarify me whether we can use the styesheet manager to use the style sheet developed for the web site apart from the rad control's style sheet.

Veselin Vasilev
Telerik team
 answered on 01 Sep 2009
0 answers
143 views

I am working with migration project.  I have converted the asp ComboBox to  Rad ComboBox. RadComboBox is under DataGrid. asp:RequiredFieldValidator is used for validation. It was working with asp ComboBox but not working with RadComboBox. One of the reason I identify that RadComboBox validate the text not value.

I try with custom validator but it is not working because the RadComboBox is under DataGrid.

 

Please give me proper solution. Thanks.

 

 

 

<asp:DataGrid ID="dgLesson" runat="server" CssClass="dataGridTable" Width="100%" .........

<Columns> 

< asp:TemplateColumn HeaderText="Sequence Number">   

<ItemTemplate>

 <asp:Label ID="lbSequenceNumber" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SequenceNumber") %>'>  

</asp:Label>

 </ItemTemplate>

 <FooterTemplate 

<telerik:RadComboBox ID="ddAddSequenceNumber" runat="server">

</telerik:RadComboBox>  

<asp:RequiredFieldValidator ID="rfvAddSequenceNumber" runat="server" ControlToValidate="ddAddSequenceNumber"

ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator>  

</FooterTemplate>

</asp:TemplateColumn>

 

 

Pushkar
Top achievements
Rank 2
 asked on 01 Sep 2009
1 answer
62 views
I am trying to make my columns not wrap in the resultant PDF document but have had no luck. Any help is appreciated. Here is my code:

        protected void ButtonExportToPDF_Click(object sender, EventArgs e)
        {
            isPdfExport = true;

            ConfigureExport();
            RadGridFacility.ExportSettings.Pdf.PaperSize = GridPaperSize.Legal;
            RadGridFacility.ExportSettings.Pdf.PageWidth = Unit.Parse("356mm");
            RadGridFacility.ExportSettings.Pdf.PageHeight = Unit.Parse("216mm");

            RadGridFacility.MasterTableView.Rebind();
            RadGridFacility.MasterTableView.ExportToPdf();
        }

 

        protected void RadGridFacility_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (isPdfExport && (e.Item is GridHeaderItem || e.Item is GridDataItem))
            {
                if (e.Item is GridDataItem)
             {
                    GridDataItem dataItem = (GridDataItem)e.Item;
                    dataItem.Style["font-size"] = "7pt";
                    dataItem.Style["white-space"] = "nowrap";

                    foreach (TableCell cell in dataItem.Cells)
                    {
                        cell.Style["white-space"] = "nowrap";
                        cell.Style["color"] = "red";
                    }
                }
                else
             {
                    GridHeaderItem headerItem = (GridHeaderItem)e.Item;
                    headerItem.Style["font-size"] = "7pt";
                    headerItem.Style["font-weight"] = "bold";
                }
            }
        }

        public void ConfigureExport()
        {
            RadGridFacility.ExportSettings.ExportOnlyData = true;
            RadGridFacility.ExportSettings.IgnorePaging = CheckBoxIgnorePaging.Checked;
            RadGridFacility.ExportSettings.OpenInNewWindow = false;
        }

Also tried code below but all columns are of type GridExpandColumn even tho they are GridBoundColumns in the aspx?? GridExpandColumn does not have the DataFormatString property

protected void RadGridFacility_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
       //add more column types to the conditional check if needed
       if (e.Column is GridBoundColumn)
       {
           (e.Column as GridBoundColumn).DataFormatString = "<nobr>{0}</nobr>";
       }
}

                        <telerik:RadGrid ID="RadGridFacility" runat="server" AllowPaging="True"
                            PageSize="100" AllowSorting="True"
                                AutoGenerateColumns="False" DataKeyNames="FacilityID"
                                DataSourceID="EntityDataSourceFacility" GridLines="None" Skin="Vista"
                                onitemdatabound="RadGridFacility_ItemDataBound"
                                 Font-Size="XX-Small"
                            onitemcreated="RadGridFacility_ItemCreated"
                            oncolumncreated="RadGridFacility_ColumnCreated" >

                            <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5"
                                PagerTextFormat="Change page: {4} &amp;nbsp;Displaying page {0} of {1}. Total items: {5}." AlwaysVisible="True" />
                            <headercontextmenu><collapseanimation
                            duration="200" type="OutQuint" /></headercontextmenu>
                           
                            <mastertableview datakeynames="FacilityID"
                                datasourceid="EntityDataSourceFacility">
                                <norecordstemplate><div>There are no records to display</div></norecordstemplate>
                                <rowindicatorcolumn visible="False"><HeaderStyle Width="20px" /></rowindicatorcolumn>
                               
                                <Columns>
                                    <telerik:GridBoundColumn DataField="PermitNumber" HeaderText="Permit #" 
                                        SortExpression="PermitNumber" UniqueName="PermitNumber">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="TermNumber" HeaderText="Term"    
                                        SortExpression="TermNumber" UniqueName="TermNumber">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Mine" HeaderText="Mine"  HeaderStyle-Wrap="false"
                                        SortExpression="Mine" UniqueName="Mine">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="FTypeName" HeaderText="FType"  
                                        SortExpression="FTypeName" UniqueName="FTypeName">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="DistrictAbbrev" HeaderText="District" 
                                        SortExpression="DistrictAbbrev" UniqueName="DistrictAbbrev">
                                    </telerik:GridBoundColumn>                                   
                                    <telerik:GridBoundColumn  DataField="CountyCode" HeaderText="County" 
                                        SortExpression="CountyCode" UniqueName="CountyCode">
                                    </telerik:GridBoundColumn>                                   
                                    <telerik:GridBoundColumn  DataField="Acres" HeaderText="Acres" 
                                        SortExpression="Acres" UniqueName="Acres">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="MineralCode" HeaderText="Min" 
                                        SortExpression="MineralCode" UniqueName="MineralCode">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="TRS" HeaderText="T/R/S" 
                                        SortExpression="TRS" UniqueName="TRS">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="InitialOperation" HeaderText="Issued" 
                                        SortExpression="InitialOperation" UniqueName="InitialOperation">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="TerminationDate" HeaderText="Terminate" 
                                        SortExpression="TerminationDate" UniqueName="TerminationDate">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="PermitStatusCode" HeaderText="Status" 
                                        SortExpression="PermitStatusCode" UniqueName="PermitStatusCode">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="AnnualReportDate" HeaderText="Annual Date" 
                                        SortExpression="AnnualReportDate" UniqueName="AnnualReportDate">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="FSurface" HeaderText="Surface" 
                                        SortExpression="FSurface" UniqueName="FSurface">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="NonFed" HeaderText="NonFed" 
                                        SortExpression="NonFed" UniqueName="NonFed">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="LOMAffected" HeaderText="LOM Affect" 
                                        SortExpression="LOMAffected" UniqueName="LOMAffected">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  DataField="Released" HeaderText="Released" 
                                        SortExpression="Released" UniqueName="Released">
                                    </telerik:GridBoundColumn>

                                </Columns>
                            </mastertableview>
                                   
                            <ClientSettings>
                               <Scrolling AllowScroll="True" UseStaticHeaders="True"  ScrollHeight="100%" />
                            </ClientSettings>
                            <FilterMenu EnableTheming="True" Skin="Vista">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </FilterMenu>
                        </telerik:RadGrid>

Daniel
Telerik team
 answered on 01 Sep 2009
4 answers
140 views
hello Sir,

I want a code of tree view which i want to right click on the node and when i right click i have a 3 options, "Click1" , "Click2" , "Click3" when i click option "Click1" then new node is add, when i click "Click2" option then i call the function, and when i click "Click3" Option then i call i function is in instantly update the name of the node.. or edit the node name and then i pass their name to my function parameter..

Please help me..

I am very thankful its a urgent request sir....

Thanks..
Vesko
Top achievements
Rank 2
 answered on 01 Sep 2009
2 answers
359 views
I want to position my RadDocks without using layout or zones.

The scenario is this:
I have a web page with a table-like layout (4x4 blocks).
In each of these blocks goes a web user control.
Each web user control has a RadDock.

Since RadDockZone only allows for other Telerik controls inside of it, I can't use it for positioning.

How do I make the RadDocks stay inside the blocks, and not position itself at the {0,0} position of the web page?
Henning
Top achievements
Rank 1
 answered on 01 Sep 2009
3 answers
193 views
Hi,

We seem to be having a few problems moving to the Prometheus controls as you may gather from the other threads Ive created!

Another problem we have come across relates to the RadAjaxManager when used with an ASP.NET wizard. We have recretated the error in a basic two step wizard, with a RadGrid on the second step tied to an ObjectDataSource control. When no RadAjaxManager is present, the grid only calls its databind method when the user progresses to the second step in the wizard.

However, if a RadAjaxManager is present on the page and set with the Wizards Id as the initiating and updated controls then the databind happens as soon as the page loads. This means all wizard steps are loaded and bound at the initialisation step.

The problem arose in our application where a later wizard step requires values from an earlier step in its databind process. We have modified our code in this instance, but this is far from ideal as this implementation was not there with the previous pre-prometheus RadAjaxManager.

Any help appreciated.
serg
Top achievements
Rank 1
 answered on 01 Sep 2009
1 answer
89 views
I'm having what I can only consider a CSS issue.  I'm using IE 8 and have a TabStrip on my page that has the Align property set to Justify.  When some of my pages load for some reason the last tab will be displayed below the TabStrip, and will then suddenly jump up on line with the rest of the tabs.  Although this does not "break" my site in terms of functionality it's quite annoying, since the content below my tabs jumps up as well.  A "quick clicking" user can get very annoyed by this behaviour.  Has anyone else experienced anything else like this?

Thanks,
Joe
Paul
Telerik team
 answered on 01 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?