Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
156 views
Hi all,

I want to bind my radtreelist control to database. em getting only the column names and not getting treelist structure...

 em pasting my below...
and also find the find attachment to know table view which is datasource to my treelist control... 

<

 

 

html xmlns="http://www.w3.org/1999/xhtml">

<

 

 

head runat="server">

 

<title></title>

</

 

 

head>

<

 

 

body>

 

<form id="form1" runat="server">

 

<telerik:RadScriptManager ID="scriptmanager" runat="server"></telerik:RadScriptManager>

 

<div>

 

<telerik:RadTreeList ID="treelist" runat="server"

 

AllowPaging="True" DataKeyNames="FirstName" ParentDataKeyNames="gender"

 

DataSourceID="SqlDataSource1" GridLines="Horizontal" AutoGenerateColumns="true"

 

ShowTreeLines="False" >

 

<PagerStyle Mode="NextPrev" />

 

</telerik:RadTreeList>

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

ConnectionString="<%$ ConnectionStrings:TestConnectionString1 %>"

 

SelectCommand="SELECT [MobileNumber], [P_Id], [FirstName], [MiddleName], [LastName], [JObTitle], [DOB], [EmailID], [gender] FROM [Persons]">

 

</asp:SqlDataSource>

 

</div>

 

</form>

</

 

 

body>

</

 

 

html>

 
Radoslav
Telerik team
 answered on 28 Jun 2011
3 answers
366 views
Dear Friends,

I am faced with a situation where i need to use RadScheduler to manage guards(security guards) deployments across the city.
I have been doing some reading on the properties of RadScheduler.
Here's what I want to achieve:
  • Define the employees(guard details).That i can do.
  • Design a table called DeploymentTemplate. In this table, i want to store EmpId,AreaId,Start,End,RecurrenceRule where i can capture for each guard a standard template for their deployments. Basically, a particular guard can be deployed in an area for whole month(reason for Recurrance).
  • Each time a guard is deployed, i need to mark (check) him as Worked.e.g on 23-mar-2011,from his deployement template,starting at 8:00am to 6PM, he's checked in as worked.
  • I need to customize the entry form.Currently, RadScheduler has a default entry form with Subject,Description etc which works fine for appointment. All i want is if i want to insert/edit a deployment, and on clicking the calender, i get a pop up FORM with my own controls such RadCombobox,TEXTBOX etc from which i can insert/edit values into the database.
  • I want also to bind all the controls including Resources and RadScheduler from code behind (NOT client side).
  • I need to filter by Guards and info of deployment displayed on the RadScheduler. For example, when i select a guard from a drop down, i need to view his deployment template per day, and be able to edit it as i want. etc

Now, I don't want anybody to do this for me. ALL am kindly requesting is, can someone send me a link where i can download a source for a similar project? Or a fully functional RADSCHEDULER with such complexity.
Note that i have also seen the telerik radscheduler examples, therefore, would request you not send me the link.

You help is highly appreciated.

God bless you and long live telerik.

Robert
kaethy
Top achievements
Rank 1
 answered on 28 Jun 2011
1 answer
86 views

I'm trying to loop through all selected rows via with the code below and it works fine until I ReOrder the columns. 
At that point, it returns the value in the column to the right of  it.  No matter how many times I reorder it, it always returns the value to the right. 

Code Behind:

For Each gdi As GridDataItem In rgTimeMaterial.SelectedItems
    jn = gdi("Customer").Text
Next

 

Asp.Net:

 

<t:RadGrid ID="rgTimeMaterial" runat="server" PageSize="200" AllowPaging="True" AllowSorting="True"
 AllowMultiRowSelection="true" Width="995" Height="412px" GridLines="Both" ShowFooter="true">
 <HeaderStyle Width="100" Wrap="false" />
 MasterTableView EnableHeaderContextMenu="true" CellPadding="0" CellSpacing="0" AllowMultiColumnSorting="true"
 Width="100%" ClientDataKeyNames="Job_Number">
 <CommandItemSettings ExportToPdfText="Export to Pdf" />
 <Columns>
 <t:GridClientSelectColumn HeaderStyle-Width="35" UniqueName="ClientSelectColumn" />
 </Columns>
 MasterTableView>
