Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
252 views
After upgrading to 2014.1.225.40 version i get server error AutoCompleteBox though i am using Method="GetCompanyNames" Path="/mypage.aspx"
Bozhidar
Telerik team
 answered on 31 Mar 2015
3 answers
100 views
Hi,
I have an application, which is currently deployed on a server and is working perfectly fine.  I am trying to provision a new server and have moved the application across.  The issue i am facing is that the modal window that comes up when the application is processing, which states 'Loading' has stopped.

Furthermore, more critical is that the application has finder, which pop-up for user to select a record.  When the user clicks on a record, it should typically take the data from the pop-up window into the base form and close the window. 

In case of the new server i am getting the following Java script error.  "Unable to set property 'value' of undefined or null reference"

As mentioned in my statement above the application works perfectly fine in the current production environment. 

Your inputs and help will be very valuable i have spent  a lot of time reading to find the issue.  But have failed.

It is kind of urgent.
Marin Bratanov
Telerik team
 answered on 31 Mar 2015
2 answers
61 views
Hi,

Does Rad grid have Footers feature?.

Suppose if it is not support, how can we achieve this feature.

Please provide your suggestions.

Regards
Vasu.
daddala
Top achievements
Rank 1
 answered on 31 Mar 2015
3 answers
169 views
i got Type 'Telerik.Web.UI.GridDateTimeColumn' does not have a public property named 'EnableRangeFiltering'. when use EnableRangeFiltering properties of GridDateTimeColumn... help!

<telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="true" PageSize="20" ShowFooter="True"
        AllowPaging="True" AllowSorting="true" AutoGenerateColumns="false"
        GridLines="None" ShowStatusBar="true"
        runat="server" OnItemCreated="RadGrid1_ItemCreated"
        onneeddatasource="RadGrid1_NeedDataSource">
        <GroupingSettings CaseSensitive="false" />
        <MasterTableView EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True"
            DataKeyNames="ArticleID" TableLayout="Fixed">
            <Columns>
                <telerik:GridBoundColumn DataField="Title" HeaderText="Tiêu đề">
                </telerik:GridBoundColumn>
               <telerik:GridDateTimeColumn FilterControlWidth="95px" DataField="AddedDate" HeaderText="Ngày đăng"
                    SortExpression="AddedDate" UniqueName="AddedDate" PickerType="DatePicker"
                    EnableRangeFiltering="true" DataFormatString="{0:dd/MM/yyyy}">
                    <HeaderStyle Width="160px" />
                </telerik:GridDateTimeColumn>
                <telerik:GridTemplateColumn DataField="CateID" HeaderText="Danh mục" UniqueName="CateID"
                    HeaderStyle-Width="200px" SortExpression="DisplayOrder">
                    <FilterTemplate>
                        <telerik:RadComboBox ID="RadComboBoxCategories" runat="server">
                        </telerik:RadComboBox>
                    </FilterTemplate>
                    <ItemTemplate>
                        <%# Eval("udv_Categories.Title") %>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>          
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
Angel Petrov
Telerik team
 answered on 31 Mar 2015
3 answers
405 views
Hi, 
I currently experiencing one problem for change the toolTip property of RadDatePicker control 

code as follows:
<telerik:GridTemplateColumn HeaderText="<%$ Resources:WebUIResources, I18N_Date %>" UniqueName="DateOfAttendance" DataField="DateOfAttendance" SortExpression="DateOfAttendance" Groupable="False">
                <ItemTemplate>
                    <%# String.Format("{0:ddd}", Eval("DateOfAttendance")) + " - " + String.Format("{0:d}", Eval("DateOfAttendance")) %>
                </ItemTemplate>
                <EditItemTemplate> 
                    <telerik:RadDatePicker ID="DateOfAttendance" runat="server" DbSelectedDate ='<%# Bind("DateOfAttendance") %>'  SkipMinMaxDateValidationOnServer="True"  MinDate="1800-01-01" MaxDate="9999-12-31" Width="100%" />
                    <telerik:RadToolTip ID="DateOfAttendance_RadToolTip" runat="server" IsClientID="true"     TargetControlID="DateOfAttendance_wrapper" Text="show tooltip" ShowEvent="OnMouseOver">
                   </telerik:RadToolTip> 
                </EditItemTemplate>
            </telerik:GridTemplateColumn>  But mouse over on the RadDatePicker, the display content still the default one, seems RadToolTip is not working. anyone can Help? all the controls inside teleGrid Control





