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

I'm experiencing an issue with radgrid grouping. Apparently the grid is only sorting by date but not grouping by date. For example; If I had 5 entries for 4/20/2012 I would expect a group for the date and five sub entries. But what I'm experiencing is 5 separate groups. I attached a screenshot to give you an idea. I really appreciate your help.
<telerik:RadGrid runat="server" ID="grdRecentActivity" DataSourceID="objActivity" Width="99%" Skin="Sunset" ShowHeader="false"
                          onitemdatabound="grdRecentActivity_ItemDataBound">
                      <HeaderStyle CssClass="HistoryGridHeader" />
                       <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                       <MasterTableView AutoGenerateColumns="false" CssClass="GridRecentActivity" GroupLoadMode="Client" ExpandCollapseColumn-Groupable="False">
                           <GroupByExpressions>
                               <telerik:GridGroupByExpression>
                                   <SelectFields>
                                       <telerik:GridGroupByField  FieldName="Date" FormatString="{0:D}" FieldAlias="Date"
                                        HeaderText=" " />
                                   </SelectFields>
                                   <GroupByFields>
                                       <telerik:GridGroupByField FieldName="Date" SortOrder="Descending" FieldAlias="StartDateTime"
             FormatString="{0:dd/MM/yy}"    >
                                       </telerik:GridGroupByField>
                                   </GroupByFields>
                               </telerik:GridGroupByExpression>
                           </GroupByExpressions>
                           <Columns>
                               <telerik:GridTemplateColumn DataField="Message" HeaderText="Message" UniqueName="Message">
                                   <ItemTemplate>
                                       <asp:Label runat="server" id="Label1" Text='<%# Eval("Type") %>' CssClass="FirstColumn" />   -  
                                       <asp:Label runat="server" id="lblMessage" Text='<%# Eval("Message") %>' />
                                   </ItemTemplate>
                               </telerik:GridTemplateColumn>
                           </Columns>
                       </MasterTableView>
                       <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                           <Selecting AllowRowSelect="True"></Selecting>
                           <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True"
                           ResizeGridOnColumnResize="False"></Resizing>
                   </ClientSettings>
                   </telerik:RadGrid>

Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 23 Apr 2012
5 answers
458 views
Hi Support
I'm doing work with telerik Radgrid in my asp.net application , the grid contain filtering , paging option, it looks nice . The data are comming from database to fill up the radgrid . now there is radiobutton with every row . I need to know suppose use click on one radio button and there is one button name delete or edit , the button is outside of radgrid , the row Id of that particular row . See the Image , in the attached file . Suppose user click on Container name row radio button (see the Image) and press the delete button I need to know The Row Id that is DisplayContinerId in my case.

In asp.net grid control it is done by below code but in Telerik pl guide me

