Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
289 views
My Problem is, In Add New Record mode no Scrolling come to grid. But in Edit mode scrolling appear and ok. I want scrolling too in insert mode also.

<telerik:RadPane ID="radPane4" runat="server" Width="65%" Scrolling="None">
    <telerik:RadGrid ID="radGridItems" runat="server" OnNeedDataSource="radGridItems_NeedDataSource"
        OnDeleteCommand="radGridItems_DeleteCommand" Skin="Windows7" GridLines="None"
        ShowStatusBar="True" OnInsertCommand="radGridItems_InsertCommand" OnUpdateCommand="radGridItems_UpdateCommand"
        AutoGenerateColumns="False" OnItemCreated="radGridItems_ItemCreated" OnItemDataBound="radGridItems_ItemDataBound"
        Width="100%" Height="100%">
        <MasterTableView DataKeyNames="autoIdItems" CommandItemDisplay="TOP"  EditMode="EditForms"
            ShowFooter="true" Name="ContractActivityItems" NoMasterRecordsText="Select Contract Activity To View And Add Activity Items">
            <Columns>
                <telerik:.
                         .
                          dBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <Scrolling UseStaticHeaders="True" AllowScroll="true"/>
        </ClientSettings>
    </telerik:RadGrid>
</telerik:RadPane>
Steele
Top achievements
Rank 1
 answered on 16 Mar 2011
1 answer
101 views
I am sure this is pretty simple but I can't seem to find the answer on here.

I have a stored procedure that returns 3 columns (MonthID, MonthLabel, Totals), I have bound this using a dataset to a RadChart in the code behind but it renders all the values.

My stored procedure returns:
MonthID        MonthLabel        Totals
1                    Jan                     2
2                    Feb                    9
etc, etc


How can I configure the control to show Totals(Y axis) and MonthLabel(X axis)

Many thanks
Martin
Top achievements
Rank 1
 answered on 15 Mar 2011
7 answers
102 views
Hello,
We have built some (content templates) within our MOSS site. In order to help our colleagues to create a new article easily and in one corporate style. When creating an article you can choose between these. For example one has a header with a certain size and a table, another une only headers and text. 

Our problem: When editing and saving an article we get  space within the content because paragraphs are added and HTML tags are not closed correrctly so the size within content is differnt. I cleaned the conten templates with the editor but the problems are coming again.  What can we do?

Thanx for your help!
Brian Ho
Top achievements
Rank 1
 answered on 15 Mar 2011
1 answer
134 views
I'm using the RadComboBox as a mutli select with checkboxes.  The template looks like the following:

<ItemTemplate>
    <div onclick="StopPropagation(event)" class="combo-item-template">
        <asp:CheckBox runat="server" ID="chk1" onclick="onCheckBoxClick(this)"/>
        <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1"><%# Eval("Value")%>
        </asp:Label>
    </div>
</ItemTemplate>

This is working great, however, there are some issues when clicking on html elements that are not the checkbox or label.  When clicking on other HTML elements like the DIV or the LI that is created by the radcombobox control the drop down menu with the items closes and updates the text of the combo box with the item that is contained in the DIV or LI wither it is checked or not.

An example of this would be to click the drop down button of the combo box, put the mouse cursor to the far left passing the checkbox control and clicking.  The drop down list will close and the item name will appear in the text of the control, HOWEVER, the item will not have been checked, because the checkbox control was never clicked.

I have controlled this unwanted behavior for the div by adding a method to the onclick attribute.

function StopPropagation(e)
{
    //cancel bubbling
    e.cancelBubble = true;
    if (e.stopPropagation)
    {
        e.stopPropagation();
    }
}

This fixes the issue with the div and when the div is clicked nothing happens as desired.  HOWEVER, how do I do this same thing for the LI that is created and controlled by the RadComboBox?  It has its own custom style that gives it padding and therefore increases its ability to be clicked.  I need to stop the click propagation of the List Item as it is giving me this broken behavior, its acting like it is a regular non templated combo box and the item has been selected.

Thanks,
Tyler
Simon
Telerik team
 answered on 15 Mar 2011
4 answers
220 views
Hi!
I have a combobox with a datasource and on itemdatabound I set the item.text and the item.value, but when trying to filter it doesn't work. The filter works fine when I just type one letter, but after I type another one it tells me that no matches were found. The filter is in "Contains" mode.

Thanks in advance.
Simon
Telerik team
 answered on 15 Mar 2011
2 answers
298 views
Hi.

Is there no easy way to set a GridBoundColumn as required when in edit mode? Just an attribute setting or forcing the length to be greater than zero or something? It would be easier than having to set up edit and item templates everytime.