<ItemStyle Font-Names="Arial,Helvetica,sans-serif" Font-Size="9pt" Wrap="false" />
<ClientSettings ColumnsReorderMethod="Reorder" AllowColumnsReorder="True" AllowColumnHide="true"
ReorderColumnsOnClient="True">
<ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="OnRowDblClick" OnRowCreated="RadGrid1_RowCreated"
OnRowSelected="RadGrid1_RowSelected" OnRowDeselected="RadGrid1_RowDeselected"
OnGridCreated="GridCreated" />
<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
<Scrolling SaveScrollPosition="true" AllowScroll="true" UseStaticHeaders="True">
</Scrolling>
<Resizing AllowColumnResize="true" EnableRealTimeResize="true" ShowRowIndicatorColumn="true"
ClipCellContentOnResize="true" AllowResizeToFit="true" />
</ClientSettings>
<PagerStyle Position="Top" Mode="NextPrevAndNumeric" AlwaysVisible="true" />
</t:RadGrid>

Iana Tsolova
Telerik team
 answered on 28 Jun 2011
1 answer
85 views
I changed my column type from GridBoundColumn to GridDateTimeColumn using the datepicker control. When I edit a row I don't see the textbox with the date in it (see image).  Also how to control the position of the calender control
<%--<telerik:GridBoundColumn SortExpression="EffectiveDate"
                               HeaderText="EffectiveDate" HeaderButtonType="TextButton"
                               DataField="EffectiveDate" UniqueName="EffectiveDate"
                               DataFormatString="{0:MM/dd/yyyy}" Visible="True">
                                <HeaderStyle Width="80px" />
                           </telerik:GridBoundColumn>--%>
                           <telerik:GridDateTimeColumn DataField="EffectiveDate" DataFormatString="{0:MM/dd/yyyy}" PickerType="DatePicker"
                               HeaderText="EffectiveDate" SortExpression="EffectiveDate" DataType="System.DateTime"
                               UniqueName="EffectiveDate" EditDataFormatString="MM/dd/yyyy" >
                               <HeaderStyle Width="170px" />
                           </telerik:GridDateTimeColumn>
.
Iana Tsolova
Telerik team
 answered on 28 Jun 2011
1 answer
80 views
Hi,

Is there an easy way to get the default AdvancedEditTemplate for the scheduler?  I want to tweak the default, but not have to re-write it from scratch and I can't seem to find it.

Thanks.
Plamen
Telerik team
 answered on 28 Jun 2011
8 answers
222 views
When trying to use a .NET DateTimeOffset property for the RadScheduler.DataStartField and DataEndField property, I get the following error on DataBind:

Unable to cast object of type 'System.DateTimeOffset' to type 'System.IConvertible'

Is it possible to use DateTimeOffset as a data field?

Thanks.
Plamen
Telerik team
 answered on 28 Jun 2011
2 answers
156 views
Dear All,

  In radgrid set ShowHeader="false" because no need header. But we need filter for columns. I set Allowfilter="False" but its not working.
can u pls sort out this problem.

thanks
Vinoth
vinoth sansar
Top achievements
Rank 2
 answered on 28 Jun 2011
1 answer
77 views
We are supporting several languages on the same site, and have discovered that not all of the button tooltips are localizable in the current RadEditor Table Wizard (Class Picker, Color Picker, Alignment Selector), further the included CSS has truncation issues (we were able to use our own CSS, notably the tab lengths were of issue) and finally the included sample table makes use of a "calendar months" and "cardinal directions" which aren't localizable into the users culture. (we are using version 2011.1.314.35)

Please see the attached screen captures for more details.
Dobromir
Telerik team
 answered on 28 Jun 2011
5 answers
228 views
I need a breadcrumb to list the nodes of the selected node in a treeview.

so basically I want the same as this demo but with a treeview for the selector instead of another menu.
http://demos.telerik.com/aspnet-ajax/menu/examples/programming/showpath/defaultcs.aspx?Page=Renewals%20&%20Upgrades
Kate
Telerik team
 answered on 28 Jun 2011
1 answer
98 views
Hello! I have a problem with the localization of the grid (I do everything as in your example http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/localization/defaultcs.aspx! But for some reason when you first change the values ​​in the combobox, nothing happens (when the next change lauguage in combobox  language change but on the contrary ((
W
hen I choose the language A chosen  language B and vice versa ((Why is this happening? I use Dnn!!!
Pavlina
Telerik team
 answered on 28 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?