Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
79 views
Hi Telerik Team,

I am using a Radgrid that can perform Insert and Update records. My requirement is how do i close the "Update Mode" when some one hit "Add new Record" and vice-versa. RadGrid has the default functionality when we click on one row the other which is in update mode closes by itself but how to acheive my requirement. Please suggest a solution.

Please do reply. Its urgent..!!!

Thanku in Advance.
Nani
Top achievements
Rank 1
 answered on 10 Oct 2011
2 answers
63 views
Hi,
Do you have any sample, demo codes of Radscheduler that using WebService for data binding and AdvanceForm with Multiple Value Resource? I am having troubles with getting the multivalue resource on the AdvanceForm. The single resource is working fine. Thank you in advance.
xtreme
Top achievements
Rank 1
 answered on 10 Oct 2011
2 answers
79 views
I have a tabstrip on my page with a handful of tabs...
<rad:RadTabStrip ID="radDetailsTabs" CssClass="radDetailsTabs" runat="server" MultiPageID="radmultipage"
                    BorderWidth="0" OnClientTabSelected="" Skin="Vista" Style="padding: 0; margin: 0;">
                    <Tabs>
                        <rad:RadTab Text="Details" Selected="true" Width="95px">
                        </rad:RadTab>
                        <rad:RadTab Text="Specifications" Width="95px">
                        </rad:RadTab>
                        <rad:RadTab Text="Reviews" Width="95px">
                        </rad:RadTab>
                        <rad:RadTab Text="How To" Width="95px">
                        </rad:RadTab>
                        <rad:RadTab Text="Custom" Width="95px">
                        </rad:RadTab>
                    </Tabs>
                </rad:RadTabStrip>

Then I have some JS that runs on pageload that will remove one of the tabs if its not needed...
function pageLoad() {      
        if (document.getElementById('ctl00_ContentPlaceHolder1_hidShowHowToTab').value == "0") {
            hideTab("How To");
        }
}
function hideTab(strTabName) {
        var tabStrip = $find('ctl00_ContentPlaceHolder1_radDetailsTabs');
        var tab = tabStrip.findTabByText(strTabName);
        if (tab) {
           var parentTab = tab.get_parent();
           tabStrip.trackChanges();
           parentTab.get_tabs().remove(tab);
           tabStrip.commitChanges();
         }
    }

This worked great, until I added the new Custom tab. Now when I click on Custom tab, it shows the content of the How To tab instead. You can see from the attached that the how to tab is set to display block and the clientstate selected index is set to 3 instead of 4. the custom tab is show correctly as selected, but the content revealed is incorrect. Am I missing something?
Nik
Top achievements
Rank 1
 answered on 10 Oct 2011
9 answers
186 views
Hi there, I made a post on Adjusting Telerik RadTreeList to display visually separated items with depth level margins maybe someone will find it usefull :)

Attachment shows the main idea

P.S.: I always wanted to have that feature built it :)

Colin
Top achievements
Rank 1
 answered on 10 Oct 2011
2 answers
304 views
Greetings,

I have a buttonColumn in each row. I'd like to get the ID of the row when i click on it since i need it to make a query afterwards...

I tried to do it intuitively with e.Item.ClientID but it's not working
Thank you in advance
Adigard
Top achievements
Rank 1
 answered on 10 Oct 2011
1 answer
45 views
Hi,

I am facing the following problem in safari 5.

1. I have a button which is disabled in design mode
2. I am enabling this button via javascript.
3. Though the button gets enabled, the button looks like it is still disabled

The style used is Office 2007 and the version of telerik used is 2009 or 2010 [not sure].

Regards,
Shashank


 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<head runat="server">
    <title></title>
  
    <script type="text/javascript">
        function EnableButton() {
  
            var btn = document.getElementById("btnTarget");
            btn.disabled = false;
        }
        
    </script>
  
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadFormDecorator Skin="Office2007" ID="RadFormDecorator1" DecoratedControls="all"
            runat="server" DecorationZoneID="zoneButtons" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div id="zoneButtons">
                    <asp:Button ID="btnTarget" Text="Target" runat="server" Enabled="false" />
                    <asp:Button runat="server" ID="btnSource" Text="Click to enable 'Target'" Enabled="true"
                        OnClientClick="EnableButton();return false;" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

 

 

 

 

