Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
101 views

Hi All,


GridLines are not working in RadGrid. Autogenerated columns = true


my coding:

 

<

 

 

telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"

 

 

 

 

 

 

 

OnDetailTableDataBind="RadGrid1_DetailTableDataBind"

 

 

 

AutoGenerateHierarchy="true" GridLines="Both"

 

 

 

oncolumncreated="RadGrid1_ColumnCreated1" Skin="WebBlue" >

 

 

 

 

 

 

 

 

</telerik:RadGrid>

 




Bharat Rathore
Dennis
Top achievements
Rank 2
 answered on 05 May 2017
1 answer
218 views

Hello,

I used the lightbox to show a list of data when the user is clicking on a information button. Everything is working as expected. But then on the mobile test of the feature i get to know that something is wrong with the scrolling feature on iOS Safari browser.

So there is a scrollable Content inside the lightbox but when you scroll by touching the glass of phone only the background is scrolling, not the content of the lightbox. On each other platform the Dom working like I expect the modal dialog.

I worked around with the z-indexes of the controls, but no setting get my issue to work. So I tested the issue on the demo site of telerik lightbox (http://demos.telerik.com/aspnet-ajax/lightbox/examples/overview/defaultcs.aspx) and have the same problem.

Is there any workaround to fix this scrolling problem?

Best Wishes

Roland Klug

 

 

Rumen
Telerik team
 answered on 05 May 2017
1 answer
113 views
<telerik:GridTemplateColumn HeaderText="Emp"HeaderStyle-Width="27%" UniqueName="EmpID" DataField="EmpID">                              <FilterTemplate>
    <telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBoxEmp" DataSourceID="dsEmpNameFilter" <br>                                                DataTextField="EmpName"<br>                                                DataValueField="EmpID" <br>                                                Width="100%" AppendDataBoundItems="true" <br>                                                SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("EmpID").CurrentFilterValue%>'<br>                                                runat="server" OnClientSelectedIndexChanged="EmpNameIndexChanged"><br>                                                <Items><br>                                                    <telerik:RadComboBoxItem Text="All" /><br>                                                </Items><br>                                            </telerik:RadComboBox><br>                                            <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server"><br>                                                <script type="text/javascript"><br>                                                    function EmpNameIndexChanged(sender, args) {<br>                                                        var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID%>");<br>                                                        tableView.filter("EmpID", args.get_item().get_value(), "EqualTo");<br>                                                    }<br>                                                </script><br>                                            </telerik:RadScriptBlock><br>                                        </FilterTemplate><br><br>                                        <ItemTemplate><br>                                            <%# Eval("EmpName")%><br>                                        </ItemTemplate><br>                                        <EditItemTemplate><br>                                            <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="EmpIDDropDown" DataValueField="EmpID"<br>                                                DataTextField="EmpName" DataSourceID="dsEmployees"><br>                                            </telerik:RadDropDownList><br>                                        </EditItemTemplate><br>                                    </telerik:GridTemplateColumn></p>
Carol
Top achievements
Rank 1
 answered on 05 May 2017
6 answers
176 views

I am using the AutoComplete control in tag mode, and I have created a button which will drop down the full tag list, based on some code I found in the forums or knowledgebase somewhere. It works nicely, unless I wrap it in an ajax panel. After a postback, the button no longer works - I get a javascript error: "Unable to get property 'itemDataBound' of undefined or null reference" in jQueryPlugins.js at line 237.

Here is my code:

var autoComplete = $find("<%= tag_box.ClientID %>");
var dropDown = autoComplete._dropDown;
var itemData = autoComplete._dropDownItemData;
setTimeout(function (e) {
   dropDown.populate(itemData, true);
   dropDown.open(autoComplete._getDropDownPositionInfo());
   dropDown.highlightNext();
   $('li.racItem').css('display', 'list-item');
}, 200);

The error occurs during the call to 'populate()'

The AutoComplete control works fine by itself after the postback. The tags list is populated, and I can add and remove tags using the keyboard without any fuss.

The script and the AutoComplete are contained in a user control (ascx) which is contained in another user control which has the ajax panel. The script is wrapped in a RadScriptBlock.

I also have two event handlers which I add to the AutoComplete  control, like this:

autoComplete.add_entryAdding(tagEntryAdding);

autoComplete.add_entryRemoved(tagEntryRemoved);

The events do not get called after a postback. I set the handlers from a jQuery 'ready' with a small timeout. Works fine before postback. but not after. The 'ready' code gets called (though for some reason I can't catch it in the browser debugger after postback).

I know I am missing something about how ajax and scripts and user controls work together, but I can't figure it out.

 

Peter Milchev
Telerik team
 answered on 05 May 2017
2 answers
74 views

I develop a website with ASP.NET(C# Webform) and Visual Studio 2012. I use RadTabStrip with RadMultiPage in my webpage, but I deploy to IIS. And then I use my iPad mini to switch rad tab, it appear error message as below:

  「safari error a problem occurred with this webpage so it was reloaded」

in Chinese is:

  「此網頁發生錯誤,因此重新載入。」

or

  Safari 無法打開網頁
  錯誤碼為 WebKit encountered an internal error

I run the same website on Android device(SAM SUNG Galaxy Tab4). There is no problem during I switch the webpages.

Does somebody know how to resolve this problem? Is it belong trail version problem?

章民
Top achievements
Rank 1
 answered on 05 May 2017
3 answers
123 views

It looks like the CSS gets messed up in chrome on the Upload dialog. Is there a CSS fix that can correct this?

I attached a screenshot of the difference between Chrome and IE and can provide an example project of recreating the issue if need be.

Vessy
Telerik team
 answered on 05 May 2017
3 answers
200 views
I have a grid with filtering, sorting, paging enabled.  I added Excel export to it as well.  Once data is loaded, Excel export works like a charm, however, I have an issue with exporting filtered grid. I apply a filter to column, then when I click Export button, CommandRow disappears, all the filter controls disappear, and that's it, no export.

 

My grid

<telerik:RadGrid ID="RadGridOpenCases"
                    runat="server"
                    AutoGenerateColumns="False"
                    DataSourceID="odsOpenCases"
                    AllowPaging="True"
                    PageSize="10"
                    AllowSorting="True"
                    AllowFilteringByColumn="true"
                    Skin="Bootstrap">
 
                    <ExportSettings ExportOnlyData="true" IgnorePaging="true"></ExportSettings>
 
                    <MasterTableView CellSpacing="-1"
                        DataKeyNames="CaseID"
                        DataSourceID="odsOpenCases"
                        EnableNoRecordsTemplate="True"
                        AllowFilteringByColumn="True"
                        CommandItemDisplay="Top">
 
                        <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />
 
                        <Columns>
                            <telerik:GridBoundColumn DataField="casenumber" HeaderText="Case #" SortExpression="casenumber" UniqueName="casenumber" ItemStyle-Wrap="false" AutoPostBackOnFilter="true" ShowFilterIcon="false" />
                            <telerik:GridBoundColumn DataField="subject" HeaderText="Case Name" SortExpression="subject" UniqueName="subject" AutoPostBackOnFilter="true" ShowFilterIcon="false" />
                            <telerik:GridDateTimeColumn DataField="datereceived" HeaderText="Received" SortExpression="datereceived" PickerType="DatePicker" EnableTimeIndependentFiltering="true" DataFormatString="{0:MM/dd/yyyy}" />
                            <telerik:GridBoundColumn DataField="subdivisiondesc" HeaderText="Type" SortExpression="subdivisiondesc" UniqueName="subdivisiondesc" AutoPostBackOnFilter="true" ShowFilterIcon="false" />
                            <telerik:GridBoundColumn DataField="categorydesc" HeaderText="Category" SortExpression="categorydesc" UniqueName="categorydesc" AutoPostBackOnFilter="true" ShowFilterIcon="false" />
                            <telerik:GridBoundColumn DataField="subcategorydesc" HeaderText="SubCategory" SortExpression="subcategorydesc" UniqueName="subcategorydesc" AutoPostBackOnFilter="true" ShowFilterIcon="false" />
                            <telerik:GridBoundColumn DataField="assignedto" HeaderText="Assigned To" SortExpression="assignedto" UniqueName="assignedto" AutoPostBackOnFilter="true" ShowFilterIcon="false" />
                            <telerik:GridBoundColumn DataField="casedoccount" HeaderText="" SortExpression="casedoccount" UniqueName="casedoccountid" AllowFiltering="false" />
                        </Columns>
 
                        <NoRecordsTemplate>
                            <p style="padding: 20px;">No cases to display</p>
                        </NoRecordsTemplate>
                    </MasterTableView>
 
                    <GroupingSettings CaseSensitive="false" />
 
                    <ClientSettings EnableRowHoverStyle="true"
                        EnablePostBackOnRowClick="true">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
 
                </telerik:RadGrid>
My code-behind
Protected Sub RadGridOpenCases_ItemCommand(ByVal sender As Object, ByVal e As GridCommandEventArgs) Handles RadGridOpenCases.ItemCommand
    If e.CommandName = RadGrid.ExportToExcelCommandName Then
        RadGridOpenCases.ExportSettings.Excel.Format = GridExcelExportFormat.Biff
        RadGridOpenCases.ExportSettings.IgnorePaging = True
        RadGridOpenCases.ExportSettings.ExportOnlyData = True
        RadGridOpenCases.ExportSettings.OpenInNewWindow = True
        RadGridOpenCases.ExportSettings.FileName = "Dashboard"
    End If
End Sub
Vessy
Telerik team
 answered on 05 May 2017
4 answers
149 views

Since last Chrome update version 58 we have visual bugs in ours RadWindow. We found out that it was because of that css class : 

html:first-child .RadWindow ul {
float: right;
border: 1px solid transparent;
}

It is automatically included in the Telerik.Web.UI.WebResource.axd comming from Telerik.Web.UI.Skins.Window.css. We first tough that it was a Chrome bug, but after investigating a little bit more, we realized that chrome was proccessing that css class like it is supposed to. We also found out that firefox is also processing that class the same way as Chrome do. Is there a way to remove that css? 

 

thanks

Marin Bratanov
Telerik team
 answered on 05 May 2017
0 answers
44 views

Hi friends,

I want to create a menu like following link in server side. that's great menu style.

http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/templates/defaultcs.aspx

 

I made a research and there are tons on questions about how to achieve it most of them answered by telerik team "partially" yet there's no complete answer.

I wonder is there a reason why a complete simple answer for creating the menu at above link never exists ? questions and answers are still there since 2012 and no complete example ?

 

came on guys, can you please provide official code that works on server side and generates a menu at link above ? no need complex application scenarios or anything. obviously people still need it.

Also the reason we buy telerik products is simplify our tasks.

Please can you solve my problem. obviously I don't want my programmers to spent more time on discovering telerik menu item. (by the way its great item:)

best.

Aykut
Top achievements
Rank 1
 asked on 05 May 2017
0 answers
94 views

Hi,

On Telerik RT version v4.0.30319 the ul & li formatting isnt working on the recurrence editor of a radScheduler - please see attached pic.

Please can someone offer some css ideas to format the opt boxes to the left of the labels? This is driving me mad.

Thanks so much,

CB.

CB
Top achievements
Rank 2
 asked on 04 May 2017
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?