Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
168 views

I'v been searching at this for a while now, but can't seem to find the solutions.

I have a Paginated RadGrid with grouped items. Everything works fine, including the {continues on next page} and {continued from previous page} messages.
However, I'm adding a button + use custom text (Label) in the header by using <GroupHeaderTemplate>.

No matter how I set the groupsettings, I fail to get any continuation message to appear.
What would be the way to keep the default functionality but use a GroupHeaderTemplate? Or do I need to edit the header from code behind?(I prefer not to use the ItemDataBound/ItemCreated/PreRender events to customize the header as I've encountered inconsistencies trying it that way)

Nils
Top achievements
Rank 1
 asked on 17 Apr 2019
0 answers
148 views

Hello,

I have a cell context menu on my Pivot Grid and I want to add an option to view the data that compound that cell value.

As for exemple on my attached file: I want to right click on value "1784,00", open the context menu and hit "View". Then I should query by the filters "LANÇAMENTO MANUAL" (row), "APM TERMINALS ITAJAI S.A" (row) and "APMT SERVIÇOS RETROPORTUARIOS LTDA" (column) to retrieve the data that corresponds to the total "1784,00", but I don't know how to get the rows & columns values of the selected cell.

 

Is there a way to achieve that?

Thiago
Top achievements
Rank 1
 asked on 17 Apr 2019
1 answer
544 views

Having an issue with trying to handle the < character in a RadTextBox. I didn't want to have to resort to putting a RadEditor on the form as no other formatting is required.

 

The exception happens on your RadTextbox demo form, as seen in the attachment.

 

Can this be handled elegantly w/o blowing up the page?

Rumen
Telerik team
 answered on 17 Apr 2019
1 answer
463 views

Hi ,  How to Enable/Disable radtoolbar from client side ?
i am used jquery like below , but not disabled.

var rtbar = $find("ctl00_ContentPlaceHolder1_Searchbar");

 if (SelectedName == "False") {
        $("#rtbar").attr("disabled", true);
         //   $("#rtbar").prop("disabled", true);
       // $("#rtbar").attr("style", "disabled:true;");
    }
    else {
       $("#rtbar").removeAttr('disabled');
        // $("#rtbar").attr("disabled", false);
        //$("#rtbar").attr("style", "disabled:false;");
    }

Thanks
 
   

Rumen
Telerik team
 answered on 17 Apr 2019
1 answer
196 views

I am building a page where multiple users collaborate on writing a document.  But I want to check to be sure that all changes have been accepted or rejected prior to submitting the document for approval.  Is there a client-side method that will tell me that, or do I just need to write a quick method that looks for the pending changes tags?  I don't mind writing it, as it wouldn't be difficult, but I'm just hoping that there is a more native solution.

 

Something like below:

if (RadEditor.hasPendingChanges() == false)
{
     AllowSubmit();
}else{
     RejectSubmit();
}

 

Rumen
Telerik team
 answered on 17 Apr 2019
14 answers
578 views

Any consideration to a Bootstrap Telerik Skin that matches the condensed/small Bootstrap sizing.  Specifically for input controls -- like textbox and combobox, etc.

Love the Bootstrap skin - its just a bit large.  And so many of the other Telerik skins are gradient/glossy in their look - we could use more "simple & clean" options.

Or is there some .css based method (w/o going through every control) to affect the existing skin?

Rumen
Telerik team
 answered on 17 Apr 2019
3 answers
282 views

Week 

Sunday: 12/30/2018 - Saturday: 01/05/2019 in SQL Server I get week #1

RadCalendar shows it as week 53.

I have this in my page load event,

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim C As System.Globalization.CultureInfo = New System.Globalization.CultureInfo(Me.rcCalendar.CultureInfo.ToString())
        C.DateTimeFormat.CalendarWeekRule = System.Globalization.CalendarWeekRule.FirstFourDayWeek
        C.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday
        Me.rcCalendar.CultureInfo = C

SQL server is using defaults, Set DateFirst 7 --Sunday

I've also tried this, nothing seems to make any change.

 Protected Overrides Sub InitializeCulture()
        Dim c As System.Globalization.CultureInfo = New System.Globalization.CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.ToString())
        c.DateTimeFormat.CalendarWeekRule = System.Globalization.CalendarWeekRule.FirstFourDayWeek
        System.Threading.Thread.CurrentThread.CurrentCulture = c
        MyBase.InitializeCulture()
    End Sub

 

I've also tried this Routine, which returns week #1 for date : 01/01/2019

