Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views
Hi,
 We are trying to use two versions of Telerik (2008 Q2 and 2009 Q1) on the same machine within the same application. Some of our modules use the older versions and a few use the newer one. We are having issues using this mixed mode.
Can you suggest us a way to get around this problem?
Is this documented anywhere?

Thanks and Regards
-Advait
Advait
Top achievements
Rank 1
 answered on 10 Nov 2010
3 answers
128 views
I have a webpage that displays the RadEditor using the dialogs etc...it works fine.   When i view this page within a vb.net winform using the web broswer component..when i click to popup the image dialog..i get error web.config registration is missing?

But everything works fine when i view the page in IE

Any suggestion?
Rafael
Top achievements
Rank 1
 answered on 09 Nov 2010
2 answers
55 views
I would like a server side event (Ajax) handler be called on each key stroke in text portion of combo.  Was wondering how to set up the control to do that?  I know that that the behavior of TextChanged is only on form submit, but was looking for an Ajax type event.

Thanks in advance
John
Top achievements
Rank 1
 answered on 09 Nov 2010
1 answer
206 views
Hey Telerik pros,

Could use your help on this one...

I'm trying to use a nested RadGrid to show a BOM (bill of materials) i.e. parts are composed of simpler parts, which may in turn be composed of even simpler parts, etc.

I have a grid like so, using HierarchyLodeMode="ServerBind", and Unique_Id and Parent_Id to create a self-referencing hierarchy.

<telerik:RadGrid ID="RadGrid1" runat="server"OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender"AllowSorting="True">
    <MasterTableView HierarchyLoadMode="ServerBind" AllowSorting="true" DataKeyNames="Unique_Id, Parent_Id">
        <SelfHierarchySettings ParentKeyName="Parent_Id" KeyName="Unique_Id" />
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true">
        <Selecting AllowRowSelect="True"></Selecting>
    </ClientSettings>
</telerik:RadGrid>

Then, in the code-behind, using OnNeedDataSource event:

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
    RadGrid1.DataSource = GetDataTable(); //fetches data, returns DataTable
}

And in the PreRender, hiding the expand column for those rows that don't have anything nested beneath them:

protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    HideOrShowExpandColumnRecursive(RadGrid1.MasterTableView);
}
 
protected void HideOrShowExpandColumnRecursive(GridTableView tableView)
{
    GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
    foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
    {
        foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
        {
            if (nestedView.Items.Count == 0)
            {
                TableCell cell = nestedView.ParentItem["ExpandColumn"];
                cell.Controls[0].Visible = false;
                nestedViewItem.Visible = false;
            }
            if (nestedView.HasDetailTables)
            {
                HideOrShowExpandColumnRecursive(nestedView);
            }
        }
    }
}

And all that works great, I can get the self-referencing hierarchical grid of X levels (where X isn't known until you get the data).

Now, my problem is trying to convert the type of these auto-generated columns, from the regular GridBoundColumn to something like GridHyperLinkColumn. I can't figure out how to do that, maybe it's not possible?

As another approach, I tried adding a GridHyperLinkColumn to the nested views during the PreRender event, but I can't get that to work either.

Does anybody have any suggestions on how to either a) convert the type of these auto-generated columns or b) dynamically add another column to the grid? All I really want is to be able to add a hyperlink to each row in this type of nested grid.

Much thanks,
ET
ET
Top achievements
Rank 1
 answered on 09 Nov 2010
1 answer
722 views
I am using the RadMaskedTextBox controls for several phone number entries on a web form. I used the Smart tag to set up the mask I wanted to use and used declaritive binding in the page markup, like this:

<telerik:RadMaskedTextBox ID="txtPhone" runat="server" Mask="(###)###-####" Text='<%# DataBinder.Eval( Container, "DataItem.Phone" ) %>'
    TabIndex="6" EmptyMessage="-- Enter Phone Number --" HideOnBlur="true" ZeroPadNumericRanges="true" DisplayMask="(###)###-####">
</telerik:RadMaskedTextBox>

However, when the value from the data store is bound to the control, the output is displaying incorrectly. For instance, if the phone number in the data store is, "1112223333", then I would expect the masked display to appear as, "(111) 222-3333", but what is shown instead is, "(111) ___-222_".

Has anyone else seen this or found a work-around?

Thanks in advance,

Jon 
Jon
Top achievements
Rank 1
 answered on 09 Nov 2010
1 answer
78 views
Is there a definitive release date available for the Q3 2010 controls? The roadmap page only lists "early November"
Sebastian
Telerik team
 answered on 09 Nov 2010
6 answers
165 views
Wasnt this implemented recently? I even had information on how to put it in -

Create a GoogleSpellCheckProvider class that implements the ISpellCheckProvider.

Set SpellCheckProviderTypeName property of RadSpell to = typeof(Telerik.Web.UI.GoogleSpellCheckProvider).AssemblyQualifiedName of compiled GoogleSpellCheckProvider created.

This still works?

Thanks.

Roland
Roland
Top achievements
Rank 1
 answered on 09 Nov 2010
1 answer
128 views

I have a form with a grid and a combo box where a user can select the table name they wish to edit.  I have the grid binding to the table name selected by calling Rebind() when the user makes a table name selection, and by handling the NeedDataSource event of the grid to bind to a DataTable.  That seems to work fine.

The problem comes in when I try to edit.  I added a GridEditCommandColumn to the MasterTableView's Columns collection so I get a link to start editing a row, and the editor form appears just fine.  But when I click on 'update', and I try to handle the UpdateCommand event raised by the grid (from code cobbled together from forums), I get an argument out of range exception, that I believe is coming from the edited item's OwnerTableView.DataKeyValues collection which has zero elements. 

One other thing to note, I am using Postgres as the database, but I don't think this is the issue, as I am using npgsql to get standard ado.net objects to bind to.

Any ideas?

 

 

 

 

 

    Private Sub RadGrid1_UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand
        Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
        Dim table As DataTable = Me.GridSource
        'Locate the changed row in the datasource
        Dim pk As String = GetPrimaryTablePKColumn(cboTable.Text)
        If pk Is Nothing OrElse pk.Trim = String.Empty Then
            e.Canceled = True
            Return
        End If
  
'Error Happens Here
        Dim changedRows As DataRow() = table.Select(pk & " = " &
                                                    editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)(pk).ToString)
  
        If changedRows.Length <> 1 Then
            e.Canceled = True
            Return
        End If
        'Update new values
        Dim newValues As New Hashtable
        e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem)
        changedRows(0).BeginEdit()
        Try
            For Each entry As DictionaryEntry In newValues
                changedRows(0)(DirectCast(entry.Key, String)) = entry.Value
            Next
            changedRows(0).EndEdit()
        Catch ex As Exception
            changedRows(0).CancelEdit()
            e.Canceled = True
        End Try

 

 

 

 

 

 

 

 

 

Tsvetoslav
Telerik team
 answered on 09 Nov 2010
1 answer
148 views
Hello,

Using this code base:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridcomboajax/defaultcs.aspx?product=grid

How can I make it so the grid is filtered by a combo box that can select multiple values?

Thanks,

Richard.
Pavlina
Telerik team
 answered on 09 Nov 2010
5 answers
312 views
We are using a custom skin based on the Web20 skin to display a vertical menu.

We would like to display a 'right arrow' if the root menu item contains sub items, (in the same way that the group items display a right arrow).

Does anyone have advice on how to achive this?

Thanks.
Kamen Bundev
Telerik team
 answered on 09 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?