Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
143 views
Hi,
I need to reduce the panel bar item height. I have overwrite in the css file. but its not reflecting in the UI (other chanes are reflecting). Pls help me to achieve this

.RadPanelBar_Web20 .rpGroup .rpLink,
.RadPanelBar_Web20 .rpGroup .rpTemplate
{
    color: #000;
    background-color: transparent;
    background-image: none;
        
    line-height: 5px;
    min-height:  5px;
}
* html .RadPanelBar_Web20 .rpGroup .rpLink { height: 5px; }

Thanks,
Jeevitha
jeevitha
Top achievements
Rank 1
 answered on 02 Dec 2009
9 answers
561 views
Hello,

We are using the trial version of ths RadControls for ASP.NET AJAX. It's a great suite and we are going to purchase it. But we have a big issue that prevent us about this purchase. That's the only point we need to have it solved before.

We have the main dll referenced in a Web Application Project. We use Visual Studio 2008, and .NET 3.5.

It compiles and run without any problem. But sometimes (a lot of them), when we stop the application while debugging, and make some changes on the code (nothing related to Telerik RadControls), when we try to apply changes and continue debugging, the compiler fails with the following error:

Metadata file ‘Telerik.Web.UI dll' could not be opened -- 'Not enough storage is available to process this command'

As you would expect, that's terribly annoying, having to stop and recompile, and having the "Edit and Continue" feature as it was disabled.

Can you help us?

Thanks
Sebastian
Telerik team
 answered on 02 Dec 2009
2 answers
118 views
Hello, everyone,
I have a problem with a grid that has as datasource a List of custom items of type Entry. I added in the list of columns only a part of the fields in the Entry and yet it seems to show up all the fields. Is there anything I am missing?

Lucian
lucian ticrea
Top achievements
Rank 1
 answered on 02 Dec 2009
2 answers
129 views

Senario:

i have a Raddatetimepicker that has a format "dd/MM/yyyy HH:mm" in serverside pageload then assign the present date to it. Example December  2 ,2009  7:30 am  the display is   "02/12/2009 07:30". Every 15 seconds it would update its time. I have a java script that triggers ClientEvents-OnLoad = OnDtpLoad

 

 

 

the javascript would look like this:

function OnDtpLoad(){

 

    var

 

 dtpTime = $find("<%=RadDateTimePicker.ClientID%>");

 

 

    var updateDate = new Date();   

 

    dtpTime.set_selectedDate(updateDate );

 

    var

 

t = setTimeout(OnDtpLoad()', 15000);

}
this function would trigger ever 15 seconds to update the datepicker.

Problem:
    
if you look at it,  you would expect that the datepicker display would be "02/12/2009 07:30"  but instead it display this "12/02/2009 07:30". with a value of Febuary 12, 2009 7:30 am..

Why is this so???  I have tried formating the date in javascript but it will return Febuary.
if you would do this:
    dtpTime.set_selectedDate(dtpTime.get_selectedDate());
    the display would be first December next update would be Febuary then December then Febuary and so on..
.........
I think is because of the Format dd/mm/yyyy since in the format mm/dd/yyyy the display is OK.....

Please help...
    I'm using Q1 2009 and  I'm in a country where the format is mm/dd/yyyy but i need the format dd/mm/yyyy
 

Dimo
Telerik team
 answered on 02 Dec 2009
1 answer
81 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
187 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
155 views
How can I detect if the FileExplorer is empty?

Fiko
Telerik team
 answered on 02 Dec 2009
3 answers
124 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
173 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
132 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 Object, ByVal 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?