Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
52 views
Hello,

I purchased "DevCraft Ultimate" and inside the "RadControls for ASP.NET AJAX" pakage I found the download for "SharePoint 2010 Web Parts" that contains some RadControls wrapped inside ready-to-use webparts. I saw on your site http://www.telerik.com/products/sharepoint/silverlight.aspx that also a ready-to-use webpart for the Silverlight RadChart control exists but I can't find the download inside my account page; can you help me?

Thank you very much.
Petar Kirov
Telerik team
 answered on 13 Dec 2012
1 answer
126 views
Hello,

I am currently evaluating the RadRibbon control.
I put a RadDateTimePicker onto a RibbonBar using RibbonBarTemplateItem like this:

...
<telerik:RibbonBarTab runat="server" ID="tab1" Text="Date">
    <telerik:RibbonBarGroup runat="server" ID="group1" Text="Date" >
        <Items>
            <telerik:RibbonBarTemplateItem>                                                       
                <telerik:RadDateTimePicker runat="server" ID="dtpDateFrom" />
            </telerik:RibbonBarTemplateItem>                       
        </Items>                                      
    </telerik:RibbonBarGroup>
</telerik:RibbonBarTab>    
...

The DateTimePicker control gets rendered, but I can't click the textbox or the buttons for choosing the date or the time.

When I put the RadDateTimePicker outside the Ribbon it works fine.

Do you have any advice?

Thank you,
Raik

EDIT: This seems to be a problem with Firefox (I am using FF 17.0.1). It works in IE 7.
Bozhidar
Telerik team
 answered on 13 Dec 2012
1 answer
39 views
HI,
I have a radgrid, which has editmode as InPlace.
In the Insertcommand, i am getting the values as :
<InsertItemTemplate>
                       <telerik:RadTextBox ID="RadtxtPrdNumber" runat="server" Text="">
                       </telerik:RadTextBox>
                   </InsertItemTemplate>

DataTable purchaseOrder = this.PurchaseOrderData;
                                  
GridDataInsertItem item = (GridDataInsertItem)e.Item;
                               
RadTextBox txtProductNumber = (RadTextBox)item.FindControl("RadtxtPrdNumber");
string strProductNumbervalue = txtProductNumber.Text;

when i insert the first row, i am getting the value in "strProductNumbervalue". However when i insert the second row, the "strProductNumbervalue" is coming as empty.
How to fix this?
Thanks
Radoslav
Telerik team
 answered on 13 Dec 2012
1 answer
125 views
Hi,
In the radgrid, i am using editmode = inplace.
sample aspx for edititemtemplate is:
<EditItemTemplate>
                      <telerik:RadTextBox ID="RadtxtPrdNumber" runat="server" Text='<%# Eval("ProductNumber") %>'>
                      </telerik:RadTextBox>
                  </EditItemTemplate>

In the updateCommand code i have the below:
GridEditableItem editedItem = (GridEditableItem)e.Item;
                string value = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["ProductNumber"].ToString();
                          
                  
                DataTable ordersTable = this.OrderGridData;
  
                //Locate the changed row in the DataSource 
  
                string filter = "ProductNumber = '" + value + "'";
                  
                DataRow[] changedRows = ordersTable.Select(filter);
        Hashtable newValues = new Hashtable();
                //The GridTableView will fill the values from all editable columns in the hash 
                // in the below code newvalues is coming as empty 
                e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
  
                DataRow changedRow = changedRows[0];
                changedRow.BeginEdit();

The bolded line has newvalues as empty. i have changed few columns. How to retrieve the updated items?
Thanks
Antonio Stoilkov
Telerik team
 answered on 13 Dec 2012
1 answer
93 views
Hi,

I have a RadGrid with PagerStyle Position="TopAndBottom". I need to change the page size options displayed in the rendered drop down lists, but I am unable to change the options in the seconds (Bottom) drop down list.

Here's my code (but it only affects the first drop down list):

function setUpPager(radGrid) {
    var comboBox = $telerik.findControl(radGrid.get_element(), "PageSizeComboBox");

    var comboItem100 = new Telerik.Web.UI.RadComboBoxItem();
    comboItem100.set_text("10000");
    comboItem100.set_value(100);
    comboItem100.get_attributes().setAttribute("ownerTableViewId", radGrid.get_masterTableView().get_id());

    comboBox.trackChanges();
    comboBox.get_items().add(comboItem100);
    comboBox.commitChanges();
}

