Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
I am moving item from one grid to another grid successfully.

Problem is when i drag item from one grid to another i need to rebind grid which update whole grid.
I just want to update particular row, is it possible ?
Pavlina
Telerik team
 answered on 04 Aug 2011
1 answer
73 views
Hi Folks,

I am new to Telerik ORM.

I have a telerik grid with openaccessdatasource with delete and update enabled, the grid shows the current data but when i try to edit/update them it does not work, the changes are not made.

what am i doeing wrong, this is my code:

<%@ Page Title="" Language="C#" MasterPageFile="~/Operator.Master" AutoEventWireup="true"
    CodeBehind="Channels.aspx.cs" Inherits="IMS_Telerik.Operators.Prepare.TelevisionRadio.Channels" %>
 
<%@ Register Assembly="Telerik.OpenAccess.Web" Namespace="Telerik.OpenAccess" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
  
    <table cellpadding="0" cellspacing="0" style="border: none;" width="100%">
        <tr>
            <td style="border: none;" valign="top" width="300px">
                <table width="300px" cellpadding="0" cellspacing="0" style="padding: 5px;  
  border: solid 1px #e8eef4; margin-right:15px;">
                    <tr>
                        <td valign="top" style="margin-right: 15px">
                            <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Black" Width="100%">
                                <Items>
                                    <telerik:RadPanelItem runat="server" Expanded="True" Text="Actions">
                                        <Items>
                                            <telerik:RadPanelItem runat="server" Height="30px"
                                                ImageUrl="~/Images/Icons/Menu/rtvchannel.png" Selected="True" Text="Channels">
                                            </telerik:RadPanelItem>
                                            <telerik:RadPanelItem runat="server" Height="30px"
                                                ImageUrl="~/Images/Icons/Menu/rtvchannel-add.png"
                                                NavigateUrl="~/Operators/Prepare/TelevisionRadio/AddChannels.aspx"
                                                Text="Add Channel">
                                            </telerik:RadPanelItem>
                                        </Items>
                                    </telerik:RadPanelItem>
                                </Items>
                            </telerik:RadPanelBar>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="border: none;" valign="top">
                <table width="100%" cellpadding="0" cellspacing="0" style="padding: 5px;  
  border: solid 1px #e8eef4;">
                    <tr>
                        <td valign="top">
                            <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"
                                DataSourceID="OpenAccessDataSource1" GridLines="None" Skin="Black"
                                AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
                                AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"
                                ShowGroupPanel="True">
                                <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True"
                                    ReorderColumnsOnClient="True">
                                    <Selecting AllowRowSelect="True" />
                                    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                                </ClientSettings>
