Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
147 views
Does the radgrid have functionality similar to a datalist which allows you to repeat columns?
Blake
Top achievements
Rank 1
 answered on 19 Aug 2010
3 answers
213 views
hi,

i wold like to know how can i use a radWindowManager to replace the standard window that apears when i call a radAjaxPanel.Alert.

thanks in advance.
André Azevedo
Top achievements
Rank 1
 answered on 19 Aug 2010
6 answers
354 views
Hi All,
I am exploring telerik datagrid for one of my requirement in project. I have tried the demo samples but none of them suits my requirement so please suggest me how I can achieve following requirement,
 
I need to show the hierarchy in grid dynamically. Initially I only know my base node (i.e. MasterTableView ) data. After loading the 

MasterTableView

 

data user will expand rows in MasterTableView & at the run time I will create DetailTables & bind grid with it. (so basically I want to create a child grid at runtime, the level of hierarchy is not defined it can grow to any level)

so the structure will be
WorkUnit
    Goals
        Objective
    WorkUnit
        Goals
            Employee
                Objective1
                Objective2  



Thansk in advance
KJ

 

Veli
Telerik team
 answered on 19 Aug 2010
1 answer
103 views
Here's my definition
  <telerik:RadEditor ID="backgroundPriorToMedSchoolTextBox" runat="server" Content='<%# Bind("BackgroundPriorToMedSchool") %>'
                       Width="600px" Height="300px" Skin="Sitefinity" StripFormattingOnPaste="AllExceptNewLines" MaxTextLength="800"
                       EditModes="Design" ContentAreaCssFile="~/studentaffairsnew/styles/editor.css" ContentAreaMode="Div" >
        <Tools>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="Bold" />
                <telerik:EditorTool Name="LinkManager" />
                 <telerik:EditorTool Name="FormatBlock" />
                 <telerik:EditorTool Name="InsertUnorderedList" />
                 <telerik:EditorTool Name="InsertOrderedList" />
            </telerik:EditorToolGroup>
        </Tools>
        <Modules>
            <telerik:EditorModule Name="RadEditorDomInspector" />
        </Modules>
    </telerik:RadEditor>

Now when I load the Page the DOM Inspector is at
HTML > BODY >SCRIPT > RemoveElement?

Clicking remove element removes the DOM Inspector...

(Also in FF I still see the issue where the cursor fills the entire editor window when it's empty)
Rumen
Telerik team
 answered on 19 Aug 2010
5 answers
162 views
There seems to be no help for the Grid Column property "FilterControlAltText" in the list of GridColumm class members, the index or search results..

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 19 Aug 2010
1 answer
135 views
hi in my application i have set clalender date greater than the sysdate on pageload
like radclalender.mindate = sysdate, this throws error when i try to assign a date less than sysdate.

this is happening when i have a chance of gettign the date less than sysdate from database, that i have to dispaly in the text box in calender. my requirement is i can also show the user the date less than the sysdate, but allow the user to select only the date greater than the sysdate.

please help.
Princy
Top achievements
Rank 2
 answered on 19 Aug 2010
1 answer
165 views
Dear All,


In my grid I have a NestedViewTemplate, which has a <asp:Panel />. I create my own expand/collapse template in this panel. Using the structure below. I am able to get access to the .text of my textbox in the template (in _Itemcommand), but the dropdownlist is always empty, and selectedvalue is nothing.

I use rgDefects_ItemCommand to fill all my textboxes and dropdowns and datepickers etc.. with the values required for the row. This all works fine. Then I have a button with a CommandName of "SaveDefect" which then also uses rgDefects_ItemCommand to read out the values. It's very strange that some controls work as expected but others don't (dropdownlists).

Any ideas?

Thanks in advance!!


My structure is basically:

 <telerik:RadGrid ID="rgDefects" runat="server" Skin="Vista" AutoGenerateColumns="false" Width="99%"  >
                 <MasterTableView DataKeyNames="DID" AllowMultiColumnSorting="True"  HierarchyLoadMode="ServerOnDemand" GroupLoadMode="Server">
                    <NestedViewTemplate>
                    <asp:Panel runat="server" ID="InnerContainer" Visible="true">
                            
                            <asp:TextBox ID="txtDescription"  runat="server" class="text-input large-input" TabIndex="1" />
                           <asp:DropDownList ID="ddlTrades" runat="server"  class="large-input" TabIndex="2" />
                   </asp:Panel>
                   </NestedViewTemplate>

                  <Columns>
                       <!-- My normal grid here. -->
                 </Columns>

                    </MasterTableView>
                </telerik:RadGrid>


My VB:

Private Sub rgDefects_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgDefects.ItemCommand

If e.CommandName = RadGrid.ExpandCollapseCommandName Then
            Dim item As GridDataItem = TryCast(e.Item, GridDataItem)

            If Not item.Expanded Then
                Dim nestedItem As GridNestedViewItem = DirectCast(item.ChildItem, GridNestedViewItem)
                Dim dataKeyValue As String = Convert.ToString(DirectCast((nestedItem.ParentItem), GridDataItem).GetDataKeyValue("DID"))

                Dim txtDescription As TextBox
                txtDescription = DirectCast(nestedItem.FindControl("txtDescription"), TextBox)
                txtDescription.text = "Test txtDescription!"

                Dim ddlTrades As DropDownList
                ddlTrades = DirectCast(nestedItem.FindControl("ddlTrades"), DropDownList)
                ddlTrades.Items.Add(New Listitem("Test1","1"))
                ddlTrades.Items.Add(New Listitem("Test2","2"))


          ElseIf e.CommandName = "SaveDefect" Then
            Dim item As GridNestedViewItem = TryCast(e.Item, GridNestedViewItem)
            Dim dataKeyValue As String = Convert.ToString(DirectCast(item.ParentItem, GridDataItem).GetDataKeyValue("DID"))

            
            Dim txtDescription As TextBox
            txtDescription = DirectCast(item.FindControl("txtDescription"), TextBox)

            Dim ddlTrades As DropDownList
            ddlTrades = DirectCast(item.FindControl("ddlTrades"), DropDownList)
            Dim t As Integer = ddlTrades.SelectedValue

End If


Mira
Telerik team
 answered on 19 Aug 2010
3 answers
320 views
Dears,
Is it possible in RadGrid to have column with Auto Fill mode (The column size will be the size of the grid - the sum of other columns sizes). So, this column will occupy all the empty space in the grid.
I tried the following way, I did not set size of one of RadGrid columns and that worked perfectly, that column ocuppied all empty space in the grid. but this way did not work with all internet explorers and not with all screens resultions, So, is there any more professional way?

Thanks in Advance
Best Regards
Dimo
Telerik team
 answered on 19 Aug 2010
1 answer
100 views
When we use RADEditor and jQuery on the same page, IE 6/7/8 throw a script error during page unload.
We use $telerik.addExternalHandler and editor.attachEventHandler. No jQuery event handlers are used.

This is version 2010.1.519.35 of Telerik.Web.UI.

The exception is:
Error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: element

The JScript call stack:
JScript anonymous function
JScript anonymous function
Sys$Application$_unloadHandler
Sys$Application$Dispose
JScript anonymous function
JScript anonymous function
Sys$Ui$DomEvent$removeHandler

The inner most anonymous function is from Telerik.Web.UI.Editor.RadEditor.js, and the call to removeHandler is from this code:
},_registerModeChangeHandler:function(c){if(c){this._onModeButtonClickDelegate=Function.createDelegate(this,this._onModeButtonClick);
$addHandler(this._getModeButtonsWrapper(),"click",this._onModeButtonClickDelegate);
}else{if(this._onModeButtonClickDelegate){$removeHandler(this._getModeButtonsWrapper(),"click",this._onModeButtonClickDelegate);
this._onModeButtonClickDelegate=null;
}}},_onModeButtonClick:function(h){var g=this.get_mode();


A workaround is to add the following as the last script on the page:

<!--[if IE]>
<script type="text/javascript">
    (function() {
        var remove = window.$removeHandler;
        window.$removeHandler = function(a,b,c) {
            if (a) {
                remove(a,b,c);
            }
        }
    })();
</script>
<![endif]-->
Fiko
Telerik team
 answered on 19 Aug 2010
1 answer
148 views
Hello,
Is it possible to create a skin for a tabstrip with different styling on multiple levels of tabs?

Thanks,
Bob 
Kamen Bundev
Telerik team
 answered on 19 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?