Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
This is an issue that has existed for several months now, and I was wondering if anybody has a workaround for this issue.

To replicate it, go to this demo page, using Chrome or Safari.
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

Without scrolling the page, verify that you can highlight text and choose a "Paragraph Style" of "Header 1", and verify that it changes the text to H1.  Also verify that the table insertion toolbar item and the symbol insertion toolbar item both work as expected.

Now, scroll the page down a little bit, while leaving the editor visible on the page.  You can now verify that changing to H1 now doesn't work, and other functions like table insertion and symbol insertion don't work.

This is a dealbreaker for us.  Our editors are all placed on pages where the user has to have scrolled to get to the editor (as the content of the editor is one of many properties of an event, for example.)

Has anybody worked around this issue?
Dobromir
Telerik team
 answered on 02 Dec 2009
1 answer
180 views
Hello,
I have 2 Tables in the database Employee and Deprtament. I get these 2 tables from the database using NHibernate.After doing that I get a Department Object of type IList. Inside that object I have Employee collection.
When I try to bind this Department object to one level grid (Non-Hierarchical it works fine, I see all the departments in the grid
Now I am trying to create a Hierarchical grid where Master grid will display all departments and each department can be expanded to see employees.
Here is the thing, I am trying to bind my Deprtment object to a parent grid, Parent Grid has a proprty called DataSourceID When I do

RadGrid1.DataSourceID =

"Department" I get an error saying "The DataSourceID of 'RadGrid1' must be the ID of a control of type IDataSource"
I am not sure how to do this and also how to specify DataSourceID for the detailTables since the DataSourceID in this case is Deprtments too.

I can access items in my department as follows (Without the grid)
Master Grid- Department.DepartmentID
DetailGrid - Department.Employee.EmployeeID

I would really appreciate if somebody can help me.

Thank you

Nick..

 

Princy
Top achievements
Rank 2
 answered on 02 Dec 2009
3 answers
147 views
How can I detect if the FileExplorer is empty?

Fiko
Telerik team
 answered on 02 Dec 2009
3 answers
110 views
I have three grids on one aspx page.  The second and third grids are dependant upon the first grid (in that each time the selected row changes for the first grid, the second and third grids data changes).  The selected values are able to change correctly on all grids, however when trying to edit or insert an item into the second or third grid, the grids disappear and i can't get into any of the events to debug.  Here's the problematic aspx page:

 <h3>Media</h3>

    <asp:Label ID="lblErrorMessage" ForeColor="Red" runat="server" />

    <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True"

        AllowSorting="True" AllowFilteringByColumn="False" OnPreRender="RadGrid1_PreRender"

        OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand"

        OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand"

        PageSize="5" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">

        <MasterTableView Width="100%" EditMode="PopUp" DataKeyNames="CleanupUnitAffectedMediaId"

            CommandItemDisplay="Top" AutoGenerateColumns="false" EditFormSettings-PopUpSettings-Width="50%">

            <EditFormSettings UserControlName="CleanupUnitMediaUC.ascx" EditFormType="WebUserControl"

                PopUpSettings-Modal="true">

                <EditColumn UniqueName="EditCommandColumn1">

                </EditColumn>

                <FormTemplate>

                    <uc1:Media ID="Media" runat="server" />

                </FormTemplate>

                <PopUpSettings Modal="True"></PopUpSettings>

            </EditFormSettings>

            <RowIndicatorColumn>

                <HeaderStyle Width="20px"></HeaderStyle>

            </RowIndicatorColumn>

            <ExpandCollapseColumn>

                <HeaderStyle Width="20px"></HeaderStyle>

            </ExpandCollapseColumn>

            <Columns>

                <telerik:GridButtonColumn Text="Select" CommandName="Select" />

                <telerik:GridBoundColumn DataField="CleanupUnitAffectedMediaType.CleanupUnitAffectedMediaTypeDisplayName"

                    HeaderText="Media" ReadOnly="True" SortExpression="CleanupUnitAffectedMediaTypeId"

                    UniqueName="CleanupUnitAffectedMediaTypeId">

                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="CleanupUnitMediaContaminantStatusType.CleanupUnitMediaContaminantStatusTypeDisplayName"

                    HeaderText="Status" ReadOnly="True" SortExpression="CleanupUnitMediaContaminantStatusTypeId"

                    UniqueName="CleanupUnitMediaContaminantStatusTypeId">

                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="CleanupUnitMethodType.CleanupUnitMethodTypeDisplayName"

                    HeaderText="Method" ReadOnly="True" SortExpression="CleanupUnitMethodTypeId"

                    UniqueName="CleanupUnitMethodTypeId">

                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="CleanupUnitDrinkingWaterUseType.CleanupUnitDrinkingWaterUseTypeDisplayName"

                    HeaderText="Drinking Water" ReadOnly="True" SortExpression="CleanupUnitDrinkingWaterUseTypeId"

                    UniqueName="CleanupUnitDrinkingWaterUseTypeId">

                </telerik:GridBoundColumn>

                <telerik:GridEditCommandColumn />

                <telerik:GridClientDeleteColumn />

            </Columns>

        </MasterTableView>

    </telerik:RadGrid>

   

     <h3><u>Media Details</u></h3>

     <h4>Contaminant</h4>

    <telerik:RadGrid ID="RadGrid2" runat="server" GridLines="None" AllowPaging="True"

        AllowSorting="True" AllowFilteringByColumn="False" OnPreRender="RadGrid2_PreRender"

        OnNeedDataSource="RadGrid2_NeedDataSource" OnUpdateCommand="RadGrid2_UpdateCommand"

        OnInsertCommand="RadGrid2_InsertCommand" OnDeleteCommand="RadGrid2_DeleteCommand"

        PageSize="3" OnSelectedIndexChanged="RadGrid2_SelectedIndexChanged">

        <MasterTableView Width="100%" EditMode="PopUp" DataKeyNames="CleanupUnitContaminantId"

            CommandItemDisplay="Top" AutoGenerateColumns="false" EditFormSettings-PopUpSettings-Width="50%">

            <EditFormSettings UserControlName="CleanupUnitContaminantUC.ascx" EditFormType="WebUserControl"

                PopUpSettings-Modal="true">

                <EditColumn UniqueName="EditCommandColumn2">

                </EditColumn>

                <FormTemplate>

                    <uc1:Contaminant ID="Contaminant" runat="server" />

                </FormTemplate>

                <PopUpSettings Modal="True"></PopUpSettings>

            </EditFormSettings>

            <RowIndicatorColumn>

                <HeaderStyle Width="20px"></HeaderStyle>

            </RowIndicatorColumn>

            <ExpandCollapseColumn>

                <HeaderStyle Width="20px"></HeaderStyle>

            </ExpandCollapseColumn>

            <Columns>

                <telerik:GridButtonColumn Text="Select" CommandName="Select" />

                <telerik:GridBoundColumn DataField="CleanupUnitContaminantType.CleanupUnitContaminantTypeDisplayName"

                    HeaderText="Contaminant" ReadOnly="True" SortExpression="CleanupUnitContaminantTypeId"

                    UniqueName="CleanupUnitContaminantTypeId">

                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="CleanupUnitMediaContaminantStatusType.CleanupUnitMediaContaminantStatusTypeDisplayName"

                    HeaderText="Status" ReadOnly="True" SortExpression="CleanupUnitMediaContaminantStatusTypeId"

                    UniqueName="CleanupUnitMediaContaminantStatusTypeId">

                </telerik:GridBoundColumn>

                <telerik:GridEditCommandColumn />

                <telerik:GridClientDeleteColumn />

            </Columns>

        </MasterTableView>

    </telerik:RadGrid>

   

     <h4>Technology</h4>

    <telerik:RadGrid ID="RadGrid3" runat="server" GridLines="None" AllowPaging="True"

        AllowSorting="True" AllowFilteringByColumn="False" OnPreRender="RadGrid3_PreRender"

        OnNeedDataSource="RadGrid3_NeedDataSource" OnUpdateCommand="RadGrid3_UpdateCommand"

        OnInsertCommand="RadGrid3_InsertCommand" OnDeleteCommand="RadGrid3_DeleteCommand"

        PageSize="3" OnSelectedIndexChanged="RadGrid3_SelectedIndexChanged">

        <MasterTableView Width="100%" EditMode="PopUp" DataKeyNames="CleanupUnitTechnologyId"

            CommandItemDisplay="Top" AutoGenerateColumns="false" EditFormSettings-PopUpSettings-Width="50%">

            <EditFormSettings UserControlName="CleanupUnitTechnologyUC.ascx" EditFormType="WebUserControl"

                PopUpSettings-Modal="true">

                <EditColumn UniqueName="EditCommandColumn1">

                </EditColumn>

                <FormTemplate>

                    <uc1:Technology ID="Technology" runat="server" />

                </FormTemplate>

                <PopUpSettings Modal="True"></PopUpSettings>

            </EditFormSettings>

            <RowIndicatorColumn>

                <HeaderStyle Width="20px"></HeaderStyle>

            </RowIndicatorColumn>

            <ExpandCollapseColumn>

                <HeaderStyle Width="20px"></HeaderStyle>

            </ExpandCollapseColumn>

            <Columns>

                <telerik:GridButtonColumn Text="Select" CommandName="Select" />

                <telerik:GridBoundColumn DataField="CleanupUnitTechnologyType.CleanupUnitTechnologyTypeDisplayName"

                    HeaderText="Technology" ReadOnly="True" SortExpression="CleanupUnitTechnologyTypeId"

                    UniqueName="CleanupUnitTechnologyTypeId">

                </telerik:GridBoundColumn>

                 <telerik:GridBoundColumn DataField="CommentDescription" HeaderText="Comments"

                    ReadOnly="True" SortExpression="CommentDescription" UniqueName="CommentDescription"

                    DataType="System.String">

                </telerik:GridBoundColumn>

                <telerik:GridEditCommandColumn />

                <telerik:GridClientDeleteColumn />

            </Columns>

        </MasterTableView>

    </telerik:RadGrid>

Mira
Telerik team
 answered on 02 Dec 2009
1 answer
164 views
Hello,

Is there any chance there will be quality ASP.NET ribbon controls in the future ? (very near future :) ) ?

