Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Hi,

I have used FileSystemContentProvider to implement custom logic for image uploading and it works fine. The problem is if there is an error I want to be able to notify user. Is there a good way of doing this?

Thanks.
Sajid
Top achievements
Rank 1
 answered on 26 Jul 2010
4 answers
307 views
Hi everyone..

i have textbox in radgrid pop up edit form which is textboxmode = password ...
i want to encode text  in there when press insert button .. i have password encoder dll
like that
passencode_.EncodePassword(tb_passWord.Text)

but i use automatic insert/update/delete operations...
how i add this encode method when insert button clicked in popup edit form ??

my code like this
                        <telerik:GridDropDownColumn DataField="fk_title_id" HeaderText="title" DataSourceID="SqlDataSourceTitle"
                            ListTextField="title" ListValueField="id" ColumnEditorID="ce_fk_title_id" UniqueName="fk_title_id"
                            Visible="false">
                        </telerik:GridDropDownColumn>
                        <telerik:GridBoundColumn DataField="username" UniqueName="username" HeaderText="UserName"
                            SortExpression="username" ColumnEditorID="ce_username">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="password" UniqueName="password"   HeaderText="PassWord"
                            Visible="false" ColumnEditorID="ce_password">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="name" UniqueName="name" Visible="false" HeaderText="Name"
                            ColumnEditorID="ce_name">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="surename" UniqueName="surename" Visible="false"
                            HeaderText="SureName" ColumnEditorID="ce_surename">
                        </telerik:GridBoundColumn>                      
                        <telerik:GridDropDownColumn DataField="sex" HeaderText="Sex" DataSourceID="SqlDataSourceSex"
                            ListTextField="sex" ListValueField="id" ColumnEditorID="ce_sex" UniqueName="sex"
                            Visible="false">
                        </telerik:GridDropDownColumn>
                        <telerik:GridMaskedColumn DataField="mobile_phone1" UniqueName="mobile_phone1" Visible="false"
                              HeaderText="Mobile Phone1" ColumnEditorID="ce_mobile_phone1" mask="### ### ## ##" />
                    <telerik:GridMaskedColumn DataField="mobile_phone2" UniqueName="mobile_phone2" Visible="false"
                              HeaderText="Mobile Phone" ColumnEditorID="ce_mobile_phone2" mask="### ### ## ##" />
                     <telerik:GridMaskedColumn DataField="phone" UniqueName="phone" Visible="false"
                              HeaderText="Telefon" ColumnEditorID="ce_phone" mask="### ### ## ##+###" />
                
                         <telerik:GridMaskedColumn DataField="fax" UniqueName="fax" Visible="false"
                              HeaderText="Fax" ColumnEditorID="ce_fax" mask="### ### ## ##" />
                        
                        <telerik:GridBoundColumn DataField="email" UniqueName="email" Visible="false" ColumnEditorID="ce_email"
                            HeaderText="E-Mail">
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn ConfirmText="Delete?" ConfirmDialogType="RadWindow"
                            ConfirmTitle="Delete" ButtonType="ImageButton" ImageUrl="img/app/delete16.png"
                            CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <SortingSettings SortToolTip="Sırala" />
                <ValidationSettings EnableValidation="False" />
                <ClientSettings EnableRowHoverStyle="true">
                    <ClientEvents OnRowDblClick="RowDblClick" />
                    <ClientEvents OnPopUpShowing="PopUpShowing" />
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
            </telerik:RadGrid>
            <telerik:GridDropDownListColumnEditor ID="ce_fk_title_id" runat="server" DropDownStyle-Width="110px" />
            <telerik:GridTextBoxColumnEditor ID="ce_username" runat="server" TextBoxStyle-Width="150px" />
            <telerik:GridTextBoxColumnEditor ID="ce_password" runat="server" TextBoxStyle-Width="150px" TextBoxMode="Password"  />
            <telerik:GridTextBoxColumnEditor ID="ce_name" runat="server" TextBoxStyle-Width="150px" />
            <telerik:GridDropDownListColumnEditor ID="ce_sex" runat="server" DropDownStyle-Width="110px" />
            <telerik:GridTextBoxColumnEditor ID="ce_surename" runat="server" TextBoxStyle-Width="150px" />
            <telerik:GridMaskedColumnEditor ID="ce_mobile_phone1" runat="server" MaskedTextBox-Width="150px"  />
            <telerik:GridMaskedColumnEditor ID="ce_mobile_phone2" runat="server" MaskedTextBox-Width="150px"  />
            <telerik:GridMaskedColumnEditor ID="ce_phone" runat="server" MaskedTextBox-Width="150px"  />            
            <telerik:GridMaskedColumnEditor ID="ce_fax" runat="server" MaskedTextBox-Width="150px"  />
            <telerik:GridTextBoxColumnEditor ID="ce_email" runat="server" TextBoxStyle-Width="150px" />
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server"  />
        </fieldset>
    </div>
    <div class="properties_container">
        <fieldset>
            <legend>
                <img alt="Kullanıcı Ayarları" src="img/user_management/properties32.png" />Özellikler</legend>
        </fieldset>
    </div>
