Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 views
Hi Sir,

I am having an issue, After double clicking on RadGrid Record then  through GetDatakeyValue i am getting vaue but not getting value with thousand operator.
 
-->Suppose in Raggrid displayed Amoun Field values is:$1,500.00
-->by using GetDataKeyValue getting value is:1500 not like the above.

If you have an idea please suggest to me sir.

Script:<script type="text/javascript">
        function RowDblClick(sender, eventArgs) {
            var grid = $find("<%= RadGrid1.ClientID %>");
            var MasterTable = grid.get_masterTableView();
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
            var key = MasterTable.getCellByColumnUniqueName(row, "EmpID");
            var ID = key.innerHTML;
            MasterTable.fireCommand("DblClick", ID);
        }
    </script>

 ASPX:
---------

                <telerik:GridBoundColumn DataFormatString="{0:C2}" DataField="Amount" HeaderText="Amount"
                    UniqueName="Amount" Visible="true" Display="true" HeaderStyle-HorizontalAlign="Center"
                    ItemStyle-HorizontalAlign="Center">
                </telerik:GridBoundColumn>

 Code Behind:
 ------------------
   protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
    
        if (e.CommandName == "DblClick")
        {
           GridDataItem item = (GridDataItem)RadGrid1.SelectedItems[0];
           Session["Amount"] = item.GetDataKeyValue("Amount").ToString();
        }
   }

  
Venkateswarlu
Top achievements
Rank 1
 answered on 16 Jul 2014
1 answer
91 views
I want a grid with only  column names and filtering option visible initially. Only when user click on a Search button, the rows will be displayed accordingly. How can I achieve this?
Princy
Top achievements
Rank 2
 answered on 16 Jul 2014
1 answer
105 views
HI,
is there any to Hide "Today" on FastNavgationPopup?
Princy
Top achievements
Rank 2
 answered on 16 Jul 2014
4 answers
135 views
Hello, I am a junior programmar. Recently, I have been requested by using telerik AJAX to plot the html5 chart. Unfortunately, I am facing some kinds of minor problems.

1. Does event handler exist for the range selector?(Attachment: 1.JPG)
For some reasons, I need to keep track with the 'from' and 'to' date of the range selector. I need to put the 'from' and 'to' date to the textbox when the user slides the navigation bar. However, I can't put the rangeselector to the event class. So, it can't be done.
Does HtmlChart include something like http://www.telerik.com/help/winforms/rangeselector-properties-and-events.htmlelector-properties-and-events.html ?

2. Can Appearance of X-axis be changed?(2.JPG)
The another problem is that when the selection range is small, the displayed X-axis only display the time. It makes the users don't know what the date is.

3. HTML5 Chart is slow in IE
I have read many articles that related to HTML5 and IE, and try to add radstylesheet,scriptmanager......html5shiv.js. After doing everything that I know, it is faster but not fast enough. The tooltip only appears if I move the mouse towards the point many times. What else can I do? Can the future package be improved?

I hope you can answer the questions. Thank you.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
Maxson Junior
Top achievements
Rank 2
 answered on 16 Jul 2014
3 answers
430 views
Hi,

I am new to Telerik RadControl suite (2013 Q1) and testing RadGrid control. I am surprised to find that sorting on client side on Radgrid is not that simple. In some post it is mentioned that I have to do this:

call the web service/page method/ URL that provides your data when you need to sort. RadGrid then expects the sorted data to be returned in the response. If you need to simulate this approach entirely on the client-side, you can hook to the client-side OnCommand event, check for the Sort command, cancel the command to prevent default behavior, sort the data programmatically with javascript and pass the sorted result back to the grid using RadGrid.get_masterTableView().set_dataSource().

If we are going with server side:
I have to code in RadGrid1_SortCommand event and rebind the grid. Our requirement has that we use templated column with textboxes and let user enter data. At any point of time, user can sort. Say suppose I have 10 rows, user entered values into text boxes of 2 rows. Then he clicked on some column header text. How do we retain text box values if we rebind the grid. Does it automatically uses viewstate to set back templated column with textboxes and value.

If anyone has any examples, please let me know.
Thanks,
Prathiba.
Sami
Top achievements
Rank 1
 answered on 15 Jul 2014
4 answers
286 views
Can I get confirmation that the documentation on RadDropDownList client-side OnClientItemsRequesting event handling is incorrect, as the constructor for the event arguments is coming across as Sys.CancelEventArgs and therefore has no context? The event arguments for the combobox are of type RadComboBoxItemsRequestedEventArgs, which does not have a context, but I see no corresponding class for the DropDownList.

Is there a workaround that I could use to add a context to the the RadDropDownList OnClientItemsRequesting client-side function?
Bill
Top achievements
Rank 1
 answered on 15 Jul 2014