Sebastian
Telerik team
 answered on 02 Dec 2009
1 answer
126 views
I have a RadWindow that pops up with a couple of different FormViews on it.  Each of these can be edited independently, etc.

I also have a RadComboBox on the top of my page, then should display the surrent "state" of the record. When it is changed I update the state as follows:

Protected Sub list_appState_SelectedIndexChanged(ByVal o As ObjectByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) 
 
 
            Dim record As Integer = (TryCast(Parent.FindControl("GridRec"), Label)).Text 
            Dim AppState As String = (TryCast(formview_AppInfo.FindControl("list_appState"), RadComboBox)).SelectedValue 
 
            Dim UpdateSuccess As Integer = Applications.UpdateAppState(record, AppState) 
 
            If UpdateSuccess > 0 Then 
                lbl_status.Text = String.Format("<br />The Application Status has been updated to '{0}' for record: {1}.<br /><br />", AppState, record) 
                Dim grid As RadGrid = (TryCast(Parent.FindControl("grid_applications"), RadGrid)) 
            End If 
 
    End Sub 

This works correctly.  HOWEVER, every single time I click edit on any of my other formviews on the page, the combobox index gets changed and this gets called so it updates it automatically just by putting on of my formviews in edit mode.

Here is the combobox control on the page.

<telerik:RadComboBox ID="list_appState" Runat="server" Skin="Sunset" SelectedValue='<%# Bind("app_state") %>' AutoPostBack="True" OnSelectedIndexChanged="list_appState_SelectedIndexChanged"
                <Items> 
                    <telerik:RadComboBoxItem runat="server" Text="New/Working Lead" Value="New" ForeColor="Blue" /> 
                    <telerik:RadComboBoxItem runat="server" Font-Bold="True" 
                        Text="Dead Lead" Value="Dead" ForeColor="Red" /> 
                    <telerik:RadComboBoxItem runat="server" Font-Bold="True" 
                        Text="Sold To Customer" Value="Sold" ForeColor="Green" /> 
                        <telerik:RadComboBoxItem runat="server" Text="Customer Appointment"  
                        Value="Appointment" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> 
                        <telerik:RadComboBoxItem runat="server" Text="Call Back" Value="Call Back" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> 
                        <telerik:RadComboBoxItem runat="server" Text="Email Customer" Value="Email Customer" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> 
                        <telerik:RadComboBoxItem runat="server" Text="Follow Up" Value="Follow Up" Enabled="False" ForeColor="#BA3D05" Font-Bold="True" /> 
                        <telerik:RadComboBoxItem runat="server" Font-Bold="True" 
                        Text="Credit Accepted" Value="Credit Accepted" Enabled="False" ForeColor="Green" /> 
                        <telerik:RadComboBoxItem runat="server" Font-Bold="True" 
                        Text="Credit Declined" Value="Credit Declined" Enabled="False" ForeColor="Red" /> 
                        <telerik:RadComboBoxItem runat="server" Font-Bold="True" 
                        Text="Credit Pending" Value="Credit Pending" Enabled="False" ForeColor="#BA3D05" /> 
                </Items> 
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </telerik:RadComboBox> 