Niko
Telerik team
 answered on 10 Oct 2011
2 answers
50 views
I have a EditItemTemplate column with dropdownlist in der...i want to access dropdown list in the code behind but enable access it

Code snipshot

ASPX:
<
telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="false" AllowAutomaticInserts="True"

AllowSorting="true" AllowAutomaticUpdates="True" AllowPaging="false"

AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" ShowStatusBar="true"

Width="950px" OnItemDataBound= "rgQueue2_OnItemDataBound">

<MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataSourceID="ObjectDataSource1"

HorizontalAlign="NotSet" AllowSorting="false" EditMode="InPlace">

<Columns>

<telerik:GridTemplateColumn HeaderText="Source" DataField="SourceName" UniqueName="Source"

 HeaderStyle-Width="250px" ItemStyle-HorizontalAlign="Left">

<ItemTemplate>

<asp:Label ID="lblsource" runat="server"> <%# DataBinder.Eval(Container.DataItem, "SourceName")%> </asp:Label>

</ItemTemplate>

<EditItemTemplate>

<asp:DropDownList ID="ddlsource" runat="server">

</asp:DropDownList>

</EditItemTemplate>

</telerik:GridTemplateColumn>

ASPX.CS:

protected void rgQueue2_OnItemDataBound(object sender, GridItemEventArgs e)

if ((e.Item is GridEditableItem) && e.Item.IsInEditMode)

GridEditableItem item = e.Item as GridEditableItem;
DropDownList list = item.FindControl("ddlsource") as DropDownList;

 

}

}


Problem is its not entering the if statement even...can anyone suggested me to get through it..!!!
Thanks

Nani
Top achievements
Rank 1
 answered on 10 Oct 2011
1 answer
115 views
Hi,
is there any way to limit floating of the RadDock to a specific web element like div etc?
My requirement is if I have a RadDock with Floating DockMode and but I want to limit the Floating mode only to a specific DIV, i.e. the RadDock should only be moved inside a specific DIV.

thanks in advance for any help!!
Slav
Telerik team
 answered on 10 Oct 2011
1 answer
51 views
I think I've found a bug with the PageSize property in the TreeList control.  I'm setting the PageSize property in the HTML markup using a static property in code behind called "GlobalPageSize" like this:

PageSize='<%# GlobalPageSize %>'

GlobalPageSize is a property in my code that reads a value from a cookie.  If no cookie is found, it returns a default value of 15.  When I set the PageSize property like this, the paging doesn't work.  For example, if I try to go to page 2, it will refresh and still be on page 1.  If I try and change the page size using the dropdown, it refreshes and it still has the original value selected.

If I set the PageSize property to a hard coded value like this:

PageSize='15'

the paging works.  It also works if I set the PageSize property in PageLoad event in code behind.  So, after all my testing, it looks like the bug has to do with setting the PageSize property in markup using a value retrieved from code.  Any thoughts?
Veli
Telerik team
 answered on 10 Oct 2011
7 answers
715 views
Hi.

I am using RadDatePicker in connection with asp:RequiredFieldValidator and I encountered some strange behaviour.
This is my aspx file:
<telerik:RadDatePicker ID="dpVeljaOd" AutoPostBack="false" CausesValidation="false" runat="server">
   <DateInput CausesValidation="false" runat="server"></DateInput>
   <DatePopupButton Enabled="true" runat="server" />
 </telerik:RadDatePicker>
 <asp:RequiredFieldValidator ID="valrqVeljaOd" CssClass="errorText" ErrorMessage="Obvezno polje" ControlToValidate="dpVeljaOd" Enabled="true" runat="server"></asp:RequiredFieldValidator>

The strange behaviour:
If you type or select a valid date, delete it and move away from input field (i.e. click in some other field), then validation is triggered. Validator is static and not dynamic, it is executed on server side and there is no postback detected (postback is disabled anyway).
Validation is not triggered, if you have entered and later deleted invalid date. It is also not triggered, if you haven't enter a date at all.
Same thing happens in Telerik validation demo .

How can I get rid of this annoying behaviour?
Vasil
Telerik team
 answered on 10 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?