Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
176 views
I am trying to use the RACB as a filter for a RadGrid column, I have almost got it working only once I have selected a token when the Grid filter fires the token disappears from the RACB. The Grid does filter to the selected item of the RACB but after filter there is no way of removing it as it is no longer there. I am using an Entity Data Source to populate the RACB.

I think I am missing a selected value on the RACB which doesnt exist.

<telerik:GridBoundColumn DataField="Customer" HeaderText="Customer" ReadOnly="true" >

 

<FilterTemplate>

 

<telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox2" DataSourceID="EntityDataSource3" Filter="Contains" OnClientEntryAdded="entryAdded" AllowCustomToken="true"

 

DataTextField="Customer" DataValueField="Customer" InputType="Token">

 

</telerik:RadAutoCompleteBox>

 

<telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

<

 

 

script type="text/javascript">

 

function entryAdded(sender, eventArgs) {

 

var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

tableView.filter(

 

"Customer", eventArgs.get_entry().get_text(), "EqualTo");

}

</

 

 

script>

 

</telerik:RadScriptBlock>

 

</FilterTemplate>

 

</telerik:GridBoundColumn>

Kalina
Telerik team
 answered on 21 Sep 2012
2 answers
74 views

Hello,

I currently use ASP.NET Ajax Telerik.Web.UI_2011_2_712 for a Web Application hosted on WS2007 (32 bits)
My development workstation is an Xp (32bits).

I have to migrate to a new workstation with Window 7 (64bits). Knowing that the target platform is still WS2007 (32 bits).
Is there a specific ASP.NET Ajax Telerik.Web.UI_2011_2_712 for a 64 bits development workstation.
Regards
Bernard

Stéphane
Top achievements
Rank 1
 answered on 21 Sep 2012
4 answers
249 views
I have a split button in a grid.  When I click the split button the context menu shows.  When I click on the context menu the OnItemClick fires and I can get the context item selection.  But what I can't figure out how to do is get the datakey value for the radgrid row where I click the button.  If I select the row first I can get the datakey value via RowSelected or RowSelecting.  But niether of those events fire when I click on the split button because its OnClientClicked fires.  I'd like to get that value without having to select the row first.

<telerik:RadContextMenu ID="radCtxMenuActions" runat="server" CausesValidation="true" OnItemClick="radCtxMenuActions_ItemClick">
    <Items>
        <telerik:RadMenuItem Text="Option 1" />
        <telerik:RadMenuItem Text="Option 2" />
        <telerik:RadMenuItem Text="Option 3" />
    </Items>
</telerik:RadContextMenu>

protected void radCtxMenuActions_ItemClick(object sender, RadMenuEventArgs e)
{
 
    int id = Convert.ToInt32(Request.Form["radGridClickedRowValue"]);
 
    switch (e.Item.Text)
    {
           case "Option 1":
           // do action with id
            break;
    }
 
}


if (args.IsSplitButtonClick() || !sender.get_commandName())
{
     // get selected row here and save to hidden field so I can use it in RadContextMenu OnItemClick
     var id = ?????
     document.getElementById("radGridClickedRowValue").value = id;

    var currentLocation = $telerik.getLocation(sender.get_element());
    var contextMenu = $find("<%=radCtxMenuActions.ClientID%>");
    contextMenu.showAt(currentLocation.x, currentLocation.y + 22);
}
john81
Top achievements
Rank 1
 answered on 21 Sep 2012
1 answer
79 views
Hi friends,

I am having a scenario where I am using radtree more likely the windows explorer's folder tree view, and there are certain scenarios where I need to open up a new a new radtab OR even a browser tab.

I tried to dig this up in forums but all that I found at most places was a suggestion to use "SelectedNode.Selected=true;" That does work for the same page holding off the node selected,

but what if I do post back / open up a new rad tab / open up a new browser tab-window ?

In theory all these ways should be seems-less.

I have that rad-tree in the master page so I **should** be able to store and use it in the page_Load even in the master page's code behind - would you please post a code demonstrating this ?

Is it possible to use the session variables and retrieving the same on the other page, if so I'd like to request a demo for that.

Thanks
Plamen
Telerik team
 answered on 21 Sep 2012
2 answers
350 views
Hi friends,

I am having a scenario where I am using radtree more likely the windows explorer's folder tree view, and there are certain scenarios where I need to open up a new a new radtab OR even a browser tab.

I tried to dig this up in forums but all that I found at most places was a suggestion to use "SelectedNode.Selected=true;" That does work for the same page holding off the node selected,

but what if I do post back / open up a new rad tab / open up a new browser tab-window ?

In theory all these ways should be seems-less.

I have that rad-tree in the master page so I **should** be able to store and use it in the page_Load even in the master page's code behind - would you please post a code demonstrating this ?

Is it possible way may be to use the session variables and retrieving the same on the other page, if so I'd like to request a demo for that.