protected void ButtonDelete_Click(object sender, EventArgs e)
{
 string id = string.Empty;
 //loop the GridView Rows
 for (int i = 0; i < GridView1.Rows.Count; i++){
      RadioButton rd= (RadioButton )GridView1.Rows[i].Cells[0].FindControl("radiobutton1"); //find the button
      if (rd.Checked)
      {
          id = GridView1.Rows[i].Cells[0].Text; // get the id of the field to be deleted
       }
 }
Thanks
Shinu
Top achievements
Rank 2
 answered on 23 Apr 2012
1 answer
199 views
I'm trying to get the selected value of a datepicker within document ready javascript:

My datepicker:
<telerik:RadDatePicker runat="server" ID="rdpDate" ClientIDMode="Static" Width="100">
<ClientEvents OnDateSelected="rdpDate_DateSelected" />
<Calendar runat="server" ID="cDate">
<SpecialDays><telerik:RadCalendarDay repeatable="Today" Date="" ItemStyle-CssClass="rcToday" /></SpecialDays>
</Calendar>
</telerik:RadDatePicker> document.ready: <telerik:RadCodeBlock ID="rcb" runat="server">
<script type="text/javascript">
$(function () {
var datepicker = $find("<%= rdpDate.ClientID %>");
console.log(datepicker);

I'm getting "null". What am I doing wrong?
Princy
Top achievements
Rank 2
 answered on 23 Apr 2012
1 answer
45 views
I view 16000 rows into RadGrid Using Virtual Scrolling with Client-Side Binding but I was binding 450 rows, I get error Failed to load resource: the server responded with a status of 500 (Internal Server Error). I user Webmethod get data.
Andrey
Telerik team
 answered on 23 Apr 2012
5 answers
239 views
Hi ,

Iam using radbutton in my application , when i set the height and width of the controls to some values then the control is fading out and its
bottom edge, if i dont specifies and height and width its showing its default size.

Even when i set the images they are not showing up on the design time and the rendering on the runtime is not proper.

 

 

 

<Tel:RadButton ID="RadButton1" runat="server" ButtonType="LinkButton" Text=" this is for test" Height="30" >

<Icon PrimaryIconUrl="~/Images/Text.png" SecondaryIconUrl="~/Images/Tiff.png" />

</Tel:RadButton>

and

<Tel:RadButton ID="RadButton2" runat="server" Width="80" Text=" this is for test2" Height="30" >

<Image ImageUrl ="~/Images/Text.png" DisabledImageUrl="~/Images/Tiff.png" />

 

</Tel:RadButton>
and

 

<Tel:RadButton runat="server" ID="btn1" EnableBrowserButtonStyle="true" Text="test" Height="30"

 

BorderStyle="None" />

please help on this.

Thanks,
Srinivas


Slav
Telerik team
 answered on 23 Apr 2012
1 answer
208 views
Hi All,

I trying to display.rtf file content in RadEditor using LoadRtfContent(stream) method.In rtf file contains tables & images,In radeditor, i am unable to display tables & images.Please give me any answer for my question.Please find the below code, i am using to display .rtf file data in radeditor.

Code:

    FileStream fstream = new FileStream("C:\\THTDocumentsUpload\\Resumes\\25\\78\\Test.rtf", FileMode.Open, FileAccess.ReadWrite);
            
    radDescription.LoadRtfContent(fstream);
Rumen
Telerik team
 answered on 23 Apr 2012
6 answers
104 views
Hi,

      I am using a RadScheduler on one of the pages in our applications and it works fine on Internet Explorer. I mean when the page loads for the first time I can see the radscheduler but this is quite opposite in firefox and chrome. When the page loads for the first time the radscheduler isnt visible. But when the user adjusts the window of the browser then the radscheduler appears.

Is this some kind of a CSS issue or am I missing something? Any help would be appreciated...The radscheduler is in a <div>

Regards,
Prakash
Ivan Zhekov
Telerik team
 answered on 23 Apr 2012
1 answer
110 views
Hi All
On my website I use a top section div with fixed width and height on various pages that contain different sets of controls for different pages. I used the RadDock control so that the RadCombobox controls can be visible or invisible depending on the page it appears on. There will never be more than 8 controls on any page.
I attached a jpeg that explains how I want it to happen in practice. I have played around with vertical and horizontal orientation but it is almost like I need a combination of both horizontal and vertical as I would like the docked items to move in a zig zag pattern (see jpeg). I can use horizontal orientation but it causes gaps (i.e. sometimes 2 half controls appear next to each other leaving 2 gaps under the halves instead of slotting in underneath)

Anyone got some advice on how to solve this?
Much appreciated
Marisa
Slav
Telerik team
 answered on 23 Apr 2012
3 answers
112 views
Hello,

Is it possible for us to replace the standard upload dialog used in the Image Manager with a custom dialog?

Cheers,
Kristof
Rumen
Telerik team
 answered on 23 Apr 2012
3 answers
113 views
I have a vertical menu that has menu items that need to wrap and I would like to adjust the spacing to make the wrapped text spacing smaller. Is this possible?

See the attachment.
Kate
Telerik team
 answered on 23 Apr 2012
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?