Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
I have a Rad chart control on page. on Y Axis, if the value in field increases then table layout skips some of the digits from y axis. please check the attached png you will get clear idea.
I tried with width but on lower resolution chart goes out of the page resolution. so I am looking for other option.
Thanks in advance
Petar Kirov
Telerik team
 answered on 21 Sep 2012
1 answer
101 views

I am trying to omit the text of a column when rows are grouped in my radgrid. The grouped column is "NAME".  So I want the data to display like this:

NAME                CITY     
CALIFORNIA      LOS ANGELES
                           SAN FRANCISCO
                           SAN DIEGO

TEXAS                HOUSTON
                            DALLAS

NEW YORK         NEW YORK
 

<telerik:RadGrid ID="gvArchives" runat="server" CellSpacing="0" DataSourceID="SGMFGPS" GridLines="None" Skin="Windows7" AutoGenerateColumns="False" ShowGroupPanel="True">

 <ClientSettings AllowDragToGroup="True"></ClientSettings>

 

 <MasterTableView DataKeyNames="RIEID" DataSourceID="SGMFGPS" GroupLoadMode="Client">

 <GroupHeaderTemplate>

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

 </GroupHeaderTemplate>

 <Columns>

 <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Value Stream "  SortExpression="Name" UniqueName="Name" GroupByExpression="Name">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="DepartmentName" FilterControlAltText="Filter DepartmentName column" HeaderText="Department Name" SortExpression="DepartmentName" UniqueName="DepartmentName">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="RIEID" DataType="System.Int32" FilterControlAltText="Filter RIEID column" HeaderText="RIEID" ReadOnly="True" SortExpression="RIEID" UniqueName="RIEID" Visible="False">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="RIEName" FilterControlAltText="Filter RIEName column" HeaderText="RIE Name" SortExpression="RIEName" UniqueName="RIEName">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="Facilitator" FilterControlAltText="Filter Facilitator column" HeaderText="Facilitator" ReadOnly="True" SortExpression="Facilitator" UniqueName="Facilitator">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="StartDate" DataType="System.DateTime" FilterControlAltText="Filter StartDate column" HeaderText="Start Date" SortExpression="StartDate" UniqueName="StartDate" DataFormatString="{0:d}"> </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="EndDate" DataType="System.DateTime" FilterControlAltText="Filter EndDate column" HeaderText="End Date" SortExpression="EndDate" UniqueName="EndDate" DataFormatString="{0:d}"> </telerik:GridBoundColumn>

 </Columns>
<GroupByExpressions>

 <telerik:GridGroupByExpression>

 <GroupByFields>

 <telerik:GridGroupByField FieldAlias="Name" FieldName="Name" FormatString="" HeaderText="Name" />

 </GroupByFields>

 </telerik:GridGroupByExpression>

 </GroupByExpressions>

 

Tsvetina
Telerik team
 answered on 21 Sep 2012
1 answer
57 views
I m getting insert event for 2 times After click GridEditCommandColumn  in rad grid .Here is my grid.

                <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server"
                    AllowAutomaticDeletes="True" 
        AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True"
        AutoGenerateColumns="False" CellSpacing="0" 
                     DataSourceID="Item" 
                    ondeletecommand="RadGrid_DeleteCommand" >
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                 <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ID"
             HorizontalAlign="NotSet" AutoGenerateColumns="False" 
                        EditMode=InPlace DataSourceID="Item" >
                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" 
                            Visible="True">
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" 
                            Visible="True">
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="JobID" ColumnEditorID="GridTextBoxColumnEditor1" 
                                FilterControlAltText="Filter JobID column" HeaderText="JobID" 
                                SortExpression="JobID" UniqueName="JobID">
                                <ItemStyle Width="10%" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Description" ColumnEditorID ="GridTextBoxColumnEditor2"
                                FilterControlAltText="Filter Description column" HeaderText="Description" 
                                SortExpression="Description" UniqueName="Description">
                                <ItemStyle Width="70%" />
                            </telerik:GridBoundColumn>
                            <telerik:GridDropDownColumn DataField="UOM" DataSourceID="UOM" HeaderText="UOM" 
                                ListTextField="Display" ListValueField="ID" UniqueName="UOM" ColumnEditorID="GridDropDownColumnEditor1">
                                <ItemStyle Width="10%" />
                            </telerik:GridDropDownColumn>
                            <telerik:GridNumericColumn DataField="Quantity" DataType="System.Int32" 
                                FilterControlAltText="Filter Quantity column" HeaderText="Quantity" 
                                SortExpression="Quantity" UniqueName="Quantity" 
                                ColumnEditorID="GridNumericColumnEditor1" DefaultInsertValue="0" 
                                EmptyDataText="0">
                                <ItemStyle Width="5%" HorizontalAlign="Right" />
                            </telerik:GridNumericColumn>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton"
                                UniqueName="EditCommandColumn">
                                <ItemStyle Width="5%" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"
                                ConfirmDialogType="RadWindow" ConfirmText="Delete this record?" 
                                ConfirmTitle="Delete" Text="Delete" UniqueName="DeleteColumn">
                                <ItemStyle CssClass="MyImageButton" HorizontalAlign="left"/>
                            </telerik:GridButtonColumn>
                        </Columns>
                        <EditFormSettings>
                        
                            <EditColumn FilterControlAltText="Filter EditCommandColumn1 column" 
                                UniqueName="EditCommandColumn1" >
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>


Maria Ilieva
Telerik team
 answered on 21 Sep 2012
1 answer
119 views
Hi,

We have purchased telerik controls, and having difficulty in RadMenu.
Please look at -
http://183.182.91.146/Golfpyramid/Home.aspx