1 answer
97 views
I'm using Web Service binding for my scheduler control and would like to use Rad dock als  an external form for insert and edit appointment? How can I do it? I tried "Scheduler - External Edit in RadDock" shown in the demo,
http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx

but it didn't work.

Thanks for your help
Yi
Boyan Dimitrov
Telerik team
 answered on 15 Jul 2014
2 answers
364 views
I have a RadGrid to which I've applied alternating row colors via CssClass attributes as recommended here:

<ItemStyle CssClass="GridItemStyle" />
<AlternatingItemStyle CssClass="GridAltItemStyle" />
<SelectedItemStyle CssClass="GridSelItemStyle" />

That works fine to style the rows using my zebra colors.  Now, I've added to the grid:

<MasterTableView AllowSorting="true" />

Now, when I click on a column header, the cells in the column by which I've sorted the data are not styled using my ItemStyle and AlternatingItemStyle CSS classes.  All of the <td/>s in the sorted column have class="rgSorted", yet they're zebra striped in the default grid alternating colours.  What gives?

(Rhetorical aside: Why don't ItemStyle-BackColor, AlternatingItemStyle-BackColor and SelectedItemStyle-BackColor just work the way they should?  Why is the recommended solution that we should use CSS to bypass your grid's own properties?  Shouldn't the recommended solution be to make the grid's published properties work with each other?  If we have to do it in CSS, your developers definitely can.)

So, about that screenshot, why is the sorted column ignoring my CSS row styles and reverting to the defaults?

Thank you,
~Jeff

Jeff
Top achievements
Rank 1
 answered on 15 Jul 2014
1 answer
211 views
Hi!

I am evaluating the diagram control and I found some properties that seems to have no effect.  I use the following lines to initialize the control:
1.<telerik:RadPane ID="diagramPane" runat="server" Scrolling="Y">
2.                <telerik:RadDiagram Resizable="False" ZoomRate="1" ID="radDiagram" runat="server" Width="100%" Height="100%" Draggable="True" Enabled="True" Rotatable="False" Font-Size="12">
3.                    <ClientEvents OnLoad="diagram_load" OnClick="diagram_click" />
4.</telerik:RadDiagram>

The following properties seem to have no effect:
  • Line 1: Scrolling="Y": If I drag a shape over the boundaries, no scoll bar is visible.
  • Line 2: Resizeable="False": The shapes can still be resized.
  • Line 2: Rotatable="False": The shapes are still rotatable.
  • Line 2: Font-Size="12": The font size remains at 15.

Any ideas?

Kind regards,
Hans

Vessy
Telerik team
 answered on 15 Jul 2014
5 answers
144 views
Hi,
DayView in my webservicebound scheduler does not  toggle between 24 hours and businesshours. I am sending ajaax request to server to handle  navigation command. It renders timeslots properly for 24 hours and business hours but doesnot toggle the buttons and always displays "show 24 hours" button.

Here is my server side code, can you tell me if I need any extra configuration?

 ////PK MWF-897  03/31/2014   configure to display 24 hour timeslot  in day and week view
                    if (calendarCommandArgs[2] == "9" && rsTicketsSchedule.DayView.DayStartTime != new TimeSpan(0, 0, 0)) //Show  scheduler for 24 hours 
                    {
                        rsTicketsSchedule.DayView.DayStartTime = new TimeSpan(0, 0, 0);
                        rsTicketsSchedule.DayView.DayEndTime = new TimeSpan(23, 60, 0);
                        
                        rsTicketsSchedule.WeekView.DayStartTime = new TimeSpan(0, 0, 0);
                        rsTicketsSchedule.WeekView.DayEndTime = new TimeSpan(23, 60, 0);
                        
                        rsTicketsSchedule.WorkDayStartTime = new TimeSpan(8, 00, 00);
                        rsTicketsSchedule.WorkDayEndTime = new TimeSpan(18, 30, 00);
                    }
                    else
                    {
                        rsTicketsSchedule.WeekView.DayStartTime = new TimeSpan(8, 0, 0);
                        rsTicketsSchedule.WeekView.DayEndTime = new TimeSpan(18, 30, 00);

                        rsTicketsSchedule.DayView.DayStartTime = new TimeSpan(8, 0, 0);
                        rsTicketsSchedule.DayView.DayEndTime = new TimeSpan(18, 30, 00);
                       

                        rsTicketsSchedule.WorkDayStartTime = new TimeSpan(8, 00, 00);
                        rsTicketsSchedule.WorkDayEndTime = new TimeSpan(18, 30, 00);
                    }


Thanks,
Prava
Prava kafle
Top achievements
Rank 1
 answered on 15 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?