Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 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
70 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
105 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
262 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
76 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
138 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
44 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
1 answer
55 views
Is it possible to implement telerik:GridClientSelectColumn and Yahoo scrolling. Bascially, say only 50 out of 400 records are loaded and the end user clicks the check all header. Can I code it so that all the records are then loaded and checked?
Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
28 views
I notived this when our automatic page translator didn't work ...

Is there a way to turn this off?

I also notices that a header like "t_destination_t" is rendered to "t_ destination _t"

Pavel
Telerik team
 answered on 27 Dec 2010
1 answer
34 views

Hello Telerik Team,

I have a requirement in the rad grid. I am using rad grid to dispaly my search results on the
 execution of sql stored procedure.
In the rad grid, I have a GridHyperLinkColumn where i am using DataNavigateUrlFormatString.After I get the search results, when i navigate to a different page from my search results and come back using the browser back button.I am loosing the
search results. I would like to know the method , how can i retain the search results. I have the search results in a view state/Session state.
Its a very urgent requirement.

Please respond as soon as possible.Please provide a sample for it.
I appreciate your help.

Thank You,
Smith

Iana Tsolova
Telerik team
 answered on 27 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?