Thanks
Chris
Chris
Top achievements
Rank 1
 answered on 15 Mar 2011
2 answers
67 views
I'm using a radgrid in a usercontrol which is loaded based on parentpage control event.
Data is loaded to the grid based on buttonClick event inside the user control.
I'm using AjaxManagerProxy in the usercontrol which updates the Grid itself on any grid events.

When I try to sort or filter or group the grid does not return any records.
sirisha
Top achievements
Rank 1
 answered on 15 Mar 2011
1 answer
183 views
Hey community,

I am working with version 2010.3.1109.35 of the RadControls for ASP.NET AJAX. I have a requirement to make a confirmation dialog appear on a grideditcommandcolumn.

For our purposes, we are retooling the edit button to do a delete.

<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Add/Delete"
    HeaderStyle-Font-Bold
="true" ButtonType="PushButton" EditText="Delete"
        InsertText="Add" HeaderStyle-Width="130"/>

In my grids ItemDataBound event, I have the following:
if ((e.Item is GridEditableItem) && (!e.Item.Edit))
{
    GridEditableItem _item = (GridEditableItem)e.Item;
    ((Button)_item.FindControl("EditButton")).Attributes.Add("onclick", SR.GetString(SR.Message_DeletePopup, "configuration"));
}
 
...

For your convenience my SR class looks like this:
...
 
public static string GetString(string strString, string param1)
 {
       return string.Format(strString, param1);
 }
 
...
 
public const string Message_DeletePopup = "javascript:return confirm('Are you sure you wish to delete this {0}?');";
 
...


The popup confirm dialog is displayed, but the cursor returns from there (ie: my debugger doesn't see it) and my ItemCommand event is never triggered. It doesn't seem matter which button I push, OK and Cancel do the same thing.


Any ideas?

johnv
Top achievements
Rank 2
 answered on 15 Mar 2011
1 answer
111 views

* Here RadGrid Extended for our framewok
* When Exporting to PDF,the content of the grid showing fine. But the HeaderText not visible.

<

 

PM:PMRADGrid ID="tgrdPrintHistoTrans" runat="server" AutoGenerateColumns="False" Height="450px" Width="70%" Visible="false" >

 

 

<MasterTableView DataKeyNames="cid,payee_id,request_id,parent_id" ClientDataKeyNames="payee_id,request_id,parent_id"

 

 

EnableViewState="true">

 

 

<GroupByExpressions>

 

 

<telerik:GridGroupByExpression>

 

 

<SelectFields>

 

 

<telerik:GridGroupByField FieldName="parent_id" HeaderText="" />

 

 

</SelectFields>

 

 

<GroupByFields>

 

 

<telerik:GridGroupByField FieldName="parent_id" HeaderText="" />

 

 

</GroupByFields>

 

 

</telerik:GridGroupByExpression>

 

 

</GroupByExpressions>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderText="Effective &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Posted&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fund"

 

 

HeaderStyle-Width="250px">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblEDate" runat="server" Text='<%# Eval("effective_date", "{0:MM/dd/yyyy}") & " " & Eval("post_date", "{0:MM/dd/yyyy}") & " " & Eval("fidabbrev") %>'></asp:Label>

 

 

<br />

 

 

<asp:Label ID="lblRev" runat="server" Text='<%# Bind("reversal")%>' Visible=true></asp:Label>

 

 

<br />

 

 

<asp:Label ID="Label1" runat="server" Text='<%# Bind("ttype")%>' Visible="true"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Dollar Value" HeaderStyle-Width="75px">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblPDate" runat="server" Text='<%# Eval("dollar_val","{0:C}")%>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Amount" Display="true" HeaderStyle-Width="75px">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblAmount" runat="server" Text='<%# Eval("amt","{0:00.000000}")%>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Units" HeaderStyle-Width="75px">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblUnits" runat="server" Text='<%# Eval("units")%>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="UserId" HeaderStyle-Width="75px">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblUserId" runat="server" Text='<%# Bind("userid")%>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling UseStaticHeaders="false" />

 

 

</ClientSettings>

 

 

</PM:PMRADGrid>

 

Daniel
Telerik team
 answered on 15 Mar 2011
0 answers
73 views
i am having 3 rad comboboxes on a page and on the selected index change event ofone of them a rad grid must appear. In that grid one column is coded in aspx page but other columns should appear as which month has been selected in the above rad combobox. so if january is selected 31 column must appear and accordingly. now in each those cells of column rad comboboxes should come and to be binded to the datatable containing some data as selection from remaining rad comboboxes.

any help will be grateful
thanks in advance
arun
arun
Top achievements
Rank 1
 asked on 15 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?