<MasterTableView AutoGenerateColumns="False" DataSourceID="OpenAccessDataSource1">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="Channel_id" DataType="System.UInt32"
            FilterControlAltText="Filter Channel_id column" HeaderText="Channel_id"
            SortExpression="Channel_id" UniqueName="Channel_id">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_epg_id"
            FilterControlAltText="Filter Channel_epg_id column" HeaderText="Channel_epg_id"
            SortExpression="Channel_epg_id" UniqueName="Channel_epg_id" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_name"
            FilterControlAltText="Filter Channel_name column" HeaderText="Channel_name"
            SortExpression="Channel_name" UniqueName="Channel_name">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_image"
            FilterControlAltText="Filter Channel_image column" HeaderText="Channel_image"
            SortExpression="Channel_image" UniqueName="Channel_image">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_image_icon"
            FilterControlAltText="Filter Channel_image_icon column"
            HeaderText="Channel_image_icon" SortExpression="Channel_image_icon"
            UniqueName="Channel_image_icon" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_level"
            FilterControlAltText="Filter Channel_level column" HeaderText="Channel_level"
            SortExpression="Channel_level" UniqueName="Channel_level" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_category"
            FilterControlAltText="Filter Channel_category column"
            HeaderText="Channel_category" SortExpression="Channel_category"
            UniqueName="Channel_category" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_group"
            FilterControlAltText="Filter Channel_group column" HeaderText="Channel_group"
            SortExpression="Channel_group" UniqueName="Channel_group">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_epg"
            FilterControlAltText="Filter Channel_epg column" HeaderText="Channel_epg"
            SortExpression="Channel_epg" UniqueName="Channel_epg" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_type"
            FilterControlAltText="Filter Channel_type column" HeaderText="Channel_type"
            SortExpression="Channel_type" UniqueName="Channel_type" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_archive"
            FilterControlAltText="Filter Channel_archive column"
            HeaderText="Channel_archive" SortExpression="Channel_archive"
            UniqueName="Channel_archive" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_direct"
            FilterControlAltText="Filter Channel_direct column" HeaderText="Channel_direct"
            SortExpression="Channel_direct" UniqueName="Channel_direct" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_url"
            FilterControlAltText="Filter Channel_url column" HeaderText="Channel_url"
            SortExpression="Channel_url" UniqueName="Channel_url">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_block_url"
            FilterControlAltText="Filter Channel_block_url column"
            HeaderText="Channel_block_url" SortExpression="Channel_block_url"
            UniqueName="Channel_block_url" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_block_name"
            FilterControlAltText="Filter Channel_block_name column"
            HeaderText="Channel_block_name" SortExpression="Channel_block_name"
            UniqueName="Channel_block_name" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_block_timeshift"
            FilterControlAltText="Filter Channel_block_timeshift column"
            HeaderText="Channel_block_timeshift" SortExpression="Channel_block_timeshift"
            UniqueName="Channel_block_timeshift" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Channel_auth"
            FilterControlAltText="Filter Channel_auth column" HeaderText="Channel_auth"
            SortExpression="Channel_auth" UniqueName="Channel_auth">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
                            </telerik:RadGrid>
                            
                        
                            <telerik:OpenAccessDataSource ID="OpenAccessDataSource1" runat="server"
                                ObjectContextProvider="IMS_Telerik.EntitiesModel, IMS Telerik"
                                TypeName="IMS_Telerik.Channel" Where="" EnableDelete="true"
                                EnableUpdate="true">
                             <UpdateParameters>
                             <asp:Parameter Name="Channel_name" DbType="String" />
                             </UpdateParameters>
                            </telerik:OpenAccessDataSource>
                            
                        
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>


Thanks for your help!

Regards Sander
Pavel
Telerik team
 answered on 04 Aug 2011
2 answers
121 views
Hi Telerik,

Recently I'm developing a ASP.NET website on window azure and i happen to use radImageEditor. I have a photo that store on the container that i hosted on Window Azure. 

http://histromon.blob.core.windows.net/landmarkimage/Koala.jpg

But when i set the imageurl of radImageEditor. it gave me an error of invalid virtual path. Any way i can solve it ?

Regards,
ER AN
Dobromir
Telerik team
 answered on 04 Aug 2011
0 answers
104 views
Hello!

At this moment I have 3 RadListBoxes side by side and an Button like the code bellow.
The purpose is to select items on the 3 listBoxes and click on the "assign" button, and select those select items on a Table on my database.

I have already my 3 ListBoxes populating data using DataBind().
Can you show me an example of doing that with MVP and Entity Framework? All the 3 list boxes have multiple selection, and i have already the edmx created for my database and the class for that table, i want to insert data named (UsersAssign).
<telerik:RadListBox ID="RadListBox1" runat="server" AllowReorder="True" Skin="Black"
        SelectionMode="Multiple" Sort="Ascending" Height="400px" Width="250px" EnableDragAndDrop="True">
        <ButtonSettings TransferButtons="All"></ButtonSettings>
        <HeaderTemplate>
            <h5 style="color: White; text-align: center">
                USERS</h5>
        </HeaderTemplate>
    </telerik:RadListBox>
    <telerik:RadListBox ID="RadListBox2" runat="server" SelectionMode="Multiple" EnableDragAndDrop="True"
        Height="400px" Width="200px" AllowReorder="True" Skin="Black">
        <ButtonSettings TransferButtons="All"></ButtonSettings>
        <HeaderTemplate>
            <h5 style="color: White; text-align: center">
                GROUPS</h5>
        </HeaderTemplate>
    </telerik:RadListBox>
    <telerik:RadListBox ID="RadListBox3" runat="server" SelectionMode="Multiple" EnableDragAndDrop="True"
        Height="400px" Width="200px" AllowReorder="True" Skin="Black">
        <ButtonSettings TransferButtons="All"></ButtonSettings>
        <HeaderTemplate>
            <h5 style="color: White; text-align: center">
                STAGING</h5>
        </HeaderTemplate>
    </telerik:RadListBox>
    <telerik:RadButton ID="RadButton1" runat="server" Text="Assign" Skin="Black" 
        Width="100px" Height="50px" onclick="RadButton1_Click">
    </telerik:RadButton>