</div>
<asp:SqlDataSource ID="SqlDataSourceCompany" runat="server" ConnectionString="<%$ ConnectionStrings:connectionString %>"
    ProviderName="System.Data.SqlClient" SelectCommand="sp_select_company_cmb" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceUsers" runat="server" ConnectionString="<%$ ConnectionStrings:connectionString %>"
    ProviderName="System.Data.SqlClient" SelectCommandType="StoredProcedure" SelectCommand="sp_select_user"
    InsertCommandType="StoredProcedure" InsertCommand="sp_create_user" DeleteCommandType="StoredProcedure"
    DeleteCommand="sp_delete_user" UpdateCommand="sp_update_user" UpdateCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter Name="CompanyID" PropertyName="SelectedValue" ControlID="cmb_Company" />
    </SelectParameters>
    <DeleteParameters>
        <asp:Parameter Name="id" Type="Int64" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="username" Type="String" />
        <asp:Parameter Name="password" Type="String" />
        <asp:Parameter Name="name" Type="String" />
        <asp:Parameter Name="surename" Type="String" />
        <asp:Parameter Name="sex" Type="String" />
        <asp:Parameter Name="mobile_phone1" Type="String" />
        <asp:Parameter Name="mobile_phone2" Type="String" />
        <asp:Parameter Name="phone" Type="String" />
        <asp:Parameter Name="fax" Type="String" />
        <asp:Parameter Name="email" Type="String" />
        <asp:ControlParameter Name="fk_company_id" PropertyName="SelectedValue" ControlID="cmb_Company" />
        <asp:Parameter Name="fk_title_id" Type="Int32" />
    </InsertParameters>

kerim
Top achievements
Rank 1
 answered on 25 Jul 2010
1 answer
87 views
How does a user go about adding an image (via URL)?

The ImageManager just gives them local images
Rumen Jekov
Top achievements
Rank 1
 answered on 25 Jul 2010
2 answers
732 views
In the radgrid Itemtemplate how to use if else in the Preprocessor directives .Following code im using <%#eval("user-id)%> ,i need a check if user_id is null then #eval(secondcolumnid)  so i used
<ItemTemplate>
                                                    <a href="Userinfo.aspx?User_Id=<%if(#Eval("User_Id")!=null){#Eval("User_Id")} %>">edit</a> <%#Eval("Last_Name") %>,
                                                    <%#Eval("First_Name") %>
                                                </ItemTemplate>
If i use like this it throws me an error Preprocessor directives must appear as the first non-whitespace character on a line .
So what is the best way to solve this solution.
<telerik:RadGrid ID="Grd1" runat="server" AutoGenerateColumns="False" AllowPaging="True">
<MasterTableView DataKeyNames="userid" CellSpacing="1">
<Columns>
<telerik:GridClientSelectColumn ButtonType="PushButton" />
<telerik:GridTemplateColumn HeaderText="Manager">
<ItemTemplate>
<a href="userinfo.aspx?User_Id=<%#Eval("User_Id") %>">edit</a> <%#Eval("Last_Name") %>,<%#Eval("First_Name") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings Selecting-AllowRowSelect="true">
<Selecting AllowRowSelect="True" />
</ClientSettings>
</telerik:RadGrid>
win
Top achievements
Rank 1
 answered on 24 Jul 2010
4 answers
170 views
Hi.

I have a multi month calendar that displays two months, i.e. May-June. But I if I navigate to the next month it shows now July-August. I want it to show June-July. Is it possible?

current declaration is

<telerik:RadCalendar ID="RadCalendar1" runat="server" AutoPostBack="True" CssClass="centerCalendar"   
    MultiViewColumns="2" MultiViewRows="1" EnableMultiSelect="false"   
    EnableNavigationAnimation="True" ShowOtherMonthsDays="False"   
    ShowRowHeaders="False" UseColumnHeadersAsSelectors="False"   
    UseRowHeadersAsSelectors="False"   
    OnSelectionChanged="RadCalendar1_SelectionChanged">  
