Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
111 views

Hi

I am using asp.net vb 2010 . I have a rad grid with pagination . Is there any code sample to print only rad grid data  displayed in all rad grid pages from the server side code .

 

Thanks for your help

 Rajeswari Raman

 

Rahul
Top achievements
Rank 1
 answered on 16 Feb 2018
0 answers
64 views

Hi Team,

I am trying to Filter a RadGrid which gets the data from a custom class using dataBind() method. i have used Jquery and WebMethods for this.

Now when i have activated the AllowFiltering option in RadGrid and GridBoundColumns it does not automatically filter the data in the Rad Grid.

As a Workaround I am writing my own code to override the radgrid filter functions and filter the data on "OnInput" event and "OnKetPress" events.

Is this a limitation with Radgrid or am i making any mistake while trying to use the filtering option of RadGrid?

Regards

Agasthya

agasthya
Top achievements
Rank 1
 asked on 16 Feb 2018
1 answer
318 views

Hi Team,

I am using Two Rad Editors, for first RAD Editor set property EditModes="Design". copied  below mentioned data from MS word and paste into Rad Editor. 

ex:  Copy below sample data

       .Parent1
         .Child1
         .Child2
     

<telerik:RadEditor RenderMode="Lightweight" SkinID="BasicSetOfTools" Width="100%" EnableTextareaMode="false" BorderStyle="None"
          runat="server" Content='<%# Bind("Comments") %>' Height="100px" Font-Names="Tahoma"
           ID="txtBox_PEdit" EditModes="Design" StripFormattingOptions="NoneSupressCleanMessage" StripFormattingOnPaste="MSWord">
             <Tools>
                     <telerik:EditorToolGroup>
                     </telerik:EditorToolGroup>
          /Tools>
      </telerik:RadEditor>

After saving data, in Rad editor am seeing unnecessary spaces and new line. please see attached screen shot.

please suggest me how I will remove unnecessary spaces and new lines.

 <telerik:RadEditor RenderMode="Lightweight" SkinID="BasicSetOfTools" EditModes="Preview"
     ID="lbl_Description" Width="99%"  runat="server" Height="100px"  BorderStyle="None"
     Font-Names="Tahoma" Font-Size="11px" Style="margin-bottom: 5px;" Content='<%# Eval("Comments") %>'>
 <Tools  >
      <telerik:EditorToolGroup >
       </telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>

 

Rumen
Telerik team
 answered on 16 Feb 2018
1 answer
105 views

When the user click on the ShowCheckAll button either all entries aree selected or unselected. Looking at the documentation I cannot find any event that is fired for that. Even if there is no specific event for that, I would expect that ClientEntryAdded or ClientEntryRemoved for each of the entries would be fired but thatis not the case either. 

I need to handle this event as part of a logic that checks if and when the set of selected items is changed. Is there any other way to get notified via an event when ShowCheckAll is clicked ?

Thanks

Zeev

Zeev
Top achievements
Rank 1
 answered on 15 Feb 2018
1 answer
211 views
This may seem a trite question.
I am looking for a menu-navigation control and page framework I can use just like you demo pages. See image attached.
The menu and page re-sizes according to browser or screen size. I want the menu to appear as the menu (Hamburger) icon, and when the user clicks the navigation menu slides out from the left. At the top you can switch from Menu> to <Controls.
Can I get a sample of this framework? Are these Telerik navigation controls or Bootstrap?
I am trying to modify our vb.net Telerik based program to work better for mobile applications.
-Thank you
Rumen
Telerik team
 answered on 15 Feb 2018
10 answers
167 views

Hi,

we are using CDN to get Telerik scripts and styles. All is set in web.config:

<add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
<add key="Telerik.ScriptManager.TelerikCdn.CombinedResource" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn.CombinedResource" value="Enabled" />

Now I found that some controls are broken. I tried to identify problem, so deactivated CDN. All works fine. Controls are ok.

So I disabled CombinedResources and found, that all CSS files are for lightweight rendering.

https://d35islomi5rx1v.cloudfront.net/ajaxz/2017.2.711/CombinedBaseSkinClassic.css

But we are using custom skins in Classic render mode. I tried to set it to web.config too, but it doesn't work:

<add key="Telerik.Web.UI.RenderMode" value="classic" />

 

So when CDN started to provide lightweight styles and how to get classic ones?

Regards

René

Marin Bratanov
Telerik team
 answered on 15 Feb 2018
0 answers
83 views

I have a radgrid with these propertie

AutoGenerateColumns="false"
               AllowAutomaticDeletes="true"
               AllowSorting="True"
               AllowPaging="true"
               AllowFilteringByColumn="true"
               OnInsertCommand="rgData_InsertCommand"
               OnUpdateCommand="rgData_UpdateCommand"
               OnItemDataBound="rgData_ItemDataBound"
               OnDeleteCommand="rgData_DeleteCommand"
               EnableViewState="true"
               OnItemCommand="rgData_ItemCommand"
               ShowStatusBar="true"
               OnInit="RgHomicideData_Init"
               OnNeedDataSource="rgData_NeedDataSource"
               CommandItemStyle-HorizontalAlign="Left">

 

The radgrid works as expected.  I use this code in my needdatasource

string strYear = DateTime.Now.Year.ToString();
            DateTime StartDate = Convert.ToDateTime("1/1/" + strYear);
            DateTime EndDate = Convert.ToDateTime("12/31/" + strYear);
            rgData.DataSource = DbContext.tblData
                .Where(d => d.deleted == false).ToList();

 

sort and paging is working properly

Now I want to filter the data by a date range so I use this code

Boolean DateChk1 = dpStartDate.SelectedDate.HasValue;
            Boolean DateChk2 = dpStartDate.SelectedDate.HasValue;
            string comboSearch = cboxSearch.Text;
            int intComboSearch = comboSearch.Length;
 
            if (comboSearch.Length > 0 && DateChk1 == true && DateChk2 == true)
            {
 
                DateTime Date1 = dpStartDate.SelectedDate.Value;
                DateTime Date2 = dpEndDate.SelectedDate.Value;
                rgData.DataSource = DbContext.AAADataSearchByDateRange(comboSearch, Date1, Date2).ToList();

The data refreshes and shows the filtered data.  Now if I click the column header to sort or I chnage to another page the radgrid looses all data and all I see is a line on the screen.  Can someone please explain the problem and how to fix it

 

Thanks

Perry
Top achievements
Rank 1
 asked on 15 Feb 2018
2 answers
227 views
I set it to true but dropdown outside the viewport: see screenshot.
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 15 Feb 2018
6 answers
1.2K+ views

     I have a RadComboBox that shows two columns in the drop down, I have a header for them as well.  I want the 2 columns to show once the item is selected.  I'm new to Telerik, so I'm not sure if I'm saying this correctly, but I essentially would like a DataTextField ='ID + Name".

 

Is there a way to make 2 datatextfields show up in the selected value of a RadComboBox, either in ASP.Net, or VB/C#?

 

Thank you,

J

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 14 Feb 2018
0 answers
59 views
When I filter only with 2 or 3 months according my query, my RadPivotGrid do the columns fill according width of the screen, but i need that she display the columns with the bestfit width or with width determined.
And if i filter more than 3 months according my query, she apply the width that was determined.

How to I can do that ?

Images in attachments.
Andre
Top achievements
Rank 1
 asked on 14 Feb 2018
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
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
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?