Thanks
Plamen
Telerik team
 answered on 21 Sep 2012
1 answer
69 views
Hi,
i tried your example Specific Tooltip Data Without LOD.
I created an Application with the same scenario. I used same javascript and code behind. Only difference i use scrolling in radgrid.
But every time i hover over the same row after the tooltip closed i get a javascript error.
Runtime Error in Microsoft JScript: The property `innerHTML` No value can be determined: the object is null or undefined
Hovering over a different row is no problem.
Please can someone help it is very urgent

Thanks

Marin Bratanov
Telerik team
 answered on 21 Sep 2012
2 answers
241 views
I have 2 controls on my page that both have a RadWindowManager and RadWindow, each with their specified settings. Through searching, it looks like you can designate the RadWindowManager via client side code, but I am unable to get it to work. The last read in RadWindowManager still keeps the settings for both.

Here is my first .ascx control.

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    Behaviors="Close" Animation="Slide" Modal="True"
KeepInScreenBounds="True" AutoSize="True" Width="870px" Behavior="Close">
    <Windows>
        <telerik:RadWindow ID="PopUp" runat="server"
            NavigateUrl="/Controls/ProductPopUpPage.aspx?GUID="
            IconUrl="/Images/JJIcon16x16.jpg">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<script type="text/javascript">
    // RadWindow
    function ShowProductPopUp(ProductGuid) {
        var oManager = GetRadWindowManager("RadWindowManager1");
        oManager.open("/Controls/ProductPopUpPage.aspx?GUID="+ProductGuid, "PopUp");
    }
 
 
</script>


And my second .ascx control

<div style="padding-left: 10px;">
    <asp:DropDownList ID="OEDropDownList" Width="200" Font-Size="Medium" runat="server">
        <asp:ListItem> Create a New Order</asp:ListItem>
        <asp:ListItem> View Pending Orders</asp:ListItem>
        <asp:ListItem> View Previous Orders</asp:ListItem>
    </asp:DropDownList>
    <div style="float: right;">
        <asp:Button ID="CreateNewOrder" Text="Create New Order" OnClientClick="openWinContentTemplate(); return false;"
            runat="server" />
    </div>
</div>
<%--<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> Comment back in for single test page--%>
<telerik:RadWindowManager ID="CreateNewOrderWindowManager" runat="server"
    EnableShadow="True">
    <Windows>
        <telerik:RadWindow runat="server" ID="CreateNewOrderPopUpWindow" Modal="true"
            Width="350px" Height="150px" RestrictionZoneID="ContentTemplateZone"
            Animation="Fade" IconUrl="/Images/JJIcon16x16.jpg">
            <ContentTemplate>
                <asp:Panel ID="CreateNewOrderPanel" runat="server" Width="300px" Height="100px" BackColor="AliceBlue"
                    BorderWidth="1px">
                    <asp:Label ID="CreateNewOrderLabel" runat="server" Text="Enter Order Name" />
                    <asp:TextBox ID="CreateNewOrderAddTextBox" runat="server" Width="200px" Text="Enter Order Name" />
                    <asp:Button ID="CreateNewOrderAddButton" runat="server" Text="Create" />
                </asp:Panel>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<script type="text/javascript">
 
    function openWinContentTemplate() {
        var oManager = GetRadWindowManager();
        oManager.open(null, "CreateNewOrderPopUpWindow");
 
 
 
    }
     
</script>

I've tried adding the RadWindowManager client ID into both with no success.


Geoff
Top achievements
Rank 1
 answered on 21 Sep 2012
8 answers
170 views
I'm using Telerik version 2012.1.411.40

I'm not using the transfer buttons to transfer the elements between the two lists, I have another function that calls the "transferToDestination" function of the listbox.(client side obviously)

When it's done transferring, all of the element attributes that I defined disappear. Is there something I'm missing?
Chris
Top achievements
Rank 1
 answered on 21 Sep 2012
1 answer
144 views

Hi,

 We have a requirement like highlighting the dates in date picker placed at the top of the telerik rad scheduler.

We are using the 3 views of scheduler like - Month , Week and Day views.

Now the selected date is highlighted in the date picker.

Our requirement is, in Month view the datepicker has to highlight all the dates shown in the scheduler currently.

If it is a Week view , it need to highlight the dates in that week.

And if it is a Day view it has to highlight the date which it is showing, and it is working correctly by default.

Anyone please give some suggestions to do this.


Thanks
Plamen
Telerik team
 answered on 21 Sep 2012
3 answers
155 views
Hi,
   I have a telerik grid with template columns. One of the column has textbox as edit item template. And write onkeypress event for this textbox using javascript. On this event How i will identify the text inside the textbox is selected or not.

Thanks & Regards
Anzar.M

Eyup
Telerik team
 answered on 21 Sep 2012
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?