Private Function GetIso8601WeekOfYear(ByVal pDateTime As DateTime) As Integer
        Dim day As DayOfWeek = Globalization.CultureInfo.InvariantCulture.Calendar.GetDayOfWeek(pDateTime)
        If day >= DayOfWeek.Monday AndAlso day <= DayOfWeek.Wednesday Then
            pDateTime = pDateTime.AddDays(3)
        End If
        Return Globalization.CultureInfo.InvariantCulture.Calendar.GetWeekOfYear(pDateTime, Globalization.CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Sunday)
    End Function

 

ASPX

<telerik:RadCalendar runat="server" ID="rcCalendar" EnableMultiSelect="False" Width="100%" Height="240px" FirstDayOfWeek="Sunday"
                        DayNameFormat="Short" AutoPostBack="True" ShowRowHeaders="true" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
                        EnableWeekends="True" FastNavigationNextText="&amp;lt;&amp;lt;" SelectedDate="" RangeSelectionMode="None">
                        <ClientEvents OnDateClick="DateClick" />
                    </telerik:RadCalendar>

Eyup
Telerik team
 answered on 17 Apr 2019
2 answers
174 views

I have code to ExpandCollapse functionality in my grid upto 4 level detail table view, previously i was working fine but now it is redirecting me to another page because  I have applied code to redirect inside RowClick event. means when I tried to click on ExpandCollapse it fires same command but on same time it comes again in Itemcommand and e.command shows = RowClick and due to that it executing functionality of RowClick.

Please check image for aspx page radgrid code and .cs code is here.

I think it is happening after took update of 2019.1.215.45 (I am not sure).

 
        protected void rgNegolytes_ItemCommand(object sender, GridCommandEventArgs e)
        {

if (e.CommandName == "RowClick")
           {

//redirect to another page.

}               

 else if (e.CommandName == "ExpandCollapse")
            {

// expand grid and collapse grid.....

 

}
               

}

Attila Antal
Telerik team
 answered on 17 Apr 2019
5 answers
172 views
Hi,

I have radtabstrip with 2 tabs .Also included radmultipage with 2 pageviews havind grid on each page.

I have set rendering on selected page =true in multipage.

Also i used Enableajaxskinrendering to True

Whne i click the tab each  grid  loads but the grid border and column widths are not rendered properly.

Also i use the below script to avoid postbacks

 

function onTabSelecting(sender, args)

 

{

 

if (args.get_tab().get_pageViewID())

 

{

args.get_tab().set_postBack(

false);

 

}

}


Help me out its urgent.

Thanks

Sathya
Vessy
Telerik team
 answered on 15 Apr 2019
1 answer
249 views

Hi,

I think I have quite a specific task. I have a page, where I need to generate multiple grids, for different types of entities.

And the thing is that on grid generation step I do not know types of entities that I will have, in other words I have a set of 'Type' entities each describing some class, so I can not declare grids in 'aspx' page, but I need to generate them in code behind.

I am trying to generate grid in the code behind using this code:

var grid = new RadGrid();
grid.AutoGenerateColumns = true;
grid.MasterTableView.EditMode = GridEditMode.InPlace;
grid.DataSource = input.GetDataForEngineQueryPosition(job, metricKey); //just collection of entities
grid.Visible = true;
grid.DataBind();

Quite simple, and the code is working, I do see the grid with appropriate columns, but I cant edit the values in the cells.

I also tried to generate columns manually depending on properties provided by 'type' entity, like this:

 

var grid = new RadGrid();
grid.AutoGenerateColumns = false;
var propertiesBindingFlags = System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance;
var customizableFields = input.CustomizableProperties;
bool showAll = false;
                
foreach(var property in inputType.GetProperties(propertiesBindingFlags))
{
  var field = new Telerik.Web.UI.GridBoundColumn();
  field.DataField = property.Name;
  field.HeaderText = property.Name;
  field.ReadOnly = false;
  field.Visible = true;
  grid.Columns.Add(field);
}
grid.MasterTableView.EditMode = GridEditMode.InPlace;
grid.DataSource = input.GetDataForEngineQueryPosition(job, metricKey);
grid.Visible = true;
grid.DataBind();

Values are displayed correctly in this case, but unlike for the autogeneration I don't see proper controls for every column (like checkbox) and I understand why.

But I still can't edit the values in the cells.

 

Also, after updating the values I need to submit them back to the server, what is the best way to do this. 

Thanks.

Kind regards,

Erik Martirosyan

Attila Antal
Telerik team
 answered on 15 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?