Ricardo
Top achievements
Rank 1
 asked on 04 Aug 2011
1 answer
43 views
I want to expand child grid in heriarchical grid when some items are drag on it.

Could you please provide solution  ?

Pavlina
Telerik team
 answered on 04 Aug 2011
4 answers
157 views
Hi,

I am populating the radgrid by attaching a datasource where I have a dropdownlist in it.  My code goes something like mentioned below.

the value of the designation for the datasource from database has something like L1, L2, L3........

So I want to set the dropdown for the designation of the employee .

Ex :
EmployeeID=1
EmployeeName="safar"
EmpDesignation="L2"

So the dropdown should set to Level2 for the employeeid 1 and so on. I assume it can be done in ItemBound.

         <telerik:RadGrid ID="EmployeeGrid" runat="server"
                    AutoGenerateColumns="False" Width="455px"
                    onitemdatabound="EmployeeGrid_ItemDataBound" >
                    <ClientSettings AllowDragToGroup="True">
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        <Selecting AllowRowSelect="True"></Selecting>
                    </ClientSettings>
                    <MasterTableView AllowFilteringByColumn="False">
                        <Columns>
                            <telerik:GridBoundColumn ReadOnly="true" ItemStyle-Width="150px"  HeaderText="Employee Id"
                             DataField="EmployeeId"><ItemStyle Width="150px" ></ItemStyle>
                             </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn ReadOnly="true"  HeaderText="Employee Name"
                            DataField="EmployeeName" ItemStyle-Width="150px"><ItemStyle Width="150px"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText ="Designation" Visible="true">
                                <ItemTemplate>
                                     <asp:DropDownList ID="DesignationDropdownList" runat="server" >
                                        <asp:ListItem Text="Level1" Value="1"/>
                                        <asp:ListItem Text="Level2" Value="2"/>
                                        <asp:ListItem Text="Level3" Value="3"/>
                                        <asp:ListItem Text="Level4" Value="4"/>
                                     </asp:DropDownList>
                         </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>

                </telerik:RadGrid>
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Aug 2011
1 answer
83 views
Hi

I set the Date Time picker invalid style to my own custom class and it keeps insisting to use the default
:html body .RadInput_Default .riError, html body .RadInput_Error_Default

I override the RadDateTimePicker and set the class on the init

 protected override void OnInit(EventArgs e)
 {
DateInput.InvalidStyle.CssClass = "dateInputInvalid";
}

I use the following client side code to set the input invalid

fieldObj.get_dateInput()._invalid = true;
fieldObj.get_dateInput().updateCssClass();

Any Ideas what could be causing this?

Thanks
Rafal
Tsvetina
Telerik team
 answered on 04 Aug 2011
5 answers
74 views
Hello Telerik Team,
I am using RadDateTime Picker Control now i would like render this control based on some Criteria.
first If WeekDay of Selected Date is M-F then generate timeSlot 5:30 PM,8:30 PM in TimePicker
Second if its Saturday then 12:30 P.M. etc and Third if its sunday then some other timeslot.

Last i want to gray out all Past Date from CurrentDate so user cant select past Date

Please advise

Thank
Ronak
Tsvetina
Telerik team
 answered on 04 Aug 2011
3 answers
47 views
Hey Guys,
I've just updated our Telerik DLL to version 2011.2 712.
Now in a radScheduler that was working fine previously, no time slots are showing up when it loads in.
Only the "All Day" slot shows, followed by the "Show 24 hours" bar.
If I click "Show 24 Hours" they all appear.
Going back to business hours, the also appear just fine.
If I navigate days, they all appear on subsequent navigations
It seems it is the initial load which is blank.
The error does not appear to present with IE8.
My Firefox version is 3.6.18

Do you think this is a bug or am I needing to do something differently with my scheduler set up for the newer version?

thanks
Mark.
Nikolay Tsenkov
Telerik team
 answered on 04 Aug 2011
1 answer
67 views
Hi Friends,

I have two radgrids.

On click of a movebutton i am moving items from grid1 to grid2. and on click of removebutton the selected item from grid2 will be moved to grid1.
This will happen only on clientside and doesnot effect my database untill i click on Savebutton.

This should happen using ajax call.

Can anyone provide me any link or sample code for this?

Thanks,
Tsvetina
Telerik team
 answered on 04 Aug 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
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
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?