Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
296 views

Hi Telerik Team,

I have some clarification with respect to the behavior of RAD Tooltip. Is there a posibility that tooltip can open only if some conditions are true? Let me brief out my problem and what I am looking at.

ASPX: I have  created a tooltip manager as shown below.

<telerik:RadToolTipManager ID="radToolTipManager" runat="server" Width="600" Height="50" 
                EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" Skin="PortfolioPopup" 
                OffsetY="-7" OffsetX="0" RelativeTo="Element" Position="BottomRight" HideEvent="ManualClose" 
                ShowEvent="OnClick" ManualClose="True" OnAjaxUpdate="radToolTipManager_AjaxUpdate">  
            </telerik:RadToolTipManager> 

code-bedind: In Page_Load Event, I am adding this code.

protected void Page_Load(object sender, EventArgs e)
{  
    if(!page.IsPostback)
         radToolTipManager.TargetControls.Add(hypConfirm.ClientID, true);  
} 

I have created tooltip manager since I am adding this to many other controls on my page. "hypConfirm" is a hyperlink which has added in aspx.

When user clicks on "Confirm", my AJAX method "radToolTipManager_AjaxUpdate" gets called. I am doing some database operations on this method in server side. Only if my database insert/update is successful, I would need to show the popup. I have shared my code below.

protected void radToolTipManager_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)  
{              
    bool updateSuccess = InsertToDatabase("A");  
    if (updateSuccess)  
    {  
        Control ctrToolTip = Page.LoadControl("Tooltip.ascx");  
        (ctrToolTip as ToolTipMessage).Title = "Status";  
 
        (ctrToolTip as ToolTipMessage).Message = "Database insertion is confirmed." 
 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrToolTip);  
    }              
} 

Problem what I am facing is as soon as I clickthe Confirm button, tooltip gets displayed with 'X' button and loading happens. After the above code executed, tooltip shows up. If the above method fails, then it just shows the tooltip with 'X' button it.  I am just using this tooltip to show it as Confirmation message. If my database operation is successful, then I need to show the pop-up with the confirmation message.

Kishan Gandikota
Top achievements
Rank 1
 answered on 31 Oct 2009
1 answer
173 views
Hi

I have a page that lists Mp3 files.

When one of them is clicked, I want to open a RadWindow.
The window content will be an Mp3 player and controls, and will receive an ID
that will be used to look up the filename, title, description etc.

Can you give me some ideas on how to approach this. I have used the RadWindow a lot
but this involves opening the same window from multiple elements, and passing a
parameter to the window content page.

Thanks a lot for pointers on the best way to do this!

Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 31 Oct 2009
0 answers
104 views
A tree view is functionally equivelent to a related (AKA dependant) set of combo boxes. A RenderAsComboBoxes property would be very useful for setting up dependant combo boxes.
Brian
Top achievements
Rank 1
 asked on 31 Oct 2009
1 answer
91 views
This could be reported as a minor issue, but the Telerik Template Wizard does not renders correctly in a machine with 120 dpi font rendering activated.

I attached screenshot running on Windows 7 Ultimate 64 bit with 120 dpi font rendering activated, under Visual Studio 2008 SP1 Team System.

Thanks a lot for your great products :)

Erjan Gavalji
Telerik team
 answered on 31 Oct 2009
4 answers
166 views
hi

I have a

Hierarchy with Templates Grid.Like This.



