Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
155 views
Hi,

  After any item command the treeview and the grid are refreshed. Is there a way to cancel this action? Even if I set e.Cancel = true the refresh still occurs. I would like to be able to do two things. I would like to be able to cancel the refresh of both the treeview and the grid when the e.Cancel is set to true and I would like to put in a check to see if the action was directed toward a directory or not so I can optionally refresh the treeview. I'm assuming I can do this check in the onItemCommand and manually refresh, I'm just not sure how to stop the default behaviour.

Thanks!

Jed
Vessy
Telerik team
 answered on 21 Sep 2012
7 answers
123 views
Good Day Experts!

I have the ever popular Red X where my RadControl Chart should. I have looked around at all the threads concerning this topic and have not bee able to find out the issue. 

My scenario:
My manager usually maintains our website on his local machine.  The production website works great and the Charts show with no Red X's.  So, my manager wants me to start maintaining the website so we duplicated the environment locally on my machine so I could do so. I had never had any VisualStudio 2003 website projects on my machine so we had to configure IIS and all the related "things". 

Everything on the website works great except for getting the Red X's for the Charts!!!

Question:
I know my summary did not include much detail. I am thinking that my issue must be in my environment setup since the production website works fine and there are no issues for my manager to run it on his machine.

Are there any "usual" set-up issues that you can suggest for me to look at?

Thanks,
Ed Dobias - ITS Traffic Systems
Ves
Telerik team
 answered on 21 Sep 2012
19 answers
314 views
First of all, I'd like to preface this by saying the issue appears to be fixed in the Telerik_AJAX_controls_2011_3_1115_for_SharePoint_2010_Dev release a couple weeks ago; I'm posting it here in case someone else runs into it, and like me, found nothing in searches regarding the error. 

Anyway, there a bug in the MSI installer for the Telerik AJAX controls 2011.2.915 for SharePoint 2010.  I installed using Telerik_AJAX_controls_2011_2_915_for_SharePoint_2010_Dev.msi but when I try to activate the SPRadGrid Feature (or any of the others, for that matter), I get this error: 

[SPException: Failed to instantiate file "TelerikSPRadGridWebPart.dwp" from module "TelerikSPRadGridWebPart":
Source path "Features\RadGridFeature\RadGridSharePoint\TelerikSPRadGridWebPart\TelerikSPRadGridWebPart.dwp" not found.]

If you look in the 14 hive, the actual path to the web part is:  
    FEATURES\RadGridFeature\TelerikSPRadGridWebPart
and not: 
    Features\RadGridFeature\RadGridSharePoint\TelerikSPRadGridWebPart

Also, the "path not found" issue exists with the WSP solution as well.  If you look, for example, at the elements.xml for the RadGridViewFeature, you can see the path is not correct:

<?xml version="1.0" encoding="utf-8"?>
  <Module Name="TelerikSPRadGridWebPart" List="113" Url="_catalogs/wp">
    <File Path="RadGridSharePoint\TelerikSPRadGridWebPart\TelerikSPRadGridWebPart.dwp" 
                        Url="TelerikSPRadGridWebPart.dwp" Type="GhostableInLibrary">
      <Property Name="Group" Value="Telerik" />
    </File>
  </Module>
</Elements>

This is also the case with the others:

<?xml version="1.0" encoding="utf-8"?>
  <Module Name="TelerikSPRadListViewWebPart" List="113" Url="_catalogs/wp">
    <File Path="RadListViewSharePoint\TelerikSPRadListViewWebPart\TelerikSPRadListViewWebPart.dwp" 
                        Url="TelerikSPRadListViewWebPart.dwp" Type="GhostableInLibrary">
      <Property Name="Group" Value="Telerik" />
    </File>
  </Module>
</Elements>

If this hadn't been fixed in the new release, I suppose the most expedient fix is to unpack the WSP and fix the paths, and repackage the WSP, but I was surprised that this issue hasn't come up in the forums. 

Anyway, hopefully this saves someone else some time.

Regards,
Mike Sharp
Tsvetoslav
Telerik team
 answered on 21 Sep 2012
1 answer
86 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
118 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
67 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
141 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
560 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
181 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
454 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?