Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
265 views
I have problem using querystring parameters with a project where i use a RadTabStrip control with RadPageViews containing different aspx pages.

The user normally only sees http://MY_SITE_NAME/Default.aspx in the address bar.
My scenario is that for instance the first tab in the RadTabStrip opens a page, Tasks.aspx inside a Multipage. The Tasks.aspx page has a gridview which opens a detailsview inside a RadWindow. What i want to is is to create an url like http://MY_SITE_NAME/Default.aspx?Tab=Tasks&ProjectID=2&TaskID=1 , reading the querystring parameter in Tasks.aspx i then open the queried task in a RadWindow. 

The problem is that above my tabcontrol design i have a combobox which can change the current project to another. When the user has followed an url with the previous mentioned parameters, a new project is opened but Default.aspx will open the task with ProjectID=2TaskID=1even though the project has changed to a new project and the querystring shouldn't be used anymore. 

I know I can save the querystring parameters in Session and redirect the user in Default.aspx, but I would like to avoid using the Session variable. 

I have also tried to save the TaskID in the Context item, and do a Server.Transfer to the same page, but this gives me a stackoverflow exception.

How do I address this problem in the best way? Any suggestions would be appreciated
Nencho
Telerik team
 answered on 13 Dec 2012
3 answers
48 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
109 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
36 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
118 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
84 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
113 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
83 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
91 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
387 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?