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

we are using telerik TreeList in our project but there are some missing base feature that obstacle out programming.
Here same examples :
- when paging is enables, second level items may appear some in current page and some other in next page
- edititem template is not present; so, if we need to save one row, we are forced to render all items with control that allow modification (eg. textbox, drop down)
- loadOnDemand for each node is missing, so we arte forced to load all data at a time

I need to know if this feature will be delivered in Q4 2010 version of Telerik ASP.NET Ajax Controls. When Q4 2010 will be avaiable (1 week/1 month)?

Thanks a lot for your support
Tsvetina
Telerik team
 answered on 14 Feb 2011
6 answers
148 views
I've been looking all over and can't seem to find "the way" to extend my appointments when using a webservice provider.

Thx
/Jesper 
Jesper Krejberg Petersen
Top achievements
Rank 2
 answered on 14 Feb 2011
0 answers
70 views
Hello,
I know that there is still no way to show this column in monthview, just dayview and weekview, but I need this ability for my program, which shows the working-time of employees. Ex: two work from 9:00 to 16:00 and then another two from 16:00 to 23:00. In current monthview it shows only 4 rows with the same length. So my questions are:
1. Is there any approach to accomplish this task? 5 (or 6) schedulers for 5 (or 6) weeks of the month?
2. Has Telerik ever planned to integrate this column in monthview in the next releases?
Thank you,
Thanh
Thanh
Top achievements
Rank 1
 asked on 14 Feb 2011
1 answer
88 views
Hi,

I need to get the RadFileManager to use a different RadWindowManager to the one it uses as its default. Is this possible? The RadWindowManager property is read only but I need to set it to use an existing RadWindowManager that already resides on the page.

Thanks in advance!
Dobromir
Telerik team
 answered on 14 Feb 2011
1 answer
107 views
My linq expression:

Root root = Root.GetInstance();
           var betriebe =
               from w in root.Query(Betrieb.Entity).ToArray()
               select new
               {
                   Betriebegruppe = "0",
                   Betrieb = w.Get(Betrieb.Werk),
                   Name = w.Get(Betrieb.Name),
                   Strasse = w.Get(Betrieb.Strasse),
                   PLZ = w.Get(Betrieb.Postleitzahl),
                   Ort = w.Get(Betrieb.Ort),
                   EKORG = w.Get(Betrieb.Einkaufsorganisation)
               };
 

returns an iterator like this:

System.Linq.Enumerable.WhereSelectArrayIterator<P0300_DAL.Data.AnyObject,<>f__AnonymousType0<string,string,string,string,string,string,string>>

If I bind this as datasource to a radgrid everything works fine. But when I bind it to an radtreelist, the columns were generated but the content is empty.

Do I have to do more than: 
treelist.DataSource = betriebe;
?
Here is my treelist declaration:
<telerik:RadTreeList runat="server" ID="rtl" AllowSorting="True" AllowMultiItemSelection="True"
    CausesValidation="false" ParentDataKeyNames="Betriebegruppe" DataKeyNames="Betrieb"
    AllowPaging="True" PageSize="20" Width="100%">
    <Columns>
    <telerik:TreeListCheckBoxColumn ></telerik:TreeListCheckBoxColumn>
    </Columns>
    <ClientSettings>
        <Selecting AllowItemSelection="true" UseSelectColumnOnly="true" />
    </ClientSettings>
</telerik:RadTreeList>


Nikolay Rusev
Telerik team
 answered on 14 Feb 2011
3 answers
135 views
hi,  i'm using a physical path with radexplorer, as mentioned in the kb article.
how is it possible that the radexplorer has permissions to access the folder even if i don't set any special permissions to the folder?
Rumen
Telerik team
 answered on 14 Feb 2011
3 answers
194 views
Hi,

We are trying to create a link button that will be used in a telerik grids edit template to launch a document that is stored in the database as a binary object. The issue is we have an encountered an error when the linkbutton is fired and runs the command in the item_command for the radgrid it errors out. We narrowed this down to being an issue with the response.Write so we were going to try the methods that were recommend in previous posts on this issue.

When we registered the control as a postbackcontrol with the scriptmanager it will not fire the command in the radgrids item_command method. The control is created in a seperate c# file from the radgrid and we need to know the datarow in order to pull the appropriate binary data for displaying the document.

Any help would be greatly appreciated,
Jonathan
Iana Tsolova
Telerik team
 answered on 14 Feb 2011