When "Home" menu is selected, it shows different background. But when we select any other menu, then it does not highlight it as it does for "Home".

Can you please tell us what could be the issue?

Kate
Telerik team
 answered on 21 Sep 2012
4 answers
506 views
Hey Peeps,

I have a bit of a problem here. I'm trying to populate a RadComboBox using a web service. It's working as expected however, some combo boxes needs to be populated dynamically. Basically I have three combo boxes on a page. The first combo box is populated using the standard ASP SqlDataSource object. The second combo box needs to be populated according to the selection of the first combo box and the third combo box needs to be populated according to the first and second combo box selections. All three combo boxes have their 'CheckBoxes' property set to true (multi selection required across all three combo boxes). I can manage the first two combo boxes using the SqlDataSource however I need to have something like the EnableLoadOnDemand function on the third combo box. If the client has selected ALL categories on the first combo box and ALL categories on the second combo box, then the third combo box will need to be populated with all available products (+/- 123 000 records). In a normal scenario using the SqlDataSource it takes a very long time to populate. I'm trying to find a way that will reduce loading time.

How do you suggest I approach this situation? What I've done so far is to create a web service to handle the data, but I need to specify the categories and sub categories so that the products are filtered correctly. Is there a way to refresh the web service on the combo box so that these items are populated correctly? (calling DataBind() does not affect the combo box when the LoadOnDemand is set to true).

The control:

<telerik:RadComboBox ID="cboSubCategories" runat="server" EmptyMessage="Select" AutoPostBack="true" OnSelectedIndexChanged="cboSubCategories_SelectedIndexChanged" AllowCustomText="true" Enabled="false" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" EnableLoadOnDemand="false" EnableItemCaching="true" Width="324px">
                        <WebServiceSettings Path="ComboBoxWebService.asmx" Method="GetSubCategories"></WebServiceSettings>
                    </telerik:RadComboBox>

In the code-behind I'm trying to re-assign the web service settings:

string[] serviceInputArray = checkedValues.Split(';');
 
            ComboBoxWebService service = new ComboBoxWebService();
            service.SetSubCategoryValues(serviceInputArray);
 
            cboSubCategories.Enabled = true;
            cboSubCategories.EnableLoadOnDemand = true;

But with the above coding, the page returns an error 'Object reference not set to an instance of an object'. If I remove the coding, then the service populates nothing (because I'm not setting any values into the web service to retrieve categories from). When I don't set the <WebServiceSettings> into the control, and assign it in the code-behind, then the same error is shown.

Any solutions or suggestions will be greatly appreciated!
Tom
Top achievements
Rank 1
 answered on 21 Sep 2012
1 answer
141 views
Hi,

My RadTreevies displays child nodes in horizontal order.
Image attached, How can I chage it to veritical order?

Here is my aspx.

 

<telerik:RadTreeView ID="radTreeViewUsers" MultipleSelect="true" EnableDragAndDrop="true"
  
Height="500px"  runat="server">
  
</telerik:RadTreeView>

This is how I bind data.

 

 

 

 

 

radTreeViewUsers.DataSource = dt1;
radTreeViewUsers.DataFieldParentID = "MANAGER_USER_PROFILE_ID";
  
radTreeViewUsers.DataTextField = "FULLNAME_WITH_PROFILE";
  
radTreeViewUsers.DataValueField = "USER_PROFILE_ID";
  
radTreeViewUsers.DataBind();
  
radTreeViewUsers.ExpandAllNodes();

Appreciate your help here.

Thanks,
Ramesh

Princy
Top achievements
Rank 2
 answered on 21 Sep 2012
6 answers
424 views
Hi All,

I have a file upload control inside the rad grid.. when i try to upload a file using file upload its not working properly.. i wish to retrieve the file path on my code behind.... please help 

Regards,
Prassin
Prassin
Top achievements
Rank 1
 answered on 21 Sep 2012
5 answers
130 views
I am using a RadDataPager to allow my user to page through a series of records.

I am successfully keeping track of every thing.
I should mention I am doing this in code-behind.

I respond to the OnCommand events, get the data, and present each record as they interact with the pagination.

I also want to allow them to add and delete data.

I respond to the TotalRowCount request which seems to get triggered when I issue a FireCommand evet at the DataPager.

Everything works well on the add. The Total row count and current page is updated and the user is positioned on the correct data.

However when I want to remove an entry the current page value in the UI is set to 1.

Now the data being presented is incorrect and if they click Next my code traps because my internal index is set to the wrong value.

I am firing a command with my desired page number but it always sets the DataPage to page 1.

My current work around is to set my internal index to zero.
Tsvetoslav
Telerik team
 answered on 21 Sep 2012
4 answers
197 views
I'm using a RadGrid with a GridClientSelectColumn and paging is enabled.  I want to perform row deletions in the ItemCommand event handler when a "Delete Checked" linkbutton in the command row is clicked.

I check two rows in the GridClientSelectColumn on the first page, then page forward to 2nd page and check 2 more rows.  When I click the "Delete Checked" linkbutton, the ItemCommand event handler spins through the radgrid.SelectedItems and deletes the two rows checked on the 2nd page, but not the two checked rows on the first page.  I do understand why it works this way.  My question is, what approach should I use to accomplish what I want to do, since this way isnt going to cut it...
Tsvetoslav
Telerik team
 answered on 21 Sep 2012
2 answers
137 views
Hello All,
Greeting of the day!

How we can bind tooltip on x axis label item.
Please suggest me.

I have attached image file have a look this.


Thanks
Viky
Viky
Top achievements
Rank 1
 answered on 21 Sep 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
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
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?