Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 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
176 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
106 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
170 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
1 answer
67 views
I have a skinned radgrid.

There is something strange because on one page, the grid does not display alternate rows (they are blacked out so can only be seen when highlighting over).

See these pages:

www.theplaygrounds.co.uk > click "Dev Setup" - intended result

www.theplaygrounds.co.uk > click "Xtras" - alternate rows blacked out.

I am assuming this is a client side issue. You can view source etc using web dev toolbar. I can't seem to track the cause of this bug?



Thanks
Dimo
Telerik team
 answered on 21 Jul 2009
2 answers
188 views
Hi,

I have a hierarchical treeview.
In one of the detail tables I set ShowHeadersWhenNoRecords to false.
But I still get the headers shown as long as I have a "NoRecordsTemplate".

When I remove this template and set "NoDetailRecordsText" to some value it works - no headers, the text is shown...
BUT then I have no Commands available so I'm not able to insert a new record.

The idea - when I have no records I want to display something like "Sorry no XXX available - you can create one..".
In simple words - I want to display the caption (including commands) and the information text.
The reason - I have a lot of detail tables (at the same level) and most of them are usually empty.
So it would save a lot of space if I could avoid displaying the columns header with the filters.

My hope was that ShowHeaders... could do this job -- but it does not.
If I use it as it is -- I have no chance to add a new record.
If I use a template (which would enable me to add an "Insert button") the headers are always shown.

Did I miss something - or is this "by design"?

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 21 Jul 2009
2 answers
149 views
Hi,

I'm a bit confused about the "ItemTemplate" thing.
From my point of view a template is some thing which tells how to display something.
So in the case of a Dropdown I have 2 Things - a value and a Text.

How do I "bind" (or assign) those values to my template?
Assume a dropdown with items where the value is an address (URL or such a thing) and the text is some kind of "what to show".
My template should now display a hyperling - with "Text" as display and "Value" as href.

How to write such a template - if the combobox is NOT databound which means that I can'r retrieve the values from the bound data.
Instead I want to "extract" them from the item list.

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 21 Jul 2009
1 answer
523 views
Hi
 I have customized the style sheet for the datepicker. When I open the calendar and I set the page zoom level not other than 100% and move my cursor over the dates in the calendar , i gives a weird color kind of thing. This does not happen when the page zoom is excat 100%. let me knwo how this can be solved .

I m pasting part of the style sheet

table.RadCalendar_Web20new
{
border-collapse:separate;
border: #6788be;
background:#fff;
/*font:12px "segoe ui",arial,sans-serif;*/
font:normal 12px Arial, Verdana, Sans-serif;
width:152.5px;
background: white url(Calendar/calendarBg.gif) repeat-x;
text-align:center;
overflow:hidden;
line-height:16px;
}

/*titlebar*/

.RadCalendar_Web20new .rcTitlebar
{
width:100%;
border:1px solid #6788be;
padding:0;
color:#fff;
background: #e7f1ff url(Calendar/calendarBg.gif) repeat-x;
}

.RadCalendar_Web20new .rcTitlebar table
{
width:100%;
border-collapse:separate;
border:0;
font:normal 12px Arial, Verdana, Sans-serif;
color:White;
}

.RadCalendar_Web20new .rcTitlebar td
{
border:0;
padding:0 0 2px;
text-align:center;
vertical-align:middle;
}

.RadCalendar_Web20new .rcTitlebar .rcTitle
{
width:100%;
cursor:pointer;
}

.RadCalendar_Web20new .rcTitlebar .rcPrev,
.RadCalendar_Web20new .rcTitlebar .rcNext,
.RadCalendar_Web20new .rcTitlebar .rcFastPrev,
.RadCalendar_Web20new .rcTitlebar .rcFastNext
{
display:block;
/*width:22px;*/
width:16px;
height:20px;
overflow:hidden;
margin:2px 0 0;
background: #e7f1ff url(Calendar/calendarBg.gif) repeat-x;
text-indent:-2222px;
text-decoration:none;
color:#ccc;
}

.RadCalendar_Web20new .rcTitlebar .rcFastPrev
{
margin-left:2px;
background-position:0 -200px;
}

.RadCalendar_Web20new .rcTitlebar .rcFastPrev:hover
{
background-position:0 -250px;
}

.RadCalendar_Web20new .rcTitlebar .rcPrev
{
background-position:0 -300px;
}

.RadCalendar_Web20new .rcTitlebar .rcPrev:hover
{
background-position:0 -350px;
}

.RadCalendar_Web20new .rcTitlebar .rcNext
{
background-position:0 -400px;
}

.RadCalendar_Web20new .rcTitlebar .rcNext:hover
{
background-position:0 -450px;
}

.RadCalendar_Web20new .rcTitlebar .rcFastNext
{
margin-right:2px;
background-position:0 -500px;
}