3 answers
390 views
Hi all
I have a RadGird and using Dropdownlist in RadGrid for User EditMode in RadGrid
Everything's fine, but when Editmode in RadGrid ...how i can load data in DropDownList for uers change value.?
When i debug i has error ..Object reference not set to an instance of an object.
<telerik:RadGrid ID="RadGrid1"
                        AutoGenerateColumns="False"  AllowSorting="False" AllowPaging="True" PageSize="300"
                        runat="server" GridLines="None" Width="100%"
                        onneeddatasource="RadGrid1_NeedDataSource"
                        onupdatecommand="RadGrid1_UpdateCommand"                   
                        onitemdatabound="RadGrid1_ItemDataBound" >
 <telerik:GridTemplateColumn HeaderText="UnitPrice" SortExpression="UnitPrice" UniqueName="TemplateColumn" >
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="ctract_type" Text='<%# Eval("ddlContact_type") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       <asp:dropdownlist id="ddlContact_type" runat="server" >
                                         </asp:dropdownlist>
                                    </EditItemTemplate>
    </telerik:GridTemplateColumn>
Code behind

 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {

        DropDownList ddlContact_type = new DropDownList();
        ddlContact_type = (DropDownList)e.Item.FindControl("ddlContact_type");
        OracleConnection Conn = new OracleConnection("Data Source=ORCL;Persist Security Info=True;User ID=Test;Password=123;Unicode=True");
        OracleCommand cmd = new OracleCommand();
        cmd.Connection = Conn;
        cmd.CommandType = CommandType.Text;
        cmd.CommandText = "select ID,NAME from contact_type ";
        Conn.Open();
        try
        {
            OracleDataReader OrclReader = cmd.ExecuteReader();

            if (OrclReader.HasRows)
            {
                ddlContact_type.DataSource = OrclReader; //Error Object reference not set to an instance of an object.
               ddlContact_type.DataTextField = "NAME";
                ddlContact_type.DataValueField = "ID";
                ddlContact_type.DataBind();

            }
        }
        finally
        {
            Conn.Close();
        }
    }
Thank you
Chris
Shinu
Top achievements
Rank 2
 answered on 14 Feb 2011
1 answer
52 views
I have a date input where a user can choose to enter a date and time, or they can click on a button to load the current date and time.  I would prefer to set the value with client-side code if they click the button, but I cannot get it to work.  It will enter the current date, but not the time.  My control looks like:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script language="javascript" type="text/javascript">
      function setDateTimeAcknowledged() {
        var toDay = new Date();
        alert("toDay = " + toDay);
        var dateInput = $find("<%= dateAcknowledged.ClientID %>");
        dateInput.set_selectedDate(toDay);
      }
      function setEstReturnDate() {
        var toDay = new Date();
        var dateInput = $find("<%= dateEstimatedReturn.ClientID %>");
        dateInput.set_selectedDate(toDay);
      }
    </script>
</telerik:RadCodeBlock>
...
<telerik:RadDateInput ID="dateAcknowledged" runat="server" DisplayDateFormat="MM/dd/yyyy HH:mm" Width="125" CssClass="NotRequired" />
<telerik:RadToolTip ID="tipDateAcknowledge" runat="server" HideEvent="LeaveTargetAndToolTip" TargetControlID="dateAcknowledged" 
    Position="BottomRight" RelativeTo="Element" ShowEvent="OnMouseOver" 
    Text="mm/dd/yyyy HH:mm (24HR) format less than or equal to today's date" />
<asp:Button ID="btnAckNow" runat="server" Text="Now" CausesValidation="false" 
    OnClientClick="setDateTimeAcknowledged(); return false;" />

If I click on the button, the results will have the right date but not the time.  For example, if I run it right now I get "02/11/2011 00:00" inserted in the raddateinput field, while the alert shows "toDay = Fri Feb 11 15:56:36 CST 2011".

If I remove the OnClientClick parameter from the button, it will execute the server-side code that I have coded for the button.  It looks like:

Protected Sub btnAckNow_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAckNow.Click
    dateAcknowledged.SelectedDate = Date.Now
  End Sub

The results are now '02/11/2011 15:57".

How do I need to code the client-side code so that it properly loads both the date and the time in the control?

Thank you!


Shinu
Top achievements
Rank 2
 answered on 14 Feb 2011
4 answers
108 views
Hello,

I have what is most likely a common scenario and I'm sure there's a solution lingering in these forums that I can't find.  I have a RadTabStrip and corresponding RadPageViews.  The content of each PageView is a UserControl on which is a RadGrid.  Each RadGrid has a RadToolBar within the CommandItemTemplate.  Here's my use case.  On tab A, user selects a bunch of rows on the grid and clicks the toolbar button "Move to Trash".  This in turn removes these items from the RadGrid on tab A and moves them into the RadGrid on tab B.  I would like to use the RadAjaxManager and specify that the grid on Tab A should update the grid on Tab B.  Given that these controls are logically seperated using UserControls, the RadAjaxManager does not see the other grid as an updatable control.

It's extremely important that these grids remain on seperate user controls so their corresponding code is logically seperated from each other.  I also do not want to update the entire TabStrip as that will cause huge performance issues.  Is there a solution to this?

Thanks,
Chris
TeleriikLover
Top achievements
Rank 1
 answered on 14 Feb 2011
Narrow your results
Selected tags
Tags
+124 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?