Biao
Top achievements
Rank 1
 answered on 31 Mar 2015
1 answer
135 views
I'm attempting to set the text value of the owner button on a ribbon bar split button using the following javascript:

$find("<%= MainRibbonBar.ClientID %>").findButtonByValue(button).get_owner().set_text("newtext");


When I do this, the text does not visibly change and when I examine the HTML I see the following:

<span class="rrbButtonMid rrbSplitButton">
<span class="rrbButtonIn">
<span class="rrbImagePlaceholder">
<img alt="Item Image" src="/Images/Icons/Save.png" class="rrbButtonImage" style="visibility: visible;">
</span>
<span class="rrbButtonText"><span class="rrbTextContent">newtext</span></span>
<span class="rrbButtonArrow"><span class="rrbIcon"></span><span class="rrbButtonText"><span class="rrbTextContent">oldtext</span></span>
</span>
</span>
</span>

As you can see, the first rrbTextContent span has indeed got the new text value, however, inside the rrbButtonArrow object there is another rrbTextContent object which still contains the old text.

Since this element appears on top, it entirely covers the updated text meaning that the command changes nothing.

How can I resolve this?  I only just noticed this issue after upgrading my telerik components so it's possible that this is the result of a recently introduced bug.  I may also have changed something somewhere myself that stopped this from working.
Ivan Danchev
Telerik team
 answered on 30 Mar 2015
7 answers
142 views
How do I update using RadGrid1_UpdateCommand for the below example.
http://demos.telerik.com/aspnet-ajax/toolbar/examples/applicationscenarios/gridcommanditem/defaultvb.aspx?product=grid

The values are updated in the radgrid but not to the database.

Protected Sub RadGrid1_UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand

'If e.CommandName = RadGrid.UpdateCommandName Then

If e.CommandName = "UpdateEdited" Then

If TypeOf e.Item Is GridDataItem Then

Dim editItem As GridDataItem = CType(e.Item, GridDataItem)

Dim id As String = editItem.GetDataKeyValue("FIRM_CODE").ToString()

If id IsNot Nothing Then

                    //I am stuck here. How do I fetch the values for COMET_DESCRIPTOR and COMET_TRANS_NOTES

 

Dim UpdateCommand As String = "update tablename set COMET_DESCRIPTOR = '@COMET_DESCRIPTOR', COMET_TRANS_NOTES ='@COMET_TRANS_NOTES' where FIRM_CODE = '" & id & "' and REF_YY||REF_MM ='@REF_YY'||'@REF_MM'"

End If

End If

End If

End Sub

Viktor Tachev
Telerik team
 answered on 30 Mar 2015
2 answers
252 views
General scenario: I have a radgrid using auto-generated in-place record editing. Datasources are LLBLgen entity collections. One of the columns is username (as in AD account name), but is a GridAutocompleteColumn with the users' display name as the DataTextField so it will be easier for user to make the correct selection. The autocomplete part works (mostly) correctly. What I thought would happen next is when user clicks Update link to confirm selection, the Adname value would be inserted into the grid (and therefore the backing table). But instead, the displayname is being inserted. What am I doing wrong?


