Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
156 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
148 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
200 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
361 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
57 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
400 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
4 answers
139 views
Hi,

For a page with a scheduler control on it, I would like to have a refresh function. The scheduler gets it's data from a WCF webservice. I would like to use that to read appointments again and to prevent a postback begin fired. What clientside JS method is available for reading / refreshing all appointments on the current timeframe of the scheduler control?
Nikolay Tsenkov
Telerik team
 answered on 16 Dec 2010
1 answer
70 views
how to increase width for radDropDowncolumn in radgrid
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2010
4 answers
390 views
I have a dynamically built radgrid which outputs a list of products and their unit price. 
I have also created a template column for the grid which puts a textbox on each row so that a user can enter a quantity.

What I need to do is have some javascript so that when a user enters the quantity into the textbox for a given row, the cost of the unit price multiplied by the quantity is displayed on the row in another column, under the header text "Line Total", and the total of these for all of the rows is displayed at the bottom of the grid.

I also need to be able to have several of these grids on the same page and have the total for all grids displayed at the bottom of the page.

I have managed to get the grids all built ok and have the textboxes output but am really stumped as to how to proceed.

ANY help would be appreciated...

Thanks in advance,
Karl

Karl
Top achievements
Rank 1
 answered on 16 Dec 2010
3 answers
123 views
I'm using Telerik.Style.Version 2009.3.1103. In my Telerik.skin file I have the following:

<telerik:RadComboBox

 

 

SkinID="RadCombobox_MultiSelect_Standard"

 

 

runat="server"

 

 

AllowCustomText="true"

 

 

HighlightTemplatedItems="true"

 

 

ChangeTextOnKeyBoardNavigation="False"

 

 

MarkFirstMatch="true"

 

 

Mode="MultiMode"

 

 

Width="100%"

 

 

MaxHeight="150px"

 

/>

 



 


In my ASPX file for my RadComboBox I have the following:

<

 

div class="small">

 

 

<p>

 

 

<aca:RefDataLabel ID="lblStatus" runat="server"></aca:RefDataLabel></p>

 

 

<afs:RadComboBox runat="server" ID="rcbStatus" SkinID="RadCombobox_MultiSelect_Standard"

 

 

DisplayType="Value">

 

 

</afs:RadComboBox>

 

 

</div>

 

When I run my page in IE 8 with compatible mode 'On', I'm able to see my combo box normally. If I turn 'Off' the compatible mode, the combobox basically shows only the arrow to click. So, its size is reduced to zero.

I have seen some issue related to the size of radcombobox being increased instead of decreased for the same scenario I described above. But, even for that I didn't find a solution provided officially by Telerik.

Thank you in advance for your time.

Kind Regards,
Gent

 

 

 

 

 

 

Yana
Telerik team
 answered on 16 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?