Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
154 views
Hello

I am using the dynamic data controlls for my admin section and where i am using a radlistview to show the detailed items.
When i give the datasource Id and all , it doesn't show any contents and it says it is not having any itemtemplate.But as it is a dynamic datacontrolls i can't add specific template items.How can i get the auto generated walues from the dynamic data items in the RADLISTView.

Please help.

Nikolay Rusev
Telerik team
 answered on 16 Dec 2010
1 answer
36 views
I have the following 2 column definitions in a grid.  When the grid displays there is no data in the DateTime column, but the calculated field is populated correctly.

If I delete the calculated column then the DateTime column works correctly.

What is wrong with the calculated column definition?

Mike

<telerik:GridDateTimeColumn UniqueName="GridRestoreTmstmp" DataFormatString="{0:MM/dd/yyyy H:mm:ss}" HeaderText="Restored" DataField="restoreTimestamp" >
    <HeaderStyle Width="70px" />
</telerik:GridDateTimeColumn>
<telerik:GridCalculatedColumn DataFields="customersRestored, customersRestoredAdjustment"
    DataType="System.Int32" Expression="({0}+{1})" HeaderText="Customers Restored"
    UniqueName="GridCustomersRestored" >
    <HeaderStyle Width="40px" HorizontalAlign="Right" />
</telerik:GridCalculatedColumn>
Maria Ilieva
Telerik team
 answered on 16 Dec 2010
4 answers
121 views
Hi,

I am implementing the RadEditor in RadWindow code example into my application. In your example you are only displaying one RadEditor that is on the Default.aspx page in the RadWindow. In my case I have 8 RadEditors on the same Default.aspx page and I need to display each of them in the same RadWindow, only one at a time of course. I will show you the code I am using below. Please assist.

        DefaultCS.aspx:

        function SetEditorContent(content)
        {            
           $find(
"<%=MyRadEditorOnPage1.ClientID%>").set_html(content);  //set content to RadEditor on the mane page from RadWindow
       
}

        EditorInWindow.aspx

        function setContent(content)
    {
     var editor = $find("<%= editor1.ClientID %>");
         if (editor) editor.set_html(content); 
    }



How do I do this for MyRadEditorOnPage2 - 8? Would some kind of a switch() statment work?

Thanks,


Steve Holdorf
Top achievements
Rank 1
 answered on 16 Dec 2010
1 answer
92 views
Hi,

I want to add an additional column to Calendar, just like in attached image. I tried to use ShowRowHeaders but I don't know how to move column to the right side.

Best Regards,
Artek
Tsvetina
Telerik team
 answered on 16 Dec 2010
3 answers
129 views
hi guys.

i have a Dock that contain a user control that this usercontrol contain a radMenu.
when sub menu is open, menu goes under radDock and some times scrolling.
how i can fix it that dont goes under DIV?


tnx

regards
Pero
Telerik team
 answered on 16 Dec 2010
3 answers
110 views
Hi,

I've managed to make a grid work with a subgrid and popup admin forms for the two levels.  Now that I have it largely working I am looking at making it more usable for the end user.  As it stands with command bars it looks very complex so I've kept the command bar on the top of the grid, that is fine for adding new elements to level 1.  On the second level I decided that the command bar was wasting too much space so I have put a + button in each row in level 1 - this can be seen in the attached screenshot.

The problem that I have is by moving the + button to the row the code that handles default checkbox config on the form template now fails. My insert form code is shown below - the top part handles creation of the form for the level 1 grid while the second one (with a renamed CommandName) needs to open the child grids insert form.  

I think that I'm just tired but cannot figure out howto get the child form open.  

Any pointers?

Regards,

Jon

Private Sub uxRadGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles uxRadGrid.ItemCommand
        If e.CommandName = Telerik.Web.UI.RadGrid.InitInsertCommandName Then
            e.Canceled = True
            Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary()
            newValues("ShowTotal") = False
            newValues("IncludeInGrandTotal") = False
            e.Item.OwnerTableView.InsertItem(newValues)
        ElseIf e.CommandName = "InitInsertElement" Then
            e.Canceled = True
            Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary()
            newValues("IncludeInTotal") = False