</telerik:RadCalendar> 

Thanks.
Jose
Levi
Top achievements
Rank 1
 answered on 24 Jul 2010
2 answers
145 views
Greetings,

I am having an issue displaying the tooltip correctly.  The first issue:
When it loads, it first is appearing in the bottom right corner, then disappearing and reappearing near the correct location.
Second:
The tooltip only ends up in the correct location every other time.  That is, I mouse over it, it appears as expected.  I leave the link and tool tip with my mouse till it disappears, then return to the link and it reappears in a different location.  I can repeat this any number of times and the result alternates between the correct and incorrect location.  See the attached screen shots to see what I am seeing.

Here is my code:
<telerik:RadToolTip runat="server" ID="ttViewAll" TargetControlID="lnkViewAll"
                         HideEvent="LeaveTargetAndToolTip" Position="TopLeft" RelativeTo="Element" ShowEvent="OnMouseOver"
                        HideDelay="400">
...
</telerik:RadToolTip>

What can I do to prevent both these issues from happening?  Thank you for your help!

- John

John M
Top achievements
Rank 1
 answered on 24 Jul 2010
3 answers
255 views
Hi,

I am new to telerik control. I am upgrading gridview to radgrid.

 I am getting error (see image 1.JPG) when i am using radgrid in asp:updatepanel control. am getting this error foreveryaction(like sorting, filtering, editing, row selecting, scrolling). Can anyone help me how to sove this.

I have a linkbutton column in radgrid. when i click the button i am getting error( see image 2.JPG). How to do it in radgrid. I just want to pull sId, orderId, and taskstatus when i clicked on a linkbutton. when i am trying to do this i am getting that error. Please help to solve this.

here is my code

