
<
script type="text/javascript">
function
myOnClientFileSelect(radUpload, eventArgs)
{
var img = document.getElementById('<%= Image1.ClientID %>');
img.src=eventArgs.FileInputField.value;}
</
script>
<
asp:Image ID="Image1" runat="server" Height="112px" Style="z-index: 103; left: 472px;
position: absolute; top: 208px"
Width="136px" />
<
telerik:RadUpload ID="RadUpload1" runat="server" Style="z-index: 100; left: 112px;
position: absolute; top: 136px"
OnClientFileSelected="myOnClientFileSelect" AllowedFileExtensions=".bmp,.jpeg,.jpg,.gif" ControlObjectsVisibility="All" InitialFileInputsCount="2" MaxFileInputsCount="1000" MaxFileSize="100000000" TargetFolder="~/File" OnFileExists="RadUpload1_FileExists" />
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" Style="z-index: 101;
left: 120px; position: absolute; top: 232px">
</telerik:RadProgressArea>
<telerik:RadProgressManager ID="RadProgressManager1" runat="server" Style="z-index: 102;
left: 104px; position: absolute; top: 184px"
/>
Thank you



notification.update();
notification.show();
when I want to show the Notification.
I want to clear the Notificaiton content each time the user clicks on the Notification Close button.
I've had a hard time getting it to clear on both the client and the server without side effects. I have it sort of working now, but the notification flashes on loading the page.
I'm sure there is a simple, clean way to do this, but I haven't been able to figure it out -- after spending a lot of time and searching both the Telerik website and using Google.
Thanks,
Donald
function Chart_Line_Count_SeriesClicked(sender,args)
{
if (args.get_seriesName() != "DaysL") $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(args.get_category());
}
Then through the RadAjaxManager1 configuration I associated the RadAjaxManager1 with the Chart_Line_Count Object.
Then in the code behind file:
Protected Sub RadAjaxManager1_AjaxRequest(sender As Object, e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
'test to clear datasource and blank out the chart
Chart_Line_Count.DataSource = ""
Chart_Line_Count.DataSourceID = ""
End Sub
But it doesn't work. Can anyone tell me why? I see the AJAX circular spinning refresh thing fire, but nothing happens. Please let me know if you need any more information.
I have a situation that I wonder if anyone can suggest or point me to a solution that solves my problem.
I want to display the radcombobox so the user can select a date, which will return a set of records from a database.
The problem is that the grid does have any datasource until then and therefore does not display.
The combobox is in a commanditem template and does not display. Would it be better to load the grid with dummy records(all zeros and nulls) or is there a better solution.
I just need to display the radcombobox. Any suggestions will be appreciated. The HTML is below.
<telerik:RadGrid ID="TimesheetGrid" runat="server" AutoGenerateColumns="false" EnableLinqExpressions="false" GridLines="None"> <MasterTableView CommandItemDisplay="Top" AllowPaging="false" PageSize="15"> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> <CommandItemTemplate> <table> <tr> <td style="width:10%"> <telerik:RadComboBox ID="cboPayPeriod" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cboPayPeriod_SelectedIndexChanged"></telerik:RadComboBox> </td> <td style="width:40%"> <asp:LinkButton ID="cmdInsert" runat="server" CommandName="InitInsert" Font-Underline="True" ForeColor="White">Insert New Timesheets Record</asp:LinkButton> </td> <td style="width:30%"> <asp:LinkButton ID="cmdUpdateAll" runat="server" CommandName="UpdateEdited" Font-Underline="True" ForeColor="White">Update Timesheet</asp:LinkButton> </td> </tr> </table> </CommandItemTemplate> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn> <Columns> <telerik:GridDateTimeColumn DataField="WorkDate" HeaderText="Work Date" UniqueName="WorkDate" DataFormatString="{0:MM/dd/yy}" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" AllowFiltering="false"> </telerik:GridDateTimeColumn> <telerik:GridBoundColumn DataField="Shift" HeaderText="Shift" ItemStyle-Width="25px" HeaderStyle-Width="25px" AllowFiltering="False"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Reg" HeaderText="Reg" ItemStyle-Width="35px" AllowSorting="True" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ShftHrs" HeaderText="Shift Hrs" ItemStyle-Width="35px" AllowSorting="True" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="OT" HeaderText="OT" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Vac36" HeaderText="Vac 36 Hrs" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Vac40" HeaderText="Vac 40 Hrs" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Vac48" HeaderText="Vac 48 Hrs" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Sick36" HeaderText="Sick 36 Hrs" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Sick40" HeaderText="Sick 40 Hrs" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Sick48" HeaderText="Sick 48 Hrs" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Exc_Absence" HeaderText="Exc Abs Hrs" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Holiday_Worked" HeaderText="Holiday Worked" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Holiday_Not_Worked" HeaderText="Holiday Not Worked" ItemStyle-Width="35px" AllowFiltering="False" DataFormatString="{0:##.0}"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Comments" HeaderText="Comment" ItemStyle-Width="135px" AllowFiltering="False"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Additional_Comment" HeaderText="Additional Comment" ItemStyle-Width="135px" AllowFiltering="False"></telerik:GridBoundColumn> <telerik:GridTemplateColumn DataField="Five" HeaderText="5%" AllowFiltering="false"> <ItemTemplate> <asp:CheckBox ID="chkFive" runat="server" Checked='<%#Bind("Five")%>' /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="Ten" HeaderText="10%" AllowFiltering="false"> <ItemTemplate> <asp:CheckBox ID="chkTen" runat="server" Checked='<%#Bind("Ten")%>' /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid><telerik:RadCodeBlock runat="server" ID="MainScriptBlock"> <script type="text/javascript"> window.$ = $telerik.$; jQuery.event.add(window, "load", resize); jQuery.event.add(window, "resize", resize); function resize() { var h = $(window).height(); $(".resizeGrid").css({ 'height': (h - 60) }); } </script> </telerik:RadCodeBlock>