.RadCalendar_Web20new .rcTitlebar .rcFastNext:hover
{
background-position:0 -550px;
}

.RadCalendar_Web20new .rcMain
{
width:100%;
border:1px solid #6788be;
border-top:0;
padding:0;
}

.RadCalendar_Web20new .rcMainTable
{
width:100%;
border-collapse:separate;
/* Ch */
border:1px solid;
color:#000;
font:normal 12px Arial, Verdana, Sans-serif;
}

/*header, footer*/

.RadCalendar_Web20new .rcHeader,
.RadCalendar_Web20new .rcFooter
{
border:1px solid #6788be;
border-top-color:white;
background:#e7f1ff;
border-top:0px;
padding:0;
}

.footertemplatecancel__Web20new
{
margin-right:13px;
margin-top:5px;
float:none;
}

.footertemplatetoday__Web20new
{
margin-top:5px;
float:none;
}


/*week numbers and days*/

.RadCalendar_Web20new tr.rcRow 
{
width:16px;
line-height:16px;
}
.RadCalendar_Web20new .rcRow th,
.RadCalendar_Web20new .rcWeek th
{
border:1px,solid ;
background:#ecf4ff;
font-weight:bold;
vertical-align:middle;
cursor:default;
}

.RadCalendar_Web20new .rcWeek th
{
border-bottom:1px solid #bcd2f1;
padding:2px 6px 3px 0;
text-align:center;
width:16px;
line-height:16px;
}

.RadCalendar_Web20new .rcWeek .rcViewSel,
.RadCalendar_Web20new .rcRow th
{
/*width:13px;*/
width:16px;
/*border-right:1px solid #bcd2f1;*/
/* border-right:0px solid #bcd2f1;*/
/*padding:0 7px 0 9px;*/
text-align:center;
}

.RadCalendar_Web20new .rcWeek .rcViewSel
{
border-right-color:#ecf4ff;
}

/*date cells*/

.RadCalendar_Web20new .rcRow td
{
border:1px solid #fff;
padding:0px;
margin:0px;
text-align:center;
vertical-align:middle;
width:16px;
height:16px;
}

.RadCalendar_Web20new .rcMain .rcRow a,

.RadCalendar_Web20new .rcMain .rcRow span
{
display:block;
/*padding:1px 5px 1px 0;*/
padding:0px;
text-decoration:none;
color:#000;
}

.RadCalendar_Web20new .rcMain .rcWeekend 
{
/*color:#444;*/ 
width:16px;
line-height:16px;
}


.RadCalendar_Web20new .rcMain .rcOtherMonth a
{
color:#777;
}

.RadCalendar_Web20new .rcMain .rcOutOfRange span
{
color:#777;
cursor:default;
}

.RadCalendar_Web20new .rcRow .rcHover ,
.RadCalendar_Web20new .rcRow .rcHover a
{
/*color:#0e3d4f;*/
background: transparent url(Calendar/HoverBg.gif) no-repeat;
padding:0px;
margin:0px;
width:16px;
line-height:16px;

}

.RadCalendar_Web20new .rcRow .rcToday ,
.RadCalendar_Web20new .rcRow .rcToday a
{
/*border-color:#dde1e4;*/
background: transparent url(Calendar/TodayBg.gif) no-repeat;
padding:0px;
margin:0px;
width:16px;
line-height:16px;
}


.RadCalendar_Web20new .rcRow .rcSelected ,
.RadCalendar_Web20new .rcRow .rcSelected a
{
color:#0d202b;
background: transparent url(Calendar/selectBg.gif) no-repeat;
padding:0px;
margin:0px;
width:16px;
line-height:16px;
}

/*multimonth view*/

table.RadCalendarMultiView_Web20new
{
width:auto;
}

.RadCalendarMultiView_Web20new .rcTitlebar
{
border-color:#243567;
/*background:#3b548c 0 -1200px repeat-x url('Calendar/sprite.gif');*/
background: #e7f1ff url(Calendar/calendarBg.gif) repeat-x;
}

.RadCalendarMultiView_Web20new .rcTitlebar table
{
/*line-height:28px;*/
line-height:16px;
}

.RadCalendarMultiView_Web20new .rcTitlebar .rcFastPrev:hover
{
background-position:0 -650px;
}

.RadCalendarMultiView_Web20new .rcTitlebar .rcPrev:hover
{
background-position:0 -750px;
}

.RadCalendarMultiView_Web20new .rcTitlebar .rcNext:hover
{
background-position:0 -850px;
}

.RadCalendarMultiView_Web20new .rcTitlebar .rcFastNext:hover
{
background-position:0 -950px;
}

.RadCalendarMultiView_Web20new .rcMain
{
border-color:#6788be;
}

.RadCalendarMultiView_Web20new .rcCalendar
{
width:160px;
border:1px solid #6788be;
padding:0;
}

