Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views

Hi Team,

 

i am using a Radgrid on a page with multiple template columns, I have a hyper link , a textbox and a combobox. I click on link opens a popup and I select a value and submit it on parent page, save the selected value in grid' template textbox.

And based on textbox value I bind the the combo box.

But when I submit the page and do postback, the Textbox lose its data. and not able to bind combobox.

Can anybody help me on this.

~

Sandeep

 

Eyup
Telerik team
 answered on 23 Feb 2016
3 answers
1.4K+ views
Hi.

I'm trying to style my RadGrid, but for some strange reason, only about half the styling is working correctly. Could you guys tell me what I'm doing wrong?

For the header of the grid, I want to make these changes:
Change the font color (works)
Change the background color (doesn't work)
Make the header text bold (doesn't work)
Change the color of the border around the header cells (doesn't work)

For the rows of the grid, I want to make these changes:
Change the background color of a cell based on its value (works)
Change the row background color (works)
Change the color and style of the border around the row cells (doesn't work)

Also, with this theme (MetroTouch), the grid only has a border (bottom, right and left, nothing on top) on every other row and it disappears on mouseover of that row. I want these lines to always be visible.

Private Sub rgProjects_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgProjects.ItemCreated
    If TypeOf e.Item Is GridHeaderItem Then
        Dim headerItem As GridHeaderItem = CType(e.Item, GridHeaderItem)
 
        headerItem.ForeColor = System.Drawing.Color.FromArgb(226, 233, 243)
 
        headerItem.BackColor = System.Drawing.Color.FromArgb(0, 82, 136)
        headerItem.Font.Bold = True
        headerItem.BorderColor = System.Drawing.Color.FromArgb(183, 198, 203)
    End If
End Sub
 
Private Sub rgProjects_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgProjects.ItemDataBound
    If TypeOf e.Item Is GridDataItem Then
        Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
        'dataItem.Font.Bold = True
 
        Dim myCell As TableCell = dataItem("DCounter")
 
        If myCell.Text.StartsWith("-") Then
            myCell.BackColor = System.Drawing.Color.Red
        End If
 
        If dataItem.ItemIndex Mod 2 = 0 Then
            dataItem.BackColor = System.Drawing.Color.FromArgb(226, 233, 243)
            dataItem.BorderColor = System.Drawing.Color.FromArgb(183, 198, 203)
            dataItem.BorderStyle = BorderStyle.Solid
        Else
            dataItem.BackColor = System.Drawing.Color.White
            dataItem.BorderColor = System.Drawing.Color.FromArgb(183, 198, 203)
            dataItem.BorderStyle = BorderStyle.Solid
        End If
    End If
End Sub

Any help would be greatly appreciated. :)
Eyup
Telerik team
 answered on 23 Feb 2016
1 answer
211 views

Hi,

I have a radgrid which groups data according to Name. So, John will have all his data displayed and then greg and so on. But when I use to export to excel, it always exports the last group.

Any ideas on this would be helpful. 

I was also not able to find any demos for exporting grouped data.

 

I have used the following export settings:

           string alternateText = "ExcelML";
            this.radGridBusinessGoalList.ExportSettings.Excel.Format =               (Telerik.Web.UI.GridExcelExportFormat)Enum.Parse(typeof(Telerik.Web.UI.GridExcelExportFormat), alternateText);
            this.radGridBusinessGoalList.ExportSettings.ExportOnlyData = true;
            this.radGridBusinessGoalList.ExportSettings.IgnorePaging = true;
            this.radGridBusinessGoalList.ExportSettings.OpenInNewWindow = true;

 

Thanks,

TM

Eyup
Telerik team
 answered on 23 Feb 2016
0 answers
72 views

Hi,

In order to avoid loading any period of the appointments, Is there a way to call the appointments on the Scheduler whichever day-week-month you are at now on Scheduler and it gets reloaded once you navigate through another  

This is for the / real-time database communication.

thank you

Mehmet
Top achievements
Rank 1
 asked on 23 Feb 2016
8 answers
255 views

I built an application for a client last year based on the webforms scheduler control, which they were very happy with, except for its speed, which was quite honestly dreadful. I looked at all the suggestions I could find on this forum and in your documentation regarding improving performance and implemented anything applicable. However, it still takes upwards of 2 & 1/2 minutes to load the scheduler page with 128 appointments over 4 days. They will only hire the application again this year if I can speed it up very significantly.

My implementation included binding to a custom provider and using the advanced form. It also required a single resource type for rooms, and 2 multiple resource types of meeting leaders and meeting participants. Eventually, there were 4 rooms, approximately 30 meeting leaders and 4,000 meeting participants. Because it looked to me as if the provider was loading all 4,000 meeting participants as a resource for each appointment, I adapted it to load only those attached to existing appointments (reducing the number to approximately 128), replacing the resource combobox for that in the advanced form with a search box, so that new participants could be added. Even that didn't significantly improve the speed.

I read that binding to Web API might improve things, but when I tried implementing that, it appeared that I couldn't call the overridden GetAppointments method from my custom provider. Would it be feasible to override the WebServiceAppointmentController class in a similar way to creating a custom provider?

I doubt anyway that using client-side binding via Web API is going to improve its performance significantly. I got the impression from using the provider methods elsewhere in my application, even when not directly attached to the scheduler control, that it was that slowing things down.  Is it possible that re-writing in MVC and using the MVC scheduler might solve the problem, or does that draw on the same provider? At present, barring that, all I can think to do is search for a more efficient scheduler control from a third-party vendor other than Telerik or start something from scratch myself.

Mehmet
Top achievements
Rank 1
 answered on 23 Feb 2016
0 answers
388 views

Hi, 

I'm using RadGrid and when I select (one click) one row I got javascript error on line : 

"var l=e.attributes;"

The page to replicate the error: http://glidetours.pt/holiday/cart?ActivityID=12209    (cliking on any radiobutton we got same error)

Any one have any clue on how to fix this?

 

http://glidetours.pt/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Sitefinity.Resources%3apt%3a9cb54c82-d9c2-4ef3-990f-a9faf24bfb22%3ab162b7a1%3bTelerik.Web.UI%2c+Version%3d2015.1.225.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3apt%3a48e0f2bb-99f7-43cd-9b8e-5b9bce752872%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3ae330518b%3a2003d0b8%3ac128760b%3a88144a7a%3a1e771326%3ac8618e41%3a1a73651d%3a333f8d94%3a92fe8ea0%3afa31b949%3a4877f69a%3af46195d3%3a874f8ea2%3a19620875%3a490a9d4e%3a8e6f0d33%3bTelerik.Sitefinity%2c+Version%3d8.0.5710.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3apt%3ab704084c-1ab9-477c-a22d-f0245b6604c6%3ab09fa3ae%3bTelerik.Sitefinity.Resources%3apt%3a9cb54c82-d9c2-4ef3-990f-a9faf24bfb22%3a845dc525%3bTelerik.Web.UI%2c+Version%3d2015.1.225.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3apt%3a48e0f2bb-99f7-43cd-9b8e-5b9bce752872%3a6a6d718d%3a58366029%3a6d43f6d9%3abd8f85e4%3ac172ae1e%3a9cdfc6e7%3ae4f8f289

Duarte
Top achievements
Rank 1
 asked on 22 Feb 2016
9 answers
425 views
Hi,
Is there a way to show the selected Item's image in the RadComboBox or RadDropDownList? I have items that are only images with no text. When the item is selected nothing shows in the combo box. Is there a way to display the selected item's image?

Thanks

Charles
Ivan Danchev
Telerik team
 answered on 22 Feb 2016
6 answers
284 views
When i set AllowRowSelect as True within the ClientSettings i am not able to select the content of the rows anymore.
For instance, if i want to select the title and description text i am unable. Is it possible to keep the client-side selection as is but still being able to select the content in sense of COPY operation?

Thanks
Viktor Tachev
Telerik team
 answered on 22 Feb 2016
1 answer
301 views

I have the following rich text string set in a microsoft rich text box in a winforms app ... simple bulleted list of 2 lines.

{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}{\f1\fnil\fcharset0 Verdana;}{\f2\fnil\fcharset2 Symbol;}}
\viewkind4\uc1\pard{\pntext\f2\'B7\tab}{\*\pn\pnlvlblt\pnf2\pnindent0{\pntxtb\'B7}}\ltrpar\sl240\slmult1\f0\fs18 bullet item 1\f1\fs20
\par \f0\fs18{\pntext\f2\'B7\tab}bullet item 2\f1\fs20
\par }

 

I run that through this formatting process:

//convert from RTF to HTML
RtfFormatProvider rtfProvider = new RtfFormatProvider();
HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
RadFlowDocument document = rtfProvider.Import(richText);
RadEditorRichTextLabNote.Content = htmlProvider.Export(document);

I end up with the two lines of text but the bulleted part is gone.

Going from HTML back to RTF also loses the bulleted list.

See the screenshots below of how the winforms application shows the rich text vs the asp.net radeditor.

Please advise.  Thanks

Sean

Ianko
Telerik team
 answered on 22 Feb 2016
5 answers
283 views

I am trying to get some validation done. When a user selects the wrong file type I can see the red dot beside the file but when I click submit the postback happens anyway regardless if the file is an Xlsx or not.

I would like to display an error message without postback as the asp.net built in validation can do.

 See below for test code:

 <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions="Xlsx" MultipleFileSelection="Disabled" ValidateRequestMode="Enabled" ValidationGroup="TEST" MaxFileInputsCount="1">
</telerik:RadAsyncUpload>
<telerik:RadButton ID="RadButton1" runat="server" Text="Submit" ValidationGroup="TEST" OnClick="RadButton1_Click"></telerik:RadButton>
<asp:ValidationSummary runat="server" DisplayMode="BulletList" ShowSummary="true" ShowValidationErrors="true" ShowMessageBox="true" ValidationGroup="TEST" />

 

Silviu
Top achievements
Rank 1
 answered on 22 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?