<asp:UpdatePanel ID="rg200UpdatePanel" runat="server">
                        <ContentTemplate>
                            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                            </telerik:RadScriptManager>
                            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                                <ClientEvents OnRequestStart="onRequestStart" />
                                <AjaxSettings>
                                    <telerik:AjaxSetting AjaxControlID="rg200">
                                        <UpdatedControls>
                                            <telerik:AjaxUpdatedControl ControlID="rg200" LoadingPanelID="RadAjaxLoadingPanel1" />
                                            <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                                        </UpdatedControls>
                                    </telerik:AjaxSetting>
                                    <telerik:AjaxSetting AjaxControlID="RadMenu1">
                                        <UpdatedControls>
                                            <telerik:AjaxUpdatedControl ControlID="rg200" LoadingPanelID="RadAjaxLoadingPanel1" />
                                            <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                                        </UpdatedControls>
                                    </telerik:AjaxSetting>
                                </AjaxSettings>
                            </telerik:RadAjaxManager>
                            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
                            </telerik:RadAjaxLoadingPanel>
                            <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" />
                            <telerik:RadGrid ID="rg200" runat="server" AutoGenerateColumns="False" PageSize="30"
                                Height="550px" Width="100%" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True"
                                EnableHeaderContextMenu="True" GridLines="None" EnableHeaderContextFilterMenu="True"
                                AllowMultiRowEdit="true" AllowFilteringByColumn="True" OnPreRender="rg200_PreRender"
                                OnItemCreated="rg200_ItemCreated" EnableViewState="true" OnUpdateCommand="rg200_UpdateCommand"
                                AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                                OnPageIndexChanged="rg200_PageIndexChanged" OnItemCommand="rg216_ItemCommand">
                                <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
                                    HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" />
                                <ExportSettings IgnorePaging="true" ExportOnlyData="true">
                                    <Pdf AllowModify="false" AllowPrinting="true" PageBottomMargin="" PageFooterMargin=""
                                        PageHeaderMargin="" PageHeight="11in" PageLeftMargin="" PageRightMargin="" PageTopMargin=""
                                        PageWidth="14in" />
                                </ExportSettings>
                                <MasterTableView GridLines="None" DataKeyNames="orderId" CommandItemDisplay="Top"
                                    EditMode="EditForms">
                                    <CommandItemTemplate>
                                        <div style="padding: 5px 5px;">
                                            <table>
                                                <tr class="customFont">
                                                    <td align="left">
                                                        <b>Bulk Actions</b>    
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="btnEditSelected" runat="server" OnClick="btnEditSelected_click"
                                                            Visible='<%# rg200.EditIndexes.Count == 0 %>'>Edit Selected</asp:LinkButton>
                                                            
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="btnUpdateEdited" runat="server" OnClick="btnUpdateEdited_click"
                                                            Visible='<%# rg200.EditIndexes.Count > 0 %>'>Update Editing</asp:LinkButton>
                                                            
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_click" Visible='<%# rg200.EditIndexes.Count > 0 || rg200.MasterTableView.IsItemInserted %>'>Cancel Editing</asp:LinkButton>
                                                            
                                                    </td>
                                                    <td align="right">
                                                        <img style="border: 0px; vertical-align: middle;" alt="" src="Images/AddRecord.gif" />
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !rg200.MasterTableView.IsItemInserted %>'>Add New Record</asp:LinkButton>
                                                            
                                                    </td>
                                                    <td align="right">
                                                        <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Delete.gif" />
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Records?')"
                                                            runat="server" CommandName="DeleteSelected">Delete Selected</asp:LinkButton>
                                                            
                                                    </td>
                                                    <td align="right">
                                                        <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Refresh.gif" />
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Rebind">Refresh</asp:LinkButton>
                                                                                 
                                                    </td>
                                                    <td align="left">
                                                        <asp:ImageButton ID="ExportToWordButton" runat="server" ImageUrl="~/images/ExportToWord.gif"
                                                            ToolTip="Export to Word" OnClick="ExportWord_Click" />
                                                           
                                                        <asp:ImageButton ID="ExportToExcelButton" runat="server" ImageUrl="~/images/ExportToExcel.gif"
                                                            ToolTip="Export to Excel" OnClick="ExportExcel_Click" />
                                                            
                                                        <asp:ImageButton ID="ExportToPdfButton" runat="server" ImageUrl="~/images/ExportToPdf.gif"
                                                            ToolTip="Export to Pdf" OnClick="ExportPdf_Click" />
                                                            
                                                        <asp:ImageButton ID="ExportToCsvButton" runat="server" ImageUrl="~/images/ExportToCsv.gif"
                                                            ToolTip="Export to Csv" OnClick="ExportCsv_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </CommandItemTemplate>
                                    <Columns>
                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="3%"
                                            ItemStyle-Width="3%">
                                            <HeaderStyle Width="3%"></HeaderStyle>
                                            <ItemStyle Width="3%"></ItemStyle>
                                        </telerik:GridClientSelectColumn>
                                        <telerik:GridBoundColumn UniqueName="sId" HeaderText="sId" DataField="sId" ReadOnly="true"
                                            Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="orderId" HeaderText="orderId" Visible="false"
                                            ReadOnly="true" DataField="orderId">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Customer Name" HeaderText="Customer Name" DataField="Customer Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Market Name" HeaderText="Market Name" DataField="Market Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="LOB" HeaderText="LOB" DataField="LOB" ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Headend Name" HeaderText="Headend Name" DataField="Headend Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Project Name" HeaderText="Project Name" DataField="Project Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn UniqueName="Site Name" HeaderText="Site Name" DataField="SiteName"
                                            ReadOnly="true">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkSiteName" runat="server" Text='<%# Eval( "Site Name" ) %>'
                                                    ForeColor="Blue" CommandName="sitename"></asp:LinkButton>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn UniqueName="Task Status" HeaderText="Task Status" DataField="Task Status"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Clarify Account Nbr" HeaderText="Clarify Account Nbr"
                                            DataField="Clarify Account Nbr">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Site ID" HeaderText="Site ID" DataField="Site ID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Quote ID" HeaderText="Quote ID" DataField="Quote ID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridCheckBoxColumn UniqueName="EDP Created?" HeaderText="EDP Created?" DataField="EDP Created?">
                                        </telerik:GridCheckBoxColumn>
                                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" Display="false">
                                        </telerik:GridEditCommandColumn>
                                    </Columns>
                                    <EditFormSettings EditFormType="Template">
                                        <FormTemplate>
                                            <table id="Table1" cellspacing="1" cellpadding="1">
                                                <tr>
                                                    <td>
                                                        <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop"
                                                            SelectedIndex="0" MultiPageID="RadMultiPage1">
                                                            <Tabs>
                                                                <telerik:RadTab Text="Task Data" PageViewID="RadPageView1">
                                                                </telerik:RadTab>
                                                                <telerik:RadTab Text="Notes" PageViewID="RadPageView2">
                                                                </telerik:RadTab>
                                                            </Tabs>
                                                        </telerik:RadTabStrip>
                                                        <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
                                                            <telerik:RadPageView runat="server" ID="RadPageView1">
                                                                <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">
                                                                    <tr>
                                                                        <td>
                                                                        </td>
                                                                        <td>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            Clarify Account Nbr:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval( "Clarify Account Nbr" ) %>'>
                                                                            </asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            Site ID:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval( "Site ID") %>' TabIndex="1">
                                                                            </asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            Quote ID:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval( "Quote ID") %>' TabIndex="2">
                                                                            </asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            EDP Created?:
                                                                        </td>
                                                                        <td>
                                                                            <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval( "EDP Created?") %>' TabIndex="3">
                                                                            </asp:CheckBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="right" colspan="2">
                                                                            <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                                runat="server" CommandName='Update'></asp:Button
                                                                            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                                CommandName="Cancel"></asp:Button>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </telerik:RadPageView>
                                                            <telerik:RadPageView runat="server" ID="RadPageView2">
                                                            </telerik:RadPageView>
                                                        </telerik:RadMultiPage>
                                                    </td>
                                                </tr>
                                            </table>
                                        </FormTemplate>
                                    </EditFormSettings>
                                </MasterTableView>
                                <ClientSettings EnableRowHoverStyle="true" ReorderColumnsOnClient="false" AllowDragToGroup="false"
                                    AllowColumnsReorder="True">
                                    <Scrolling AllowScroll="true" EnableVirtualScrollPaging="false" UseStaticHeaders="true" />
                                    <Selecting AllowRowSelect="true"></Selecting>
                                    <Resizing AllowRowResize="true" AllowColumnResize="True" EnableRealTimeResize="True"
                                        ResizeGridOnColumnResize="False"></Resizing>
                                    <ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="RowDblClick"></ClientEvents>
                                </ClientSettings>
                                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
                            </telerik:RadGrid>
                        </ContentTemplate>
                    </asp:UpdatePanel>