here i want to Expand the (RadGrid2).
And how to bind data to Inside Radgrid2 Controls.
In Which Event  i can bind data to Inside RadGrid2 Controls.
Can Anyone help me please....
   <telerik:RadGrid ShowGroupPanel="True" ID="RadGrid1"  AllowSorting="True" AutoGenerateColumns="False" 
            FilterItemStyle-BackColor="#ccff33" runat="server" GridLines="None" AllowPaging="True" 
            Width="750px" Skin="Hay" CellPadding="0"> 
            <ClientSettings> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
            <MasterTableView DataKeyNames="companyname"> 
                <NestedViewTemplate> 
                    <asp:Panel ID="Panel1" runat="server" BackImageUrl="~/images/bluegradient.gif"> 
                        <telerik:RadTabStrip runat="server" ID="TabStip1" Skin="Hay" MultiPageID="Multipage1" 
                            SelectedIndex="0" Width="464px"> 
                            <Tabs> 
                                <telerik:RadTab runat="server" Text="Unpaid Invoices" PageViewID="PageView2"> 
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Fully Paid Invoices" PageViewID="PageView3" 
                                    Selected="True"> 
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Part-Payments" PageViewID="PageView4"> 
                                </telerik:RadTab> 
                            </Tabs> 
                        </telerik:RadTabStrip> 
                        <telerik:RadMultiPage runat="server" ID="radmultipage1" SelectedIndex="0"> 
                            <telerik:RadPageView runat="server" ID="RadPageView1" style="margin-bottom:10px;margin-left :10px;margin-right :10px;margin-top :5px;"> 
                                <%--    <telerik:RadGrid ID="OrdersGrid" runat="server" Skin="Hay" Width="800px" AutoGenerateColumns="False" GridLines="None" OnPreRender="OrdersGrid_PreRender"> 
                                <ClientSettings > 
                                <Selecting AllowRowSelect ="True" /> 
                                <ClientEvents  /> 
                                </ClientSettings> 
                                <MasterTableView DataKeyNames ="loan_reference_number" > 
                                <NestedViewTemplate > 
                                <asp:Panel ID ="Panel2" runat ="server" > 
                                <telerik:RadTabStrip runat ="server" ID ="tabstrib1" MultiPageID ="Multipage2" SelectedIndex ="0" Width ="464px" Skin="Hay"> 
                                <Tabs > 
                                <telerik:RadTab runat ="server" Text ="Details" PageViewID ="newpageview2" Selected="True"></telerik:RadTab> 
                                <telerik:RadTab runat ="server" Text="Attachments" PageViewID ="newpageview3"></telerik:RadTab> 
                                <telerik:RadTab runat ="server" Text ="Comments" PageViewID ="newpageview3"></telerik:RadTab> 
                                </Tabs> 
                                </telerik:RadTabStrip> 
                                </asp:Panel> 
                                </NestedViewTemplate> 
                                    <Columns> 
                                        <telerik:GridBoundColumn DataField="loan_reference_number" HeaderText="Loan Reference NUmber" 
                                            UniqueName="column3"> 
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="invoice_number" HeaderText="Invoice Number" UniqueName="column4"> 
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField=" PSF_sanctionamount" HeaderText="PSF Sanction Amount" 
                                            UniqueName="column6"> 
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="date_of_credit" HeaderText="Due Date" UniqueName="column1"> 
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="actual_debit_date" HeaderText="Grace Period" 
                                            UniqueName="column"> 
                                        </telerik:GridBoundColumn> 
                                    </Columns> 
                                    <ExpandCollapseColumn Visible="True"> 
                                    </ExpandCollapseColumn> 
                                </MasterTableView> 
                             
                            </telerik:RadGrid>--%> 
                                <telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="False" GridLines="None" 
                                    OnPreRender="RadGrid2_PreRender" Skin="Hay" OnNeedDataSource="RadGrid2_NeedDataSource"> 
                                    <ClientSettings> 
                                        <Selecting AllowRowSelect="True" /> 
                                    </ClientSettings> 
                                    <MasterTableView DataKeyNames="loan_reference_number" HierarchyLoadMode ="ServerOnDemand" > 
                                        <NestedViewTemplate> 
                                            <asp:Panel ID="detailsview" runat="server"> 
                                                <telerik:RadTabStrip runat="server" ID="newtip" Skin="Hay" MultiPageID="newradmultipage1" 
                                                    SelectedIndex="0" Width="312px"> 
                                                    <Tabs> 
                                                        <telerik:RadTab runat="server" Text="Details" PageViewID="PageView2" Selected="True"> 
                                                        </telerik:RadTab> 
                                                        <telerik:RadTab runat="server" Text="Comments" PageViewID="newPageView3"> 
                                                        </telerik:RadTab> 
                                                        <telerik:RadTab runat="server" Text="Attachments" PageViewID="newPageView4"> 
                                                        </telerik:RadTab> 
                                                    </Tabs> 
                                                </telerik:RadTabStrip> 
                                                <telerik:RadMultiPage runat="server" ID="newradmultipage1" SelectedIndex="0"> 
                                                    <telerik:RadPageView runat="server" ID="newRadPageView1"> 
                                                        <table style="width: 432px"> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                </td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                    <asp:Label ID="Label2" runat="server" Text="Reference Number:" Width="144px" Style="text-align: left"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                    <asp:Label ID="lblreferencename" runat="server" Text="Referencenumber" Width="150px"></asp:Label> 
                                                                </td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                    <asp:Label ID="Label3" runat="server" Text="Invoice Number:" Width="144px" Style="text-align: left"></asp:Label> 
                                                                </td> 
                                                                <td style="width: 100px"> 
                                                                    <asp:Label ID="lblinvoicenumber" runat="server" Text="Invoicenumber" Width="150px"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                    <asp:Label ID="Label4" runat="server" Text="Company Name:" Width="144px" Style="text-align: left"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                    <asp:Label ID="lblcompanyname" runat="server" Text="Companyname" Width="150px"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                    <asp:Label ID="Label6" runat="server" Text="Due Date:" Width="144px" Style="text-align: left"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                    <asp:Label ID="lblduedate" runat="server" Text="Duedate" Width="150px"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                    <asp:Label ID="Label7" runat="server" Text="Grace Day:" Width="144px" Style="text-align: left"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                    <asp:Label ID="lblgraceday" runat="server" Text="Graceday" Width="150px"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                    <asp:Label ID="Label8" runat="server" Text="Maturity Date:" Width="144px" Style="text-align: left"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                    <asp:Label ID="lblmaturitydate" runat="server" Text="Maturitydate" Width="150px"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td style="width: 74px"> 
                                                                    <asp:Label ID="Label5" runat="server" Text="Client Name:" Visible="false" Width="144px" 
                                                                        Style="text-align: left"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                    <asp:Label ID="lblclientname" runat="server" Text="Clientname" Width="150px" Visible="False"></asp:Label></td> 
                                                                <td style="width: 100px"> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </telerik:RadPageView> 
                                                    &nbsp;&nbsp; 
                                                    <telerik:RadPageView ID="RadPageView2" runat="server"> 
                                                        <telerik:RadEditor ID="RadEditComment" runat="server" Skin="Hay" Style="position: static; 
                                                            margin-left: 10px;" Enabled="false" Width="98%" EditModes="Design"> 
                                                            <Tools> 
                                                                <telerik:EditorToolGroup> 
                                                                </telerik:EditorToolGroup> 
                                                            </Tools> 
                                                            <Content> 
                                                            </Content> 
                                                        </telerik:RadEditor> 
                                                    </telerik:RadPageView> 
                                                    <asp:Button ID="Button2" runat="server" Text="Button" /> 
                                                    <telerik:RadPageView ID="RadPageView3" runat="server"> 
                                                        <asp:Panel ID="Panelatchmt" runat="server" BorderColor="ActiveBorder" BorderWidth="1px" 
                                                            Style="position: static" Visible="true" Width="690px"> 
                                                            <table style="position: static"> 
                                                                <tr> 
                                                                    <td colspan="3" valign="middle"> 
                                                                        <table style="width: 100%; position: static"> 
                                                                            <tr> 
                                                                                <td style="width: 100px"> 
                                                                                    <asp:Label ID="Label1grd" runat="server" Style="position: static" Text="Document Name" 
                                                                                        Font-Names="Arial Narrow" ForeColor="#7D7D7D" Width="103px"></asp:Label></td> 
                                                                                <td style="width: 100px"> 
                                                                                    <asp:TextBox ID="txttitlegrd" runat="server" Style="position: static" Width="144px"></asp:TextBox></td> 
                                                                                <td colspan="2"> 
                                                                                    <asp:FileUpload ID="FileUpload1grd" runat="server" BorderColor="#4EB106" Style="position: static" 
                                                                                        TabIndex="7" Width="264px" BorderWidth="1px" /></td> 
                                                                                <td style="width: 100px"> 
                                                                                    <telerik:RadComboBox ID="cmbtypegrd" runat="server" Style="position: static" Width="75px" 
                                                                                        Skin="Hay"> 
                                                                                        <Items> 
                                                                                            <telerik:RadComboBoxItem runat="server" Text="Front" Value="Front" /> 
                                                                                            <telerik:RadComboBoxItem runat="server" Text="Back" Value="Back" /> 
                                                                                        </Items> 
                                                                                    </telerik:RadComboBox> 
                                                                                </td> 
                                                                                <td style="width: 100px"> 
                                                                                    <asp:Button ID="btnSavegrd" runat="server" Style="position: static" TabIndex="8" 
                                                                                        Text="Attach" ValidationGroup="valdg3grd" Width="70px" OnClick="btnSavegrd_Click" /></td> 
                                                                            </tr> 
                                                                        </table> 
                                                                    </td> 
                                                                </tr> 
                                                                <tr> 
                                                                    <td colspan="3"> 
                                                                        <telerik:RadGrid ID="RadGrdAttach" runat="server" ShowGroupPanel="True" AutoGenerateColumns="False" 
                                                                            Skin="Hay" Width="690px" GridLines="None"> 
                                                                            <MasterTableView> 
                                                                                <Columns> 
                                                                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn"> 
                                                                                        <HeaderTemplate> 
                                                                                            Download</HeaderTemplate> 
                                                                                        <ItemTemplate> 
                                                                                            <asp:LinkButton ID="btndown" runat="server" CommandName="Select" Text="Download"></asp:LinkButton> 
                                                                                        </ItemTemplate> 
                                                                                    </telerik:GridTemplateColumn> 
                                                                                    <telerik:GridBoundColumn DataField="serialnumber" HeaderText="id" ReadOnly="True" UniqueName="id" 
                                                                                        Visible="False"> 
                                                                                    </telerik:GridBoundColumn> 
                                                                                    <telerik:GridBoundColumn DataField="filename" HeaderText="FileName" UniqueName="FileName"> 
                                                                                    </telerik:GridBoundColumn> 
                                                                                    <telerik:GridBoundColumn DataField="tname" HeaderText="DocumentName" UniqueName="DocumentName"> 
                                                                                    </telerik:GridBoundColumn> 
                                                                                    <telerik:GridBoundColumn DataField="uploadedby" HeaderText="Uploaded By" UniqueName="uploadedby"> 
                                                                                    </telerik:GridBoundColumn> 
                                                                                </Columns> 
                                                                                <GroupByExpressions> 
                                                                                    <telerik:GridGroupByExpression> 
                                                                                        <SelectFields> 
                                                                                            <telerik:GridGroupByField FieldAlias="Attachments" FieldName="groupname" FormatString="{0:D}" 
                                                                                                HeaderValueSeparator=" from: " /> 
                                                                                        </SelectFields> 
                                                                                        <GroupByFields> 
                                                                                            <telerik:GridGroupByField FieldAlias="groupname" FieldName="groupname" SortOrder="Descending" /> 
                                                                                        </GroupByFields> 
                                                                                    </telerik:GridGroupByExpression> 
                                                                                </GroupByExpressions> 
                                                                            </MasterTableView> 
                                                                        </telerik:RadGrid> 
                                                                    </td> 
                                                                </tr> 
                                                                <tr> 
                                                                    <td colspan="3" style="width: 100px;"> 
                                                                        <table style="position: static"> 
                                                                            <tr> 
                                                                                <td style="width: 100px"> 
                                                                                    <asp:Button ID="btnfrontgrd" runat="server" Style="position: static" Enabled="false" 
                                                                                        Text="View Front" /></td> 
                                                                                <td style="width: 100px"> 
                                                                                    <asp:Button ID="btnbackgrd" runat="server" Style="position: static" Enabled="false" 
                                                                                        Text="View Back" /></td> 
                                                                                <td style="width: 100px"> 
                                                                                </td> 
                                                                                <td style="width: 100px"> 
                                                                                </td> 
                                                                                <td style="width: 100px"> 
                                                                                </td> 
                                                                                <td style="width: 100px"> 
                                                                                </td> 
                                                                                <td style="width: 100px"> 
                                                                                </td> 
                                                                                <td style="width: 100px"> 
                                                                                    <asp:Button ID="btndownloadgrd" runat="server" Style="position: static" Enabled="false" 
                                                                                        Text="Download" /></td> 
                                                                                <td style="width: 100px"> 
                                                                                    <asp:Button ID="btnprintgrd" runat="server" Style="position: static" Text="Print" 
                                                                                        Visible="False" /></td> 
                                                                            </tr> 
                                                                        </table> 
                                                                    </td> 
                                                                </tr> 
                                                            </table> 
                                                            <br /> 
                                                            <iframe style="position: static;" id="fimageview" width="690" runat="server"></iframe> 
                                                            &nbsp;</asp:Panel> 
                                                    </telerik:RadPageView> 
                                                </telerik:RadMultiPage> 
                                            </asp:Panel> 
                                        </NestedViewTemplate> 
                                        <Columns> 
                                            <telerik:GridBoundColumn DataField="loan_reference_number" HeaderText="Loan Reference Number" 
                                                UniqueName="column1"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="invoice_number" HeaderText="Invoice Number" UniqueName="column2"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="date_of_credit" HeaderText="Due Date" UniqueName="column3"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="actual_debit_date" HeaderText="Grace Period" 
                                                UniqueName="column"> 
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                                        <ExpandCollapseColumn Visible="True"> 
                                        </ExpandCollapseColumn> 
                                    </MasterTableView> 
                                </telerik:RadGrid></telerik:RadPageView> 
                        </telerik:RadMultiPage> 
                        <br /> 
                    </asp:Panel> 
                </NestedViewTemplate> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="companyname" HeaderText="Company name" UniqueName="column1" 
                        Visible="False"> 
                        <ItemStyle Height="15px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="currency" HeaderText="Currency" UniqueName="column3" 
                        Visible="False"> 
                        <ItemStyle Height="15px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="overdraftlimit" HeaderText="Over Draft Limit" 
                        UniqueName="column" DataFormatString="&lt;pre&gt;{0}"> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                        <ItemStyle Height="15px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Credit Utilized" HeaderText="Credit Utilized" 
                        UniqueName="column10" DataFormatString="&lt;pre&gt;{0}"> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                        <ItemStyle Height="15px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Available Credit" HeaderText="Available Credit" 
                        UniqueName="column8" DataFormatString="&lt;pre&gt;{0}" FooterText="Selected Company Total:"> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                        <ItemStyle Height="15px" /> 
                    </telerik:GridBoundColumn> 
                </Columns> 
                <GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="companyname" FieldAlias="companyname" /> 
                        </GroupByFields> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="companyname" FieldAlias="companyname" /> 
                        </SelectFields> 
                    </telerik:GridGroupByExpression> 
                </GroupByExpressions> 
                <ExpandCollapseColumn Visible="True"> 
                </ExpandCollapseColumn> 
            </MasterTableView> 
            <FilterItemStyle BackColor="#CCFF33" /> 
            <SelectedItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 
        </telerik:RadGrid> 