It is binded to the right control, but why when any of the other forms go into edit mode does it switch to 'New' and then run the index changed event?  This shouldn't be executing at all unless the dropdown is physically changed right?



Simon
Telerik team
 answered on 02 Dec 2009
3 answers
129 views
Hi,
        I am using a treeview where I need to do some server side validation when user unchecks a node. I am using the 

onnodecheck

 

event  to capture the checkbox check event in the server side. However the server side method is called and a postback happen when a user both checks or unchecks a node. Is there a way of triggering the server side call only when user unchecks the checkbox. I need to restrict the page from making postback when user checks it.

Kindly let me know a solution

Thanks and Regards
Hemangajit

Veselin Vasilev
Telerik team
 answered on 02 Dec 2009
1 answer
67 views
hello..
i have xml file like this :
<?xml version="1.0" standalone="yes"?> 
<Pages> 
  <Menu> 
    <PageID>54</PageID> 
    <PageDisplayName>ÄŸpoı</PageDisplayName> 
  </Menu> 
  <Menu> 
    <PageID>56</PageID> 
    <PageDisplayName>Baba Sayfa</PageDisplayName> 
  </Menu> 
  <Menu> 
    <PageID>1</PageID> 
    <PageDisplayName>Ana Sayfa</PageDisplayName> 
    <Sr>0</Sr> 
    <Menu> 
      <PageID>52</PageID> 
      <PageDisplayName>Yeni Kategori</PageDisplayName> 
      <ParentId>1</ParentId> 
    </Menu> 
    <Menu> 
      <PageID>53</PageID> 
      <PageDisplayName>Deneme içeriÄŸi</PageDisplayName> 
      <ParentId>1</ParentId> 
    </Menu> 
    <Menu> 
      <PageID>55</PageID> 
      <PageDisplayName>ÄŸpoı222</PageDisplayName> 
      <ParentId>1</ParentId> 
    </Menu> 
  </Menu> 
<Pages> 

i want to bind this xml file to editors custom links dropdown. i need recusively function like in this page... clickhere
please helpp..

Rumen
Telerik team
 answered on 02 Dec 2009
1 answer
274 views
Hi All,

Can any one please help me hot  to set a label text on drop down selected change in side grid edit mode using c#.
Shinu
Top achievements
Rank 2
 answered on 02 Dec 2009
1 answer
225 views
My requirement is to have a textbox that is in password mode (password textbox) with the default text of "Password." When typing the text becomes asterisks or dots. And goes back to "Password" when cleared.

There are examples out there that will show/hide 2 textboxes using javascript or jquery that accomplish this.  However I can only get it to work with regular input html fields.

Does someone know of some way (perhaps using telerik's jquery) to get this to work with RadTextBox.

Thanks
Dimo
Telerik team
 answered on 02 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?