Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
189 views
I am using RAD Controls for AJAX Q2 2009 SP1 with master pages in VS 2005 VB.NET.

The RAD Menu is located in the master page; the RAD AJAX manager is also located in the master page. 

The content page contains two RAD Calendar controls and a RAD combo box.  Everything is working in the page except for the RAD Combo box.  If I have the RAD Combo box on the page without the calendar, it works fine; but just says "loading" when all controls are present.

We are transitioning to a new version of our Intranet that utilizes master pages; our previous version did not use master pages and these controls did not conflict with one another.  Please advise.

Simon
Telerik team
 answered on 27 Dec 2010
1 answer
78 views

Hi,

I have hierarchical grid on which i have included the column resize functionality. Column re-sizing done by user on Parent grid is maintained even after the post back but column re-sizing done by user on child grid is not maintained after the postback. I am using telerik verison "2010.1.519.35". Below i have pasted my sample code where ----//Some Code---- is for some code which i have not pasted here.

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="Mygrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Mygrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                   </AjaxSettings>
            </telerik:RadAjaxManager>
                <telerik:RadGrid ID="Mygrid" runat="server" AllowCustomPaging="True" AllowPaging="True" PageSize="5" EnableEmbeddedSkins="false" Skin="MySkin" AllowSorting="True" AllowMultiRowSelection="true" AllowFilteringByColumn="true" EnableViewState="true" GridLines="None" Width="100%" ----//Some Code---->
                    <ClientSettings AllowExpandCollapse="true"><Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" ClipCellContentOnResize="true" EnableRealTimeResize="true" /><Selecting AllowRowSelect="true" EnableDragToSelectRows="false" /></ClientSettings>
                    <PagerStyle Position="TopAndBottom" Mode="NumericPages" PageButtonCount="5" />
                    <SortingSettings EnableSkinSortStyles="false" />
                    <MasterTableView AllowSorting="true" AllowMultiColumnSorting="false" HierarchyLoadMode="ServerOnDemand" Width="100%" TableLayout="Fixed">
                        <PagerTemplate>
                             ----//Some Code----
                        </PagerTemplate>
                        <ExpandCollapseColumn ButtonType="ImageButton" CollapseImageUrl="~/Skin/Grid/SingleMinus.gif"  ExpandImageUrl="~/Skin/Grid/SinglePlus.gif" ></ExpandCollapseColumn>
                        <RowIndicatorColumn Visible="False"><HeaderStyle /></RowIndicatorColumn>
                        <DetailTables>
                            <telerik:GridTableView HierarchyLoadMode="Client" Width="100%" GridLines="None"  runat="server" CellPadding="0" CellSpacing="0" BorderWidth="1" BorderColor="#cccccc" AllowMultiColumnSorting="false" AllowPaging="false" AllowSorting="false" HierarchyDefaultExpanded="true" EnableViewState="true" AllowFilteringByColumn="false" TableLayout="Fixed"  ----//Some Code---->
                                <ParentTableRelation><telerik:GridRelationFields  ----//Some Code---- /></ParentTableRelation>
                                <Columns>
                                    <telerik:GridClientSelectColumn UniqueName="colselectjob" Resizable="false"><HeaderStyle Width="25" /></telerik:GridClientSelectColumn>
                                     ----//Some Code----
                                </Columns>
                            </telerik:GridTableView>
                            
                        </DetailTables>
                        
                        <Columns>
                            <telerik:GridClientSelectColumn Resizable="false" UniqueName="colselectjob"><HeaderStyle Width="25" /></telerik:GridClientSelectColumn>
                            ----//Some Code----
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>


Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
198 views
Good evening
use Sitefinity 3.7 sp3, we would like to create a banner for our website similar to the homepage of Telerik.
There is a control that allows you to achieve this effect?
I searched but found nothing.

:)
Fiko
Telerik team
 answered on 27 Dec 2010
1 answer
129 views
Hi
i try to using the RadRotator with WebServiceSettings and is look fine.
But when the user click on the next button, the control dont know that is can be the lsat item, even i set the WrapFrames property to true and the application crash with OutOfRange.

So my question is, How can i configure for the RadRotator where is the last item if i use the WebServiceSettings ?

thanks (and sorry about my english)
Fiko
Telerik team
 answered on 27 Dec 2010
0 answers
100 views
hi ,
does Scheduler support saka era calendar ?
how can I use it ?
rtech
Top achievements
Rank 1
 asked on 27 Dec 2010
1 answer
136 views
I have a Radgrid that uses an objectdatasource which is configured this way
<asp:ObjectDataSource runat="server" ID="reportObjectDataSource" SelectMethod="GetInfo"
    EnableViewState="false" TypeName="XXXX.ReportObjectDataSource" 
       onselecting="reportObjectDataSource_Selecting">
       <SelectParameters>
           <asp:FormParameter DbType="DateTimeOffset" 
               DefaultValue="" FormField="timeFrom" Name="frDate" />
           <asp:FormParameter DbType="DateTimeOffset" 
               DefaultValue="" FormField="timeTo" Name="tDate" />
               <asp:FormParameter DbType="Boolean"
               DefaultValue="" FormField="btnAllVer" Name="allVer" />
       </SelectParameters>
   </asp:ObjectDataSource>

The Radgrid is declared in the designer of the page with this code:
<telerik:RadGrid ID="gridReport" runat="server" GridLines="None"
                        Skin="WebBlue" Width="700px"  HeaderStyle-HorizontalAlign="Center" 
                            AllowSorting="True" AllowPaging="true" PageSize="50">
                        <MasterTableView AutoGenerateColumns="True">
                           <CommandItemSettings ShowExportToExcelButton="true"></CommandItemSettings>
  
                        </MasterTableView>
                        <ClientSettings>
                        <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" />
                        </ClientSettings>
                    </telerik:RadGrid>