Thank You.
Suresh K.


Suresh K
Top achievements
Rank 1
 answered on 31 Oct 2009
3 answers
234 views
I have been doing a bit of Fiddler-ing.... looking at performance profiling.

One thing that Fiddler keeps pointing out to me is that my pages are apparently doing repeated loads of large chunks of Javascript (100kB+), which I assume is the Telerik js for such items as Ajax, etc, etc.

I further note that these items are NOT cached (according to Fiddler)

So, what's the best policy here?
My sites are always database sites, so I am very cautious about using too much static *page* caching - but there is obviously a big opportunity to speed up those page components which are separately loaded.

Any hints?

Also, is compression useable here?
Can I get any success/war stories on this, too?

(Basically, my theme is "give me more speed!" <g>)

TIA
Steve

Steve Bywaters
Top achievements
Rank 1
 answered on 31 Oct 2009
6 answers
196 views
Hi All

I have a grid wih some 25 records.

While inserting a new record need to check whether it constains duplication.

So I have taken the recods in the grid  and checked.

protected

void RadGridEmpType_InsertCommand(object source, GridCommandEventArgs e)

 

{

 

GridEditFormInsertItem insertedItem = (GridEditFormInsertItem)e.Item;

 

 

Hashtable newValues = new Hashtable();

 

e.Item.OwnerTableView.ExtractValuesFromItem(newValues, insertedItem);

 

int value = 0;

 

 

RadTextBox txt = (RadTextBox)e.Item.FindControl("txtTypeShortDesc");

 

 

int Rowcount = RadGridEmpType.Items.Count;

 

 

for (int count = 0; Rowcount > count; count++)

 

{

 

Label lbl = (Label)RadGridEmpType.Items[count].FindControl("LblTypeShortDesc");

 

 

if (txt.Text.ToUpper() == lbl.Text.ToUpper())

 

{

value++;

}

}

 

if (value == 0)

 

{

dsiSmartEmpType.InsertParameters[0].DefaultValue = CompanyID.ToString();

dsiSmartEmpType.InsertParameters[1].DefaultValue = UserId;

}

 

else

 

{

 

Label lbl = (Label)e.Item.FindControl("Msg");

 

lbl.Text =

"Already Exists";

 

e.Canceled =

true;

 

}

}