.cs file

protected void rg216_ItemCommand(object source, GridCommandEventArgs e)
    {
        try
        {
            if (e.CommandName.ToLower() == "sitename")
            {
                GridViewRow rw = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
                Label lblsId = (Label)rw.FindControl("lblsId");
                Label lblorderId = (Label)rw.FindControl("lblorderId");
                Label lblTaskStatus = (Label)rw.FindControl("lblTaskStatus");
                //Label lblsId = (Label)e.Item.FindControl("lblsId");
                //Label lblorderId = (Label)e.Item.FindControl("lblorderId");
                //Label lblTaskStatus = (Label)e.Item.FindControl("lblTaskStatus");
                Session["selorderID"] = lblorderId.Text.Trim();
                Session["selsID"] = lblsId.Text;
                Session["selTaskStatus"] = lblTaskStatus.Text;
                ScriptManager.RegisterClientScriptBlock(this.rg200UpdatePanel, this.GetType(), "strSearSiteName", "document.getElementById('ctl00_PagePlaceholder_ifrmPopups').src='OrdDet.aspx'", true);
                ScriptManager.RegisterClientScriptBlock(this.rg200UpdatePanel, this.GetType(), "open", "openpopup()", true);
                ifrmPopups.Style.Add("height", "409px");
                LinkButton lnkSiteName = (LinkButton)rw.FindControl("lnkSiteName");
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
Babu Puchakayala
Top achievements
Rank 1
 answered on 23 Jul 2010
2 answers
135 views
I have an application that limits concurrent and/or overlapping appointments and appointments on special days.  I set the TimeSlot.CssClass to "Unavailable" when the limit is reached ot is on a special day.  That class sets the TimeSlot bacground image to a particular color and word "Unavailable".  The problem presents when there are appointments in the TimeSlot which obscures the background and the word "Unavailable".

I display a RadDock for the Form input when new appointments are allowed and just cancel when not.  I supposeI could display a different RadDock to provide "not allowed" feed back when applicable but I'm searching for something simpler.  Any ideas?
Richard Brown
Top achievements
Rank 2
 answered on 23 Jul 2010
1 answer
197 views
How do I export an image of radgrid to excel?

Tks!
Daniel
Telerik team
 answered on 23 Jul 2010
6 answers
246 views
We are using a custom provider (copied from this site) to store the pathnames of files in a sql database. Right now we have about 4000 records which represents folders and files. The page is taking about 30-60 seconds to load, and it gets successively slower as people add more files.

If the File Explorer's Treeview loads on demand, as it seemingly does, why is ResolveRootDirectoryAsTree()  so recursive? I believe its this function which is causing the slow load time.
Tim
Top achievements
Rank 1
 answered on 23 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?