Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
444 views
  Hello All,

I am using RadGrid and binding data dynamically in code behind file.

 Code Behind:
RadGrid grSampleWorkSheet = new RadGrid();
                                grSampleWorkSheet.ID = WSheet.Name + "-" + m_LoopCount.ToString();
                                //grSampleWorkSheet.Columns.Remove(0);// = false;
                                grSampleWorkSheet.ShowGroupPanel = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["ShowGroupPanel"]);
                                grSampleWorkSheet.AllowPaging = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["AllowPaging"]);
                                grSampleWorkSheet.ShowFooter = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["ShowFooter"]);
                                grSampleWorkSheet.ShowStatusBar = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["ShowStatusBar"]);
                                grSampleWorkSheet.Skin = Convert.ToString(System.Configuration.ConfigurationManager.AppSettings["TelerikSkin"]);
                                grSampleWorkSheet.MasterTableView.PagerStyle.Mode = GridPagerMode.NumericPages;
 
 
                                WorkSheetID = WSheet.ID;
                                strWorkSheetID = objWorkSheet[0].Name;
                                //if (ddlWorkSheets.SelectedValue == strWorkSheetID)
                                //{
                                dtworksheet = GenerateNormalizedRateSheet.GenerateDomesticSampleData(objRateSheet, WorkSheetID, out ErrorCode);
                                if (string.IsNullOrEmpty(ErrorCode))
                                {
                                    if (dtworksheet != null && dtworksheet.Rows.Count > 0)
                                    {
                                        grSampleWorkSheet.DataSource = dtworksheet;
                                        grSampleWorkSheet.Columns.Remove(0);
                                        grSampleWorkSheet.DataBind();
                                        grSampleWorkSheet.MasterTableView.DataSource = dtworksheet;
                                        grSampleWorkSheet.MasterTableView.Columns.Remove(0);
                                        grSampleWorkSheet.MasterTableView.DataBind();
                                        Label lblDomesticTitle = new Label();
                                        lblDomesticTitle.ID = "lbl-" + WorkSheetID;
                                        lblDomesticTitle.Text = "<h5>" + strWorkSheetID + "</h5>";
                                        PhSampleData.Controls.Add(lblDomesticTitle);
                                        PhSampleData.Controls.Add(grSampleWorkSheet);
                                        btnNextStep.Enabled = true;
  }
}

I have also attached image file of result.

Thanks in Advanced...
Prasanth
Top achievements
Rank 1
 answered on 19 Feb 2018
1 answer
142 views
I'm using the rie_onImageLoading Method to load a serverside Image into the control at Page_Load. Now, when selecting another RadioButton of the list, I would like to load another image (preferably with Ajax/RadAjaxManager without postback) into the control. How can I achieve it? All other controls have sth. like "DataSource", but I'm afraid the RIE doesn't have it...
Vessy
Telerik team
 answered on 19 Feb 2018
11 answers
114 views
I find that the user doesn't get enough feedback when a search is conducted and returns no results. Is there a way to highlight this (non) event?
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 19 Feb 2018
3 answers
135 views
I need to know if there is a setting that will stop the RadEditor from changing all the self closing tags /> to >
Rumen
Telerik team
 answered on 19 Feb 2018
1 answer
117 views
I just used the SplitButton option for the first time, and I'm a bit underwhelmed. It works, yes, but having to add custom Javascript to control the interaction between a button and a separate context menu isn't very integrated. The RadButton should have an option for a 'SplitMenuID' field, which would automatically associate the controls and generate the needed Javascript to make the menu drop down when the downward arrow is clicked, the same way a RadTabStrip and RadMultiPage can be associated with each other without needing to write separate Javascript.
Attila Antal
Telerik team
 answered on 19 Feb 2018
0 answers
68 views

Hi - I found something strange in the RadGrid. I have a grid which has four frozen columns and a number dynamic columns. Each column is filled with a textbox, and this area scrolls to the right.

When scrolling across dynamic columns, it works fine using the horizontal scroll bar. But when I tab through the text boxes, some frozen columns get lost, and the headers do not match up to the columns they belong to.

 

Please see the attached screen shot. We have a telerik license, is there any way to do a screen share with a telerik engineer to troubleshoot?

 

Thanks

Daniel

Daniel
Top achievements
Rank 1
 asked on 19 Feb 2018
10 answers
257 views
Hi,
i wrote this code into vb net:
Private Const ItemsCityPerRequest As Integer = 10
Public Shared Function GetCityNames(ByVal context As RadComboBoxContext) As RadComboBoxData
Dim data As DataTable = Getcomuni(context.Text)
Dim comboData As New RadComboBoxData()
Dim itemOffset As Integer = context.NumberOfItems
Dim endOffset As Integer = Math.Min(itemOffset + ItemsCityPerRequest, data.Rows.Count)
comboData.EndOfItems = endOffset = data.Rows.Count
Dim result As New List(Of RadComboBoxItemData)(endOffset - itemOffset)
For i As Integer = itemOffset To endOffset - 1
Dim itemData As New RadComboBoxItemData()
itemData.Text = data.Rows(i)("descrizione").ToString()
itemData.Value = data.Rows(i)("id").ToString()
result.Add(itemData)
Next
REM ottengo il messaggio dei record selezionati
comboData.Message = GetStatusMessage(endOffset, data.Rows.Count)
comboData.Items = result.ToArray()
Return comboData
End Function
Private Shared Function GetStatusMessage(ByVal offset As Integer, ByVal total As Integer) As String
If total <= 0 Then
Return "Nessun dato"
End If
Return [String].Format("Record <b>1</b>-<b>{0}</b> out of <b>{1}</b>", offset, total)
End Function
Private Shared Function Getcategoria(ByVal text As String) As DataTable
Dim adapter As New SqlDataAdapter("SELECT * from Tab_categorie WHERE descrizione LIKE @text + '%'", ConfigurationManager.ConnectionStrings("TrycontactString").ConnectionString)
adapter.SelectCommand.Parameters.AddWithValue("@text", text)
Dim data As New DataTable()
adapter.Fill(data)
Return data
End Function

and

aspx code:
<telerik:RadComboBox ID="Radcity" Runat="server" Height="145px"
LoadingMessage="Caricamento..." Width="270px"
EmptyMessage="Seleziona la tua città" EnableLoadOnDemand="True"
EnableVirtualScrolling="True" ShowMoreResultsBox="True" Filter="StartsWith">
<WebServiceSettings Method="GetCityNames" Path="index.aspx" />
</telerik:RadComboBox>

now, the table witn name tab_comuni has 8152 record, and I would like the code that loads the records was fast.
then how do I change the sql query? because when I click on the combobox before you see the 10 selected records, I have to wait several seconds and then when I flow the combo until the end and start loading the other 10 records and so on, waits in the combo empty space. I welcome any advice.

or is there a way to display the drop-down only when the user begins to writing andthe search text? I think it is faster and avoids loading in memory over 8100 records.

I could also use the object AutoCompleteBox with webMethods?

hello and thank you


sujatha
Top achievements
Rank 1
 answered on 19 Feb 2018
1 answer
173 views

I'm trying to find/reference the RADimagegallery ID  within a RadDataList via  PageLoad() javascript.    How do I reference the RadImageGallery control inside a RadDataList to START the slideshow automatically.

 

function pageLoad() {
  

   var parentElement = $get("<%= RentalListingDataList.ClientID%>");
     $find('<%=RadImageGallery1.ClientID%>').playSlideshow();  <=== this errors
 }

Note : I am loading the images from the directory and filename from the database

Eyup
Telerik team
 answered on 19 Feb 2018
3 answers
95 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
60 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
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?