<telerik:RadGrid ID="gridUserAssignment" runat="server" DataSourceID="llblgUserAssignmentData"
        AllowAutomaticUpdates="true" AutoGenerateEditColumn="true" AllowAutomaticDeletes="false" AutoGenerateDeleteColumn="false"
        OnNeedDataSource="gridUserAssignment_NeedDataSource"
        OnDeleteCommand="gridUserAssignment_DeleteCommand"
        OnEditCommand="gridUserAssignment_EditCommand"
        OnItemCommand="gridUserAssignment_ItemCommand"
        OnPdfExporting="gridUserAssignment_PdfExporting">
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="RoleId" DataSourceID="llblgUserAssignmentData" EditMode="InPlace"  CommandItemDisplay="Top" >
            <CommandItemSettings ShowExportToPdfButton="true" ShowExportToCsvButton="true" ShowAddNewRecordButton="False" ShowRefreshButton="false">
            </CommandItemSettings>
            <Columns>                    
                <telerik:GridTemplateColumn HeaderText="#" UniqueName="RowNumber" HeaderStyle-Width="3%">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblRowNumberAccessUsers" Width="50px" Text='<%# Container.DataSetIndex+1 %>'></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
 
                <telerik:GridAutocompleteColumn DataField="Adname" FilterControlAltText="Filter Adname column" HeaderText="User AD Username" SortExpression="Adname" UniqueName="Adname"
                    DataSourceID="llblgADusers"
                    DataValueField="SAmaccountName"
                    DataTextField="SAmaccountName"
                    Filter="Contains"                           
                    InputType="Text"
                    SelectionMode="Single"
                    AllowCustomEntry="false"
                >
                <telerik:GridBoundColumn DataField="ADuserDetail.Title" ReadOnly="true" FilterControlAltText="Filter User Title column" HeaderText="User Title" SortExpression="Usertitle" UniqueName="Usertitle">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ADuserDetail.Email" ReadOnly="true" FilterControlAltText="Filter email column" HeaderText="User email" SortExpression="email" UniqueName="email">
                </telerik:GridBoundColumn>          
            </Columns
 
    </MasterTableView>          
</telerik:RadGrid>
<llblgenpro:LLBLGenProDataSource ID="llblgUserAssignmentData" runat="server" DataContainerType="EntityCollection" EntityCollectionTypeName="UserManagement.CollectionClasses.UserRoleUserCollection, UserManagement" >
</llblgenpro:LLBLGenProDataSource>
<llblgenpro:LLBLGenProDataSource ID="llblgADusers" runat="server" DataContainerType="EntityCollection" EntityCollectionTypeName="UserManagement.CollectionClasses.AduserDetailCollection, UserManagement" >
</llblgenpro:LLBLGenProDataSource>

Side note (I think): when in edit mode, when I start typing, if I pause for a small while, the autocomplete returns a set of matches but does not rerun and refresh the results as I type additional characters. For now, I get around this by typing really fast so the search gets the whole search string at once.
- Justin
Justin
Top achievements
Rank 1
 answered on 30 Mar 2015
2 answers
102 views
Situation:

I have a RadTooltipManager, containing a web user control (WUC). This WUC in turn contains a number of telerik controls. Among these controls, a RadButton and a RadCalendar. I want to have access to this RadCalendar's selected date property on the client, when clicking the RadButton.

So if I tie an OnClientClicked event to the button and put this event in the WUC. I get a reference error. I'm assuming this is because the <script> portion of the WUC isn't loaded when the button is loaded. (I load the control via Page.LoadControl on the containing page).

If I put the OnClientClicked function on the containing page, it loads just fine. Then comes, however, the problem of referring to the RadCalendar contained in the tooltip and WUC. Usually I'll do a $find() and enter the contorlname.ClientID, but that will give an error here, as the containing page is aware of no such control.

So my next idea was to use the telerik static client side library to get a reference to the control in question. And this seems to work! If I do a $telerik.radControls, I get an array of all the loaded controls on the page. Which seems to include those in the WUC.

How do I get access to the Telerik client side library from one of these objects?
C
Top achievements
Rank 1
 answered on 30 Mar 2015
4 answers
264 views
I am creating a RadGrid Dynamically in code behind based on a DataSet returned from a Stored Procedure. I have enabled Export to Excel, CSV and PDF Options.
The Exported Excel and CSV is missing the Multi-column headers. The PDF Export retains the Multi-Colum Headers.

I am using  ExcelML format while exporting to Excel. However when I use HTML format, Its showing Multi-Column Headers, but the export also contains hyperlinks ( in rows related to data and the column titles) and additional  controls( related to filter I guess). I have also used the setting ExportOnlyData to true.

Is there a way to remove the hyperlinks and additional controls. Also, Is there a way I could get the Multi-Column Headers in CSV.

Thanks,
Kiran
Kostadin
Telerik team
 answered on 30 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?