.RadCalendarMultiView_Web20new .rcMainTable .rcTitle
{
border:0;
border-bottom:1px solid #6788be;
padding:0 0 2px;
/*background:#93b4df 0 -1000px repeat-x url('Calendar/sprite.gif');*/
background: #e7f1ff url(Calendar/calendarBg.gif) repeat-x;
color:#fff;
text-align:center;
/*line-height:22px;*/
line-height:16px;
}

/*month view*/

table.RadCalendarMonthView_Web20new
{
border-collapse: collapse ;
border:1px solid #6788be;
background:#fff;
font:normal 10px Arial, Verdana, Sans-serif;
color:#333;
overflow:hidden;
}

table.RadCalendarMonthView_Web20new td 
{
border:0px;
padding:0px;
text-align: center;
vertical-align: middle;
border: 1px solid #d8dde0;
cursor: pointer;
padding: 4px;
font: bold 10px Arial, Verdana, Sans-Serif;
color: black;
}

.RadCalendarMonthView_Web20new #rcMView_Feb,
.RadCalendarMonthView_Web20new #rcMView_Apr,
.RadCalendarMonthView_Web20new #rcMView_Jun,
.RadCalendarMonthView_Web20new #rcMView_Aug,
.RadCalendarMonthView_Web20new #rcMView_Oct,
.RadCalendarMonthView_Web20new #rcMView_Dec
{
border-right:1px solid #6788be;
}

.RadCalendarMonthView_Web20new a
{
/*padding:2px 4px;*/
padding:0px;
text-align:center;
text-decoration:none;
color:#333;
overflow:hidden;
}

.RadCalendarMonthView_Web20new .rcSelected 
{
border:1px solid #d8dde0;
color:#0d202b;
background: #a8c1e0;
color: black;
}

.RadCalendarMonthView_Web20new #rcMView_PrevY a,
.RadCalendarMonthView_Web20new #rcMView_NextY a
{
background : transparent url(Calendar/ContextMenuInputBg.gif) repeat-x;
display:block;
width:16px;
height:16px;
margin:0 auto;
text-align:center;
visibility:visible;
}

.RadCalendarMonthView_Web20new #rcMView_PrevY a
{
background-position:3px -2100px;
}

.RadCalendarMonthView_Web20new #rcMView_NextY a
{
background-position:5px -2200px;
}

.RadCalendarMonthView_Web20new .rcButtons
{
padding:5px 7px 3px;
text-align:center;
}

.RadCalendarMonthView_Web20new input
{
border:1px solid;
border-color:#0f1d48 #08122e #010615;
/*background:#607fc5 0 -2300px repeat-x url('Calendar/sprite.gif');*/
background: #e7f1ff url(Calendar/calendarBg.gif) repeat-x;
color:#fff;
/*font:12px "segoe ui",arial,sans-serif;*/
font:normal 11px Arial, Verdana, Sans-serif;
cursor:pointer;
padding: 0px 2px;
}

/* .RadCalendarMonthView_Web20new input:hover
{
border-color:#3f5f94;
background-color:#c1d5ef;
background-position:0 -2350px;
color:#0f3789;
} */

.RadCalendarMonthView_Web20new #rcMView_Today
{
margin:0 0 0 0;
padding:0px;
border-color:#6788be;
}

.RadCalendarMonthView_Web20new #rcMView_OK
{
/*padding:0 0.2em;*/
padding:0px;
border-color:#6788be;
}

.RadCalendarMonthView_Web20new #rcMView_OK a
{
/*padding:0 0.2em;*/
padding:0px;
border-color:#6788be;
}

.RadCalendarMonthView_Web20new #rcMView_Cancel 
{
padding:0px;
border-color:#6788be;
 
}



/*time view*/

table.RadCalendarTimeView_Web20new
{
border-collapse:separate;
border:1px solid #6788be;
background:#fff;
/*font:12px "segoe ui",arial,sans-serif;*/
font:normal 12px Arial, Verdana, Sans-serif;
}

.RadCalendarTimeView_Web20new th
{
border:0;
border-bottom:1px solid #6788be;
padding:0 0 2px;
/*background:#93b4df 0 -1000px repeat-x url('Calendar/sprite.gif');*/
background: #e7f1ff url(Calendar/calendarBg.gif) repeat-x;
color:#fff;
text-align:center;
/*line-height:22px;*/
line-height:16px;
cursor:default;
font-weight:normal;
}

table.RadCalendarTimeView_Web20new td
{
border:0;
border-left:1px solid #6788be;
padding:2px 2px 3px;
}
Thank you

John
Dimo
Telerik team
 answered on 21 Jul 2009
6 answers
455 views
Hi there,

               Do anybody know how to call the OnItemClick event of RadPanelBar during the OnClientClick of the same. i.e., Calling the server side method using OnClientClick of RadPanelBar
Computer Surgeon
Top achievements
Rank 1
 answered on 21 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?