Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
99 views
I have an update panel and within it I have a grid that has date controls. When I load the grid for the first time I can manipulate the date control without an error. After a postback I get an error "Unspecified Error" when I click on date icon. If I disable the update panel the error disappears.
Whats the issue here?


Mon NN
Pavlina
Telerik team
 answered on 14 Jan 2010
2 answers
170 views
I have an ASP.NET project with a simple RadMenu. The menu is located within a MasterPage and works via "Response.Redirect" to various sub-pages, depending on user selection. I have one RadScriptManager in the MasterPage which works for all the sub-pages. Most of the menu works fine but there's one option called "New Account" which, whenever clicked, loads the correct page, but then causes the RadMenu to freeze up so nothing works. You can still hover over the menu options and 'drop-down' child items still appear, but the page doesn't postback, so no further option can be selected.  
The problem seems to occur for both IE7 and IE8. It's all the more strange because the "New Account" page can be accessed independently via another control, and in this instance the menu still works, even though it's running exactly the same code. Has anyone experienced something similar? Any pointers would really help.

Thanks,
Neill Davies - Nightfreight (GB) Ltd
Neill Davies
Top achievements
Rank 1
 answered on 14 Jan 2010
1 answer
112 views
I have a combobox using the default Office2007 skin that works fine.  However when enabled is changed to false it re-sizes to half its size.
This problem seems to be confined to the Office2007 skin because it works fine with using other skins.
I am using version 2008.03.1314.

Any help will be appreciated.  Thanks!
Yana
Telerik team
 answered on 14 Jan 2010
3 answers
94 views
Hello,
I have a grid with master table and detail tables (on one level).

For one of the detalil tables I used an edit form, I get an exception on the following line:

 

 

Dim

 

editor As GridColumnEditorBase = CType(item.EditManager.GetColumnEditor(strFieldName), GridColumnEditorBase)

 

 

The exception is:
The current EditFormType does not support the requested editing capabilities.

Any suggestions?

Pavlina
Telerik team
 answered on 14 Jan 2010
2 answers
139 views
Hi,
in RadGrid I'm using Popup Edit Form. When I inserted/updated a record this popup is closing. How to avoid this behavior and close the popup only if user clicks close button on the popup?
Pavlina
Telerik team
 answered on 14 Jan 2010
2 answers
260 views

Hi
I'm trying to change the caption/text on a GridButtonColumn, by code.
What i want is that the text on the PushButton is dependent on the value of a field.
The result is that I don’t see the push button, but only a text.
Can anybody tell me what I do wrong?

Thanks
Erik


aspx
<telerik:GridButtonColumn ButtonType="PushButton" text="Create" 
         UniqueName="versionFunction" HeaderText="Function"> 
    <HeaderStyle Width="100px"></HeaderStyle> 
</telerik:GridButtonColumn> 

C#
 protected void Grid_Versioner_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem dataItem = (GridDataItem)e.Item; 
            switch (dataItem["Status"].Text) 
            { 
                case "Created": 
                    dataItem["versionFunction"].Text = "Execute"; 
                    break; 
                case "Executing": 
                    dataItem["versionFunction"].Text = "Executeing"; 
                    break; 
            } 
        } 
    } 

Erik Hansen
Top achievements
Rank 1
 answered on 14 Jan 2010
8 answers
314 views
I want to put a hyperlink column in my grid but the gridhyperlinkcolumn is not editable.

I want it to be a hyperlinkcolumn in view mode and be editable in edit/insert mode.

Can I make it editable without using a Template column?
Denise Duggan
Top achievements
Rank 1
 answered on 14 Jan 2010
2 answers
125 views
Greets folks,
I want to set the end date to the start date when the start date chages.
I've followed instructions i found on the site to use this code
        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
            <script type="text/javascript">  
                function changeEndDate(sender, e) {  
                    //if start date changes change end date to be greater than start  
                    var endDatePicker = $find("<%= EndDate.ClientID %>");  
                    if ( sender.get_selectedDate() > endDatePicker.get_selectedDate()) {  
                        endDatePicker.set_selectedDate(sender.get_selectedDate());  
                    }  
                }  
            </script>  
        </telerik:RadScriptBlock> 

I'm doing something a little different with regards to showing and hiding controls on the advanced form.

When the form first loads, I am only showing the start date and time.
The user has the ability to specify an end date time but they are not required to.