Anyone knows how to make the code affect also the second drop down? I am using version 2011.2.
Antonio Stoilkov
Telerik team
 answered on 13 Dec 2012
1 answer
115 views
HI,
Is it possible to add the Footer text for the gridcalculated column programmatically ( c# )?

If yes, how to achieve it?

Thanks
Shinu
Top achievements
Rank 2
 answered on 13 Dec 2012
1 answer
89 views
Hi 

i'm trying to export a grid with 2 detail tables to excel, when i do the export in the excel documents appears 2 columns in color gray in front the text.  I dont understand where my problem because when i do this export from word and pdf works fine

Thanks in advance

There is my Code Behind :

grdcostcategory.ExportSettings.ExportOnlyData = False
            grdcostcategory.ExportSettings.IgnorePaging = False
            grdcostcategory.ExportSettings.OpenInNewWindow = True
            grdcostcategory.MasterTableView.HierarchyDefaultExpanded = False
 
            grdcostcategory.MasterTableView.UseAllDataFields = True
 
            grdcostcategory.ExportSettings.FileName = TL_CF_Configuration.Constants.ExportCostCategory.ToString
            grdcostcategory.MasterTableView.GetColumn("BtnEditImage").Visible = False
            grdcostcategory.MasterTableView.GetColumn("BtnNewClientLocationImage").Visible = False
 
            grdcostcategory.ExportSettings.HideStructureColumns = True
            grdcostcategory.GridLines = GridLines.Both

Shinu
Top achievements
Rank 2
 answered on 13 Dec 2012
3 answers
99 views
Throughout my ASP.Net app I've successfully used the standard DropDownListBox control.  However, I now have a special circumstance in which I need to multiple columns of information rather than the standard single column.  So I'm using the RadComboBox for the first time.  However, reading through the documentation I'm somewhat confused about how to correctly populate it.

Here's my scenario:

I have a DataTable with 3 fields:
  1. Master_Idx
  2. Description
  3. LevelIdx

In the RadComboBox I wish to display two columns:

  1. Description
  2. A special calculated field which stems from LevelIdx

So in the layout page I've defined the RadComboBox like this:

<telerik:RadComboBox ID="radListBox" runat="server" OnSelectedIndexChanged="radListBox_SelectedIndexChanged">
   <ItemTemplate>
      <table>
         <tr>
            <td><%# DataBinder.Eval(Container.DataItem, "Description") %></td>
            <td><%# GetPass_ContractLevel(Convert.ToInt32(Container.DataItem, "LevelIdx"))) %></td>
         </tr>
      </table>
   </ItemTemplate>                        
</telerik:RadComboBox>

In my server-side code I'm populating the RadComboBox like this:

            radList.DataSource = dataTable;
            radList.DataTextField = "Description";
            radList.DataValueField = "Master_Idx";
            radList.DataBind();

            for (int i = 0; i < radList.Items.Count; i++)
            {
              radList.Items[i].DataBind();
            }

The problem is that the LevelIdx value being passed to the server-side method "GetPass_ContractLevel" is always zero.  However, I've successfully implemented "helper" methods like this before which are called from the layout code.  It doesn't seem to be working in this case though.

What am I doing wrong?

Robert

Robert
Top achievements
Rank 1
 answered on 13 Dec 2012
6 answers
423 views
Hello.

Im using a radgrid, and i need to make several changes, first i need to eliminate "refresh" button from CommandItemSettings coul you help me out?

The second change i need to do is set visible false property to a colum in hierarchy, so far im capable to set the property visible for the master table, but i cannot find how to make it on detail table, i am trying to make it visible or invisible programatically.

thanks for your help.
Shinu
Top achievements
Rank 2
 answered on 13 Dec 2012
6 answers
363 views
Hello,

I have rad grid of 50000 records with paging (page size 10).
Now I am selecting row from client side but it not get selected .
Page is remained on first page only

Suppose, I have selected row no. 49999 from client side then page index should be 5000, but page index  remains  0.

Please give me solution it is urgent.

following somthing I have tried

var
pageindex = 0;

var grid = $find("<%=rgdImportExport.ClientID %>");

var masterTable = grid.get_masterTableView();

 var p = masterTable._data.PageSize * masterTable._data.PageCount;

// for (var i = 0; i < p; i++) {

// if (i == id) {

// pageindex = i / masterTable.get_pageSize()

// break;

// }

 

/ /}

masterTable.selectItem(id);

masterTable.set_currentPageIndex(3)

Jayesh Goyani
Top achievements
Rank 2
 answered on 13 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?