It works.

But It just takes the record in the current page.

For example the grid contains 25 records. and the page size is given as 10.

While inserting it just checks the last five.

Is there any option to take all the 25 records in the grid.

Thank You.

-Anto

Brett
Top achievements
Rank 2
 answered on 31 Oct 2009
1 answer
81 views
hello,
How can i show default tools and my custom tools on radedit?
Schlurk
Top achievements
Rank 2
 answered on 30 Oct 2009
2 answers
182 views
I have a RadGrid that is wider than it's container DIV.  When the RdgGrid is rendered, it renders to it's full width, however a line is generated where the natural end of the DIV would be (if the RadGrid was not larger than the container).

I would like to expand the div to the width of the RadGrid or remove the blue line below in cases where the RadGrid is larger than the natural width of the container.

.twocolright {  
float:rightright;  
padding:10px 10px 20px 5px;  
width:75%;  
} 

body {  
    margin:0;  
    padding:0;  
    border:0;           /* This removes the border around the viewport in old versions of IE */ 
    outline: 0;  
    width:100%;  
    background: transparent;  
    min-width:960px;  
}  
 
jgill
Top achievements
Rank 1
 answered on 30 Oct 2009
2 answers
124 views
I have a fairly complex situation here that results in validation controls not working, either on the client side or when calling page.Validate().

I have a tabstrip (and associated multipage).
On Tab 1, an item is added in an ajax panel and saved.  When the user switches tabs, ajaxManager.ajaxRequest forces a repeater on page 2 to reload from the data source.  The repeater contains an item template which contains a user control that shows the details for the added object.  The repeater is inside the ajax panel and the user controls there have standard asp validators.  Any validators that were present when the page loaded in work fine, but any added as a result of the repeater re-binding fail to run, even when forced to run server side.  I tried rebinding the repeater in every page_load call to tab 2, but that didn't fix the problem.

Anyone have any ideas?
Chris
Top achievements
Rank 1
 answered on 30 Oct 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?