If the form loads with just the start visible and end hidden, the end date is not getting updated on start date change when the end date control is hidden and it continues to not get updated on start date change even when i use the UI to show the end date. 
When debugging I see that the control is accessible but the date values are not correct.

If I successfully save an appointment with a valid start and end date and I go to edit that appointment, my advanced form pops up with both the start and end visible. At this point that changeEndDate function works as expected even when the end date control is hidden using the UI (if a user decides they no longer need an end date they can hide the end date controls).

So the changeEndDate function works when the end date control is visible and hidden ( as I would expect) except for when the form loads with the end date controls hidden (which I don't expect).
The same code is being used to hide the end date controls using a check box similar to how the all day check box hides the time controls.

any tips? this is probably a general html/javascript issue rather than a telerik specific one.

regards
towpse
Top achievements
Rank 2
 answered on 14 Jan 2010
5 answers
607 views

Hi, I placed a combobox as below , with auto complete feature and load on demand.

<

 

telerik:RadComboBox ID="radCboCity" runat="server" Width="175px" Height="150px" AllowCustomText=true EnableLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="radCboCity_ItemsRequested"></telerik:RadComboBox>

I redirect to this form with querystring parameters which should populate the criteria on this form. I am setting the combobox value from server side something like : radCboCity.value= sCity;

well, I have some clientside validations and ajax postbacks on load of this form and the combo value returns 'undefined'. I am accessing the combo value from an external javascript file using the standard document object : document.getElementById("radCboCity").value

If I repost this form it returns a valid value.

Why is this behaviour? Am I missing mosthing?

thanks

 

Kalyani Mantripragada
Top achievements
Rank 1
 answered on 14 Jan 2010
1 answer
150 views
Hi Telerik,
I have problem with export to excel: my Location should be in the 3rd position show as last column in the report. Here is the code

<telerik:RadGrid ID="grdWarranty" runat="server" AllowPaging="True" AllowSorting="True" 
    AutoGenerateColumns="False" GridLines="None" Skin="Default" Width="700px" PageSize="7" 
    OnNeedDataSource="grdWarranty_NeedDataSource" OnItemCommand="grdWarranty_ItemCommand" 
    OnItemCreated="grdWarranty_ItemCreated" ShowStatusBar="true"> 
    <MasterTableView Width="100%" UseAllDataFields="True" TableLayout="Fixed" DataKeyNames="CompanyID,LocationID,ObjectType,ObjectID"> 
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridTemplateColumn HeaderText="Name" DataField="ObjectName" SortExpression="ObjectName"> 
                <ItemTemplate> 
                    <asp:LinkButton ID="LinkButtonOpen" runat="server" CausesValidation="False" CommandName='<%# DataBinder.Eval(Container, "DataItem.ObjectType") %>' 
                        CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ObjectID") %>' Text='<%# DataBinder.Eval(Container, "DataItem.ObjectName") %>' /> 
                    <asp:Label runat="server" ID="lblName" Visible="false" Text='<%# DataBinder.Eval(Container, "DataItem.ObjectName") %>'></asp:Label> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridBoundColumn HeaderText="Type" DataField="ObjectType"> 
            </telerik:GridBoundColumn> 
            <telerik:GridTemplateColumn HeaderText="Location" DataField="LocationName" SortExpression="LocationName"> 
                <ItemTemplate> 
                    <%# LocationDisp(DataBinder.Eval(Container, "DataItem.LocationName").ToString()) %> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn HeaderText="Expires" DataField="ExpirationDateFormatted" SortExpression="ExpirationDate"> 
                <ItemTemplate> 
                    <%# DateString.GetDateValue(DataBinder.Eval(Container, "DataItem.ExpirationDate").ToString()).ToString("M/d/yyyy").Replace("1/1/1900", "") %> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn HeaderText="# Days" DataField="ExpirationDays" SortExpression="ExpirationDate"> 
                <ItemTemplate> 
                    <%# GetExpiration(DataBinder.Eval(Container, "DataItem.ExpirationDate").ToString()) %> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
        </Columns> 
    </MasterTableView> 
    <PagerStyle AlwaysVisible="true" Mode="NumericPages" /> 
    <ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true"> 
        <Scrolling AllowScroll="true" ScrollHeight="185px" UseStaticHeaders="true" /> 
    </ClientSettings> 
</telerik:RadGrid> 
What am i missing?
Thank you


Daniel
Telerik team
 answered on 14 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?