I also added a button that will be used to export the datagrid once it is clicked. However, after generation of grid and clicking the export button the error: "RadGrid must be DataBound before exporting" is encountered. Here's the code behind for the page:

protected void btnGenerate_Click(object sender, EventArgs e)
        {
 gridReport.DataSourceID = "reportAdhocObjectDataSource";
}
 protected void btnExport_Click(object sender, EventArgs e)
        {
              
            gridReport.ExportSettings.FileName = "Report as of" + DateTime.Today.ToString();
            gridReport.ExportSettings.ExportOnlyData = false;
            gridReport.ExportSettings.IgnorePaging = true;
            gridReport.ExportSettings.OpenInNewWindow = true;
  
            gridReport.MasterTableView.ExportToExcel();
  
        }
  
protected void reportObjectDataSource_Selecting(object sender, System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs e)
        {
            DateTime timeFr = timeFrom.SelectedDate.Value;
            DateTimeOffset tFrom = timeFr;
            e.InputParameters["frDate"] = tFrom;
  
            DateTime timeT = timeTo.SelectedDate.Value;
            DateTimeOffset tTo = timeT;
            e.InputParameters["tDate"] = tTo;
  
            e.InputParameters["allVer"] = this.btnAllVer.Checked;
        }

This is urgent, so please, any help will be appreciated.

thanks
Daniel
Telerik team
 answered on 27 Dec 2010
1 answer
330 views
Hi,

I am using following source code for Editing & deleting the records.

<

 

telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Left" HeaderText="Edit"  ItemStyle-orizontalAlign="Left">
<HeaderStyle HorizontalAlign="Left" Width="30px" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridEditCommandColumn>

 

 


<
telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"  ConfirmDialogHeight="100px" ConfirmDialogType="RadWindow" Visible="true" ConfirmDialogWidth="220px"  ConfirmText="Are you sure you want to delete this Material Issue Request?"  ConfirmTitle="Delete" HeaderStyle-HorizontalAlign="Left"  HeaderStyle-VerticalAlign="NotSet" HeaderText="Delete" ItemStyle-HorizontalAlign="Left">
<HeaderStyle HorizontalAlign="Left" Width="38px"/>
<ItemStyle HorizontalAlign="Left" />
</telerik:GridButtonColumn>

My requirement is that based on some status field from database i would like to enable/disable these Edit,Delete buttons.

How to get these control Id's & how to enable/disable these controls.


Thanks in advance...

 

Yeroon
Top achievements
Rank 2
 answered on 27 Dec 2010
1 answer
87 views
Hi everybody,

I need solution very badly and very very quickly,

I used radcontrols in my dotnet application, those are working fine, But i placed same page in sharepoint webpart those are not working.

My senario is, i used RadGrid, RadButtons, RadWindows, RadMenuContext and other controls in my application, those are working fine. after that i had taken this page and placed in my sharepoint site and also taken dll of that page in "bin" folder of my site. Finally i had taken changes of web.config file form telerik site. 

I had taken pageviewerWebpart and placed my page in that webpart, but HierarchicalGrid woriking fine but ContextMenu not comming. And radwinds not working. I got the error "Sys is Undefine".
function RowContextMenu(sender, eventArgs) {
                //alert("RowContextMenu Method");
                var menu;
                var ownerTable = eventArgs.get_tableView();
  
                if (ownerTable.get_name() == "DELIVERYDETAILS") {
                    menu = $find("<%= RadMenu1.ClientID %>");
                }
                else if (ownerTable.get_name() == "TASKS") {
                    menu = $find("<%= RadMenu2.ClientID %>");
                }
  
                document.getElementById("radGridClickedRowIndex").value = eventArgs.get_itemIndexHierarchical();
                document.getElementById("radGridClickedTableId").value = ownerTable._data.UniqueID;
  
                menu.show(eventArgs.get_domEvent());
  
            }
 
The above code i used for ContextMenu.
function OpenWindowAddNewTask() {
            Sys.Application.add_load(addNewTaskWindow);
        }
  
        function addNewTaskWindow() {
            var WSID = document.getElementById("hidWSID").value;
            var url = "AddNewTask.aspx?WS_ID=" + WSID + "&TaskID=0";
            var oWnd = radopen(url, 'RadWindow1');
            Sys.Application.remove_load(addNewTaskWindow);
        }
Above code i used to open radwindow.

Those two are working fine in my dotnet application, but not sharepoint site.

Please give me the quick solution.

Iana Tsolova
Telerik team
 answered on 27 Dec 2010
3 answers
172 views
Is it possible to sort a RadComboBox's items alphabetically via client-side scripting? I didn't see anything in the API showing this type of functionality.
Simon
Telerik team
 answered on 27 Dec 2010
1 answer
93 views
Hi,

I have several pages containing multiple Telerik:Pageview controls on them and we need to implement globalization.  When I click the Generate Local Resource File oiption from the Tools Menue in VS2008 I get a resx file generated and it has the RadTab labels and other controls represented in the resultant resx file, but not a single <asp:Label> control which is contained within a Telerik:PageView control is in the resx file.

Any Ideas anyone?

It would really be unfortunate if for some reason things inside a Telerik:Pageview control were not able to generate the metadata tags for globalization.


Thanks,

Gary
Yana
Telerik team
 answered on 27 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?