' FOLLOWING LINE CRASHES BECAUSE IT IS INSERTING IN THE LEVEL 1 GRID - NOT THE CHILD GRID.  
' NEED CODE FOR OPENING CHILD INSERT FORM
            e.Item.OwnerTableView.InsertItem(newValues)
        ElseIf (e.CommandName = "Update" OrElse
.... rest irrelevant
Jon
Top achievements
Rank 1
 answered on 16 Dec 2010
2 answers
179 views
I have a RadTextBox that is having its value attribute set via javascript/ajax call $telerik.$.get. This works great except that when the control receives focus, the text is erased??? How can I turn this off? There is no code set for the onfocus event.
Kevin Price
Top achievements
Rank 1
 answered on 16 Dec 2010
3 answers
333 views
Hi guys,

I have a RadGrid which is populated dynamically by SQL queries at runtime.  I would like to add a total field for numeric columns in the footer, but since the column can be anything potentially, how do I programmatically determine the type of this column at runtime?  I'm aggregating the total in the RadGrid's ItemDataBound event and looking to potentially storing the total for each relevant column in a hash table (using the column name as the key).

Cheers,
Norman
Veli
Telerik team
 answered on 16 Dec 2010
1 answer
44 views
Hi,

i've made change in radgrid javascript events to overcome limitations of dealing with ID="data field name" and it works nice for initial load:
<asp:HyperLink runat="server" Text="{Name}" bindfield="Name,ID" exportformats="html" OnPreRender="hlName_PreRender" />
<asp:Label runat="server" Text="{Name} for PDF" exportformats="pdf" bindfield="Name" />
<asp:Label runat="server" Text="{Name} for Excel" exportformats="excel" bindfield="Name" />
As you can see, i need more flexible way to manage fields. In your case, I cannot created 2 fields referencing the same datafield in the same ItemTemplate. Here I am having separate field sets for exporting into various formats. { } stands for Eval :)

I wonder why you have not used any custom attribute for WebControl, which would stand for DataField - you may add any - but instead sticked to ID and made serious usability limitations... :(

Anyway, now i have the problem with this: if I use ID="data field name" - sorting works as expected, but if I use my approach, without ID, correct data is returned from webmethod as before and dataSource is ok, but the grid is NOT sorted. Please, tell me what should i change in order it did sorting! :) I need it very much, but I don't have idea,  where in the code you check for ID to use it somehow for sorting...
Alexander
Top achievements
Rank 1
 answered on 16 Dec 2010
1 answer
377 views
I ve the following code for displaying multi column combobox.
1) I want the table to get automatically resize instead of me setting the width. What should I do to make the table automatically resizable?
2) Also if I make the width to get the horizontal scrollbar appear, it just moves the data in the table and not the header. What should I do to have the header move?
<telerik:RadComboBox ID="rcbCategory" Runat="server" DataSourceID="dsCategories" DataTextField="Description" DataValueField="Code" AppendDataBoundItems="true" EmptyMessage="Select category..."Width="200px" DropDownWidth="500px" EnableVirtualScrolling="true" HighlightTemplatedItems="true" MarkFirstMatch="true">
<HeaderTemplate>
<table style="width: 480px" cellspacing="0" cellpadding="0">
<tr>
<th style="width: 100px;">Code</th>
<th style="width: 100px;">Description</th>
<th style="width: 100px;">Division</th>
<th style="width: 180px;">Department</th>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 480px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 100px;"> <%#DataBinder.Eval(Container.DataItem, "Code")%></td>
<td style="width: 100px;"> <%#DataBinder.Eval(Container.DataItem, "Description")%> </td>
<td style="width: 100px;"> <%#DataBinder.Eval(Container.DataItem, "Division")%> </td>
<td style="width: 180px;"> <%#DataBinder.Eval(Container.DataItem, "Dept")%> </td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>

 

Kalina
Telerik team
 answered on 16 Dec 2010
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?