Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
I have a RadGrid that has a hierarchical tables. 

When I use the edit template and save or cancel, the parent expand and edit column disappear.  Any Ideas what is happening?

The Grid is set up like this
DetailTable
DetailTable --> Use one of the edit commands which kicks off an edit template
DetailTable
When I save my work from the edit template, the parent detail table looses the edit and expand buttons


Update:

It appears that when you click on anything from the CommandItemTemplate. If I move the window I can see the top level looses the edit and expand buttons
Thanks.
John Giblin
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
53 views
Hello.

I have a problem with the table wizard. I can create and apply a custom css style for the table, but the checkboxes in the "Apply special formats to" section are always disabled (see attached screenshot). No script errors. We are using Version 2009.3, and cannot upgrade at the moment.

Thanks for help.

Steve
Rumen
Telerik team
 answered on 01 Feb 2013
1 answer
150 views
Hi everyone, how can we use PivotGrid control in MVC application?
I'm novice to RadControl and I have tried to use PivotGrid in Asp.Net application.

Can anybody provide the example how to implement it with MVC(aspx view engine).

--
Thanks
PS
Pavlina
Telerik team
 answered on 01 Feb 2013
4 answers
109 views
I have just put a new site to our production server running iis7

http://www.channelmyorders.com.

The default page is default.aspx

It has a log on button which fires an asp:panel with various login controls

The button does nothing.

However ...

if you go to http://www.channelmyorders.com/default.aspx it works fine !!

Has anyone come across this before.

regards

Andy

ToddKC
Top achievements
Rank 1
 answered on 01 Feb 2013
1 answer
56 views
Hi,
i'm using RadFilter and call FireApplyCommand() to rebind grid but grid's current page index is set to 0. How to retain the current page index?

Thanks in advance.
Pavlina
Telerik team
 answered on 01 Feb 2013
5 answers
323 views

Hi there

I have two perfectly working RadComboBoxes - one is single column, the other is a multi-column (using itemtemplate).  Both use LoadOnDemand (ItemsRequested event).

I noticed that the single column combobox highlights text as the user types, but the same does not happen for the multi-column combobox.  I've set HighlightTemplatedItems="true" but this of course only affects the highlighting of the row, not individual letters.

I checked the Q3 2010 demos on my system and they replicate the issue I am having.

But then I noticed that the demo on this site has a working version, but you have not posted the code for it on the page.  For example, type in "ca" in the product combobox and the "Ca" highlights on the two matching items.
http://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultcs.aspx

Are you able to post the code for the example on the page above so I can see what I may be missing? Cheers :)

The code i use is as follows.

Markup

<!-- Multi-column RadComboBox -->
<!-- HighlightTemplatedItems property highlights the item row (created by itemtemplate) on mouse hover -->
<!-- OnClientKeyPressing event opens combobox drop down when text is being typed -->
<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true" Height="170px"
    Width="580px" HighlightTemplatedItems="true" EnableLoadOnDemand="True" Filter="Contains"
    NoWrap="True" ShowMoreResultsBox="True" OnItemsRequested="RadComboBox1_ItemsRequested"
    OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" OnClientKeyPressing="(function(sender, e) { if (!sender.get_dropDownVisible()) sender.showDropDown(); })">
    <HeaderTemplate>
        <ul>
            <li class="col1">Text Property</li>
            <li class="col2">Value Property</li>
            <li class="col3">InstNumber Attribute</li>
        </ul>
    </HeaderTemplate>
    <ItemTemplate>
        <ul>
            <li class="col1">
                <%# DataBinder.Eval(Container, "Text")%></li>
            <li class="col2">
                <%# DataBinder.Eval(Container, "Value")%></li>
            <li class="col3">
                <%# DataBinder.Eval(Container, "Attributes['InstNumber']")%></li>
        </ul>
    </ItemTemplate>
</telerik:RadComboBox>

C#

protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
{
    int recordCount = 0;
    int itemsPerRequest = 100;  // how many items to list in combobox
    int itemOffset = e.NumberOfItems;
    int endOffset = itemOffset + itemsPerRequest;
    string searchValue = e.Text;
  
    // prevent filtering on whitespace
    if (String.IsNullOrWhiteSpace(searchValue))
        searchValue = null;
  
    // get data from database
    InstitutesData records = new InstitutesData();
    records = records.ReadRecordsComboBox(searchValue);
  
    // if there are records
    if (records != null)
    {
        // get count
        recordCount = records.Count;
  
        // add INST_NO to front of INST_NAME (custom functionality)
        for (int i = 0; i < recordCount; i++)
        {
            records[i].INST_NAME = records[i].INST_NO.ToString() + " - " + records[i].INST_NAME;
        }
    }
  
    // ensure offset isnt greater than the number of records available
    if (endOffset > recordCount)
        endOffset = recordCount;
  
    // bind data to combobox
    RadComboBox1.DataTextField = "INST_NAME";    // "123 - Number One School"
    RadComboBox1.DataValueField = "INST_NO";     // 123
    RadComboBox1.DataSource = records;
    RadComboBox1.DataBind();
  
    // populate combobox with items within offsets
    RadComboBox1.Items.Clear();
    for (int i = itemOffset; i < endOffset; i++)
    {
        RadComboBoxItem item = new RadComboBoxItem();
  
        item.Text = records[i].INST_NAME;
        item.Value = records[i].INST_NO.ToString();
        item.Attributes.Add("InstNumber", records[i].INST_NO.ToString());
  
        RadComboBox1.Items.Add(item);
  
        item.DataBind();
    }
  
    // display record count information in results box
    if (recordCount > 0)
    {
        e.Message = String.Format("Items <b>0</b>-<b>{0}</b> out of <b>{1}</b>", endOffset, recordCount);
    }
  
    else
    {
        // display 'no data in database' message
        if (String.IsNullOrEmpty(searchValue))
            e.Message = "No data";
  
        // display 'no matches in database' message
        else
            e.Message = "No matches";
    }
}
  
protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    // do something when the selected index is changed
    string selectedValue = e.Value;
}

 

Hristo Valyavicharski
Telerik team
 answered on 01 Feb 2013
8 answers
174 views
Hi,

I have the Table Wizard dialog with CSS selector and pre-defined telerik table layouts as attached PNG.

I cannot fing this anywhere in the current documentation,
Any more information howto implement custom styles in this dropdown?

Marc
Rumen
Telerik team
 answered on 01 Feb 2013
1 answer
245 views
This works great except e.Node.Selected = False
I try disable that you can click (select) on node 1 and 2, but it may not function?
Help me :-)
Protected Sub RadTreeView1_NodeDataBound(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs)
    e.Node.ToolTip = (TryCast(e.Node.DataItem, DataRowView))("NodeId").ToString() & " + " & (TryCast(e.Node.DataItem, DataRowView))("ParentNodeId").ToString()
    e.Node.ImageUrl = "../images/caTree/" & (TryCast(e.Node.DataItem, DataRowView))("ImageUrl").ToString()
    e.Node.NavigateUrl = "../admin_dbpage.aspx?id=" & (TryCast(e.Node.DataItem, DataRowView))("NodeId").ToString() & "&db=ledare" & "&url=ledare/"
    e.Node.Target = "main"
 
    If (TryCast(e.Node.DataItem, DataRowView))("NodeId").ToString() = 1 Or (TryCast(e.Node.DataItem, DataRowView))("NodeId").ToString() = 2 Then
        e.Node.AllowDrag = False
        e.Node.Selected = False
    End If
 
End Sub
Kate
Telerik team
 answered on 01 Feb 2013
1 answer
125 views
Hi there

I am using the method pageLoad(), which as you know is a function that pages with an ASP.NET ScriptManager will automatically execute after ASP.NET AJAX's client-side library initializes and then again after every UpdatePanel refresh.

I found that Chrome doesn't consistently/reliably fires pageLoad() when navigating to my webpage using the site's navigation. The method gets executed reliably when a postback happen though but not when visiting the page (could it be because it's getting cached?). This (when not executed) causes Telerik controls freeze.

IE & Firefox are fine (consistently fires pageLoad()).

I am using telerik:RadScriptManager as my ScriptManager.

Any assistance with this will be much appreciated.

Note: I am using the below in Page_Init() so that the page is not cached but still have the problem with Chrome:
                   . Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); 
                   . Response.Cache.SetNoStore();

Regards,
Muzafar
Tsvetoslav
Telerik team
 answered on 01 Feb 2013
2 answers
218 views
I have a Radgrid with a template edit form, which has update & cancel buttons. All functions work fine, except with some data records.

With those records, when I click the update button, the ItemCommand event is called with RadGrid.UpdateCommandName, but e.Canceled is already set to true, so the record is never updated. I have tried removing all validation, but that makes no difference. If I capture the the RadGrid.UpdateCommandName event and set e.Canceled to false, the record is updated no problem.

So I'd really like to know what might be causing the RadGrid to set Canceled = true?

Thanks for any info.
Jesper
Top achievements
Rank 1
 answered on 01 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?