Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
131 views
Hello,
I'm having a formating issue displaying my hierarchal grid in while my Grid is in insert mode.
When i switch my grid to insert mode i hide the ExpandColun.
protected void _orgGrid_ItemCreated(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
            { 
                if (editItem.OwnerTableView.IsItemInserted) 
                {     
                     _orgGrid.MasterTableView.GetColumn("ExpandColumn").Display = false;  
                } 
            } 
However, this causes my insert template (a user control) to be rendered in the second column of my grid and the first column has a large empty space.
Is there something i can do to force my user control to span across all columns?

The main goal i'm trying to achieve is to disable expanding of rows while the user is inserting an item.
Thanks.
COLIN
Top achievements
Rank 1
 answered on 21 Jul 2009
2 answers
225 views
Hi,

I use a binary image column in one of my grids.  Not every row will have an image - some will come as NULL from the database.  For those rows how do I stop the component trying to display the image?  I've looked through the fields for the column and can't see anything obvious so assume that I'll need to do something on the ItemDataBound event.  Has anyone encountered this yet and if so could you let me know how you resolved it?

What would be good is to be able to specify either an alternate image to display when there is no thumbnail or some text to display when no image.  Could that be built into a future version please?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 21 Jul 2009
1 answer
159 views
I am trying to create a dashboard using the RadDockZone and dynamic RadDocks as per your example (http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx).

However, you can update the RadDocks in session (I will later add this to a DB) and can control adding/moving and expand/collapse, but you cannot remove from session individual items.  I am trying to catch the "Close" command so that I can remove an individual item only from session, in the example it only shows how to clear all items from session.  The problem that I have is that the "Close" command does not seem to fire a PostBack unlike the move/expand/collapse, is there a way for me to achieve this?
Pero
Telerik team
 answered on 21 Jul 2009
1 answer
76 views
I'm building a tech demo with 2 radcombos on one page.

Combo1 filters Combo2's items.

The callback seems fine on PC but on my WindowsMobile 6.0 and 6.5 emulators a postback is fired.

Has anybody done his before?
Paul
Telerik team
 answered on 21 Jul 2009
1 answer
553 views
Hi
 I have a  RadTextbox on the page.
now on page load i want to set the value of the radtextbox to the Client dateteim.
i have used the following code


window.onload = function fillText()
{
var txtDate=document.getelementbyid("txtDate");
txtDate.Value="Date from javascript";
}


but this code is not working please help me
Dimo
Telerik team
 answered on 21 Jul 2009
1 answer
80 views
Hi,
     I had create  one rad editable grid . i want to allign the popup in right. Is it possible in rad edit grid.

regards,
Bala.K
Shinu
Top achievements
Rank 2
 answered on 21 Jul 2009
3 answers
190 views
Hello,

I am trying to open a RadWindow on a flash for which I have not the source.
I try this :

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index:90000" 
                EnableEmbeddedSkins="False"  VisibleOnPageLoad=false VisibleStatusbar="false" Skin="Officin" Behaviors="Close">  
                <Windows> 
                          
                        <telerik:RadWindow        
                            OpenerElementID="<%# lnkFlash.ClientID %>"               
                            NavigateUrl="Inscription1.aspx" 
                            Runat="server"   
                            Width="478px"          
                            Height="440px" 
                            Modal=true 
                            Id="RdWinInscription2" EnableEmbeddedSkins="false" style="z-index:90000" Skin="Inscription"  > 
                        </telerik:RadWindow> 
 
</windows></telerik:RadWindowManager> 

with

<asp:LinkButton ID="lnkFlash" runat="server"><OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="305" width="641" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT> 
                            <PARAM NAME="Movie" VALUE="images/animation_Prehome.swf">  
                            <PARAM NAME="Src" VALUE="images/animation_Prehome.swf">  
                            <PARAM NAME="WMode" VALUE="transparent">  
                            <PARAM NAME="Play" VALUE="false">  
                            <PARAM NAME="Loop" VALUE="true">  
                            <PARAM NAME="Quality" VALUE="High">  
                            <embed src="images/animation_Prehome.swf" wmode="transparent" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
                                type="application/x-shockwave-flash" height="305" width="641"> </embed> 
                        </OBJECT></asp:LinkButton> 

but it is not working...

Do you have any idea to help me?

Thank you!


Martin
Telerik team
 answered on 21 Jul 2009
1 answer
113 views
I had this grid working fine at one point, but owing to some changes in design requirements I ended up scrapping a custom template edit form and just setting it to auto-generate the edit form instead.  Inserts still work fine, and everything with the child grid works fine, but for some reason I can't figure out clicking on the MasterGridView's edit button doesn't raise the edit form.  Sorry if this is a lot of code but I'm really not certain what is or isn't relevant at this point.

<telerik:RadGrid ID="grdUser" runat="server" DataSourceID="dsUserGrid" AllowPaging="false" AllowSorting="true" Skin="Default" AutoGenerateEditColumn="false"  
            AutoGenerateColumns="false" Width="750px" EnableLinqExpressions="false" AllowAutomaticUpdates="true" AllowAutomaticInserts="true"  
            AllowAutomaticDeletes="true" OnColumnCreated="grdUser_ColumnCreated" > 
                <MasterTableView EditMode="PopUp" EditFormSettings-EditFormType="AutoGenerated" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add New User" Width="750px" AutoGenerateColumns="false" DataKeyNames="UserKey"> 
                    <DetailTables> 
                        <telerik:GridTableView runat="server" DataSourceID="dsFacilityUser" EditMode="EditForms" HorizontalAlign="Right" InsertItemDisplay="Bottom"  
                        CommandItemDisplay="Bottom" CommandItemSettings-AddNewRecordText="Add Location" ShowHeader="false" AllowAutomaticInserts="true" AllowAutomaticDeletes="true"  
                        DataKeyNames="FacilityUserKey" Width='240px'> 
                            <ParentTableRelation> 
                                <telerik:GridRelationFields DetailKeyField="UserKey" MasterKeyField="UserKey" /> 
                            </ParentTableRelation> 
                            <Columns> 
                                <telerik:GridBoundColumn DataField="UserKey" Display="false" ReadOnly="true" /> 
                                <telerik:GridBoundColumn DataField="FacilityUserKey" Display="false" ReadOnly="true" /> 
                                <telerik:GridDropDownColumn DataField="FacilityKey" ListTextField="FacilityName" ListValueField="FacilityKey" DataSourceID="dsFacility" UniqueName="colFacility" /> 
                                <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Delete" Text="Remove" /> 
                            </Columns> 
                        </telerik:GridTableView> 
                    </DetailTables> 
                    <CommandItemSettings AddNewRecordText="Add New User" /> 
                    <Columns> 
                        <telerik:GridEditCommandColumn ButtonType="LinkButton" /> 
                        <telerik:GridBoundColumn HeaderText="UserName" DataField="UserName" UniqueName="colUserName" Display="false"/> 
                        <telerik:GridBoundColumn HeaderText="UserKey" DataField="UserKey" UniqueName="colUserKey" Display="false" ReadOnly="true" /> 
                        <telerik:GridBoundColumn HeaderText="Last Name" DataField="LastName" UniqueName="colLastName" Display="true" /> 
                        <telerik:GridBoundColumn HeaderText="First Name" DataField="FirstName" UniqueName="colFirstName" Display="true"/> 
                        <telerik:GridDropDownColumn HeaderText="Role" DataField="RoleKey" UniqueName="colRole" ListTextField="Role" ListValueField="RoleKey" DataSourceID="dsRole" /> 
                        <telerik:GridBoundColumn HeaderText="Phone" DataField="Phone" UniqueName="colPhone" MaxLength="12" /> 
                        <telerik:GridBoundColumn HeaderText="Email" DataField="Email" UniqueName="colEmail" ConvertEmptyStringToNull="true" Display='false' /> 
                        <telerik:GridBoundColumn HeaderText="Home District" DataField="DistrictName" UniqueName="colDistrictName" ReadOnly="true" /> 
                        <telerik:GridBoundColumn HeaderText="Home Location" DataField="FacilityName" UniqueName="colFacilityName" ReadOnly="true"/> 
                        <telerik:GridCheckBoxColumn HeaderText="User Editor" DataType="System.Boolean" DataField="UserEditor" UniqueName="colUserEditor" Display="false"/> 
                        <telerik:GridCheckBoxColumn HeaderText="VVL Editor" DataType="System.Boolean" DataField="VVLEditor" UniqueName="colVVLEditor" Display="false"/> 
                        <telerik:GridCheckBoxColumn HeaderText="Writer" DataType="System.Boolean" DataField="Writer" UniqueName="colWriter" Display="false"/> 
                        <telerik:GridCheckBoxColumn HeaderText="Reader" DataType="System.Boolean" DataField="Reader" UniqueName="colReader" Display="false"/> 
                        <telerik:GridCheckBoxColumn HeaderText="Task Manager" DataType="System.Boolean" DataField="TaskManager" UniqueName="colTaskEdit" Display="false"/> 
                        <telerik:GridCheckBoxColumn HeaderText="Receives Emails" DataType="System.Boolean" DataField="EmailActive" UniqueName="colEmail" Display="false"/> 
                        <telerik:GridCheckBoxColumn HeaderText="Active User" DataType="System.Boolean" DataField="Active" UniqueName="colActive" Display="false"/> 
                        <telerik:GridExpandColumn UniqueName="colExpand" ButtonType="ImageButton" CollapseImageUrl="../images/grid-collapse.png" ExpandImageUrl="../images/grid-expand.png" /> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 

I should note that I have also tried setting AutoGenerateEditColumn=true with the same result.
Martin
Telerik team
 answered on 21 Jul 2009
8 answers
183 views

I am currently launching a window (named "rwAttachmentsMaster" in the example below) from within a window (named "rwRequestMasterpage" in the example below), and trying to get it to update the first window when the second window is closed, without much luck.

I have both windows declared in a window manager, which is in my masterpage, and am using the following code -

function LaunchAttachments() {  
        var parent = GetRadWindow().BrowserWindow;  
        var attach = parent.radopen("Attachments.aspx", "rwAttachmentsMaster");  
        setTimeout(function() { attach.setActive(true); }, 100);  
        attach.add_close(function() { UpdateAttachmentCount(); });  
    }  
 
    function UpdateAttachmentCount() {  
        var requestWindow = GetRadWindowManager().BrowserWindow.getWindowById("rwRequestMasterpage");  
        requestWindow.get_contentFrame().contentWindow.UpdateAttachmentCountStep2();  
    }  
 
    function UpdateAttachmentCountStep2() {  
        var label = document.getElementById("<%= lblNumAttachments.ClientID %>");  
        label.value = "x";  
    } 

All of that code is currently sitting in the page you get when you open the first window. I'm not entirely sure if that is where it is all meant to go or not.
Georgi Tunev
Telerik team
 answered on 21 Jul 2009
1 answer
72 views
DatePicker works in development,but after moving to production server, red cross and the tool tip:"open calendar"  is displayed instead of calender icon. What can be the reason for that?
Dimo
Telerik team
 answered on 21 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?