Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
I have several pages with grids on them, with a RadWindow used to either edit grid items or add new ones. Everything worked great for a couple years, but I seem to be having an issue now that I'm using a newer version (2011.2.712.35) of the Telerik.Web.UI DLL.

After the first time you close the window, the grid refreshes properly. After that, opening the window and closing it a second time fails to refresh the grid.

I'm calling the refresh by setting OnClientClose on the window:

<telerik:RadWindow ID="EditAlias" runat="server" Title="Edit Client/Payer Alias" VisibleStatusbar="false" ReloadOnShow="true" Modal="true" Behaviors="Close" Animation="Slide" OnClientClose="OnClientClose"  />

Then the javascript:

function OnClientClose(sender, eventArgs)
{
   $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}

And finally the code-behind:

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            if (e.Argument == "Rebind")
            {
                radGrdPayerAlias.Rebind();
            }
        }
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
185 views


Hi,

I ahve used below code for adding images.

<

 

 

telerik:radbutton id="RadButton1" runat="server" Text="Expand All"

 

 

 

onclick="RadButton1_Click" width ="30" height="20">

 

 

 

<Image IsBackgroundImage="true" ImageUrl ="expand-large-silver-Shapes4FREE1.png" />

 

</

 

 

telerik:radbutton>

 



when I run the application I got many expand button.I am not sure why it happened?

I need to add Rad ImagesButton  and click on this button exapnd all treeview and treelist node.

How to add Rad ImagesButton ?

Thanks,
Sindu
Shinu
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
78 views
hi,
how can we make parent nodes checkable false?we are using ef query while binding..
Princy
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
90 views
Hello,

When i use raddatepicker.selecteddate, this includes date as well as time.
I want only the date part from the datepicker.
How can i get it?


Thanks
Shinu
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
114 views
Hi, I am new to using telerik controls. I have been trying to write some javascript to add items to an existing radcombobox. Using examples in the demos I did something like this, to first of all get the existing combobox:

var combo = $find ("<%=RadComboBox1.ClientID%>");

however when I check combo, it is always null.

Any ideas what to do? Pl let me know if you need more info about my code.

Thanks in advance!
Princy
Top achievements
Rank 2
 answered on 09 Nov 2011
3 answers
112 views
How can i place a radgrid in treelist?
Shinu
Top achievements
Rank 2
 answered on 09 Nov 2011
2 answers
93 views
Hi,
  I have a grid in which I wanted to have a tooltip with some text and a picture shown to the bottom of the row when the row is clicked. I tried to get the row element from client side javascript as follows:
            function rowClicked(sender, args) {
                var plu = args.getDataKeyValue("PLUCODE")
                var pline = args.getDataKeyValue("PLINE")
                var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
                var id = args.get_gridDataItem().get_element().id;
                masterTable.fireCommand("ShowDetail", plu + "|" + pline+"|"+id);
}
this row element id was something like"RadGrid1_ctl00__1" and was passed to the server side and then the tooltip TargetControlID got set as following:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == "ShowDetail")
    {
        string[] s = e.CommandArgument.ToString().Split('|');
        CurrentItemCode = s[0];
        this.ilvRadToolTip.TargetControlID = s[2];   // "RadGrid1_ctl00__1";
        this.ilvRadToolTip.Show();
        LoadUserControl(PlaceHolder, CurrentControl, s[0], s[1]);
    }
}
the tooltip was shown at the right position but the picture inside tooltip was missing. I tried to setTargetControlID = RadGrid1.CientID and the tooltip was shown correctly and of course the position was according to the whole grid.
Is there any manipulation inside that caused this to happen ? Would there be any solution as to meet my requirement?
I would appreciate it very much if you could provide some advice. Thank you.
TIGER
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
146 views
I'm trying to do something similar to what is demonstrated here and am really stuck on a problem I am currently having and hoping someone can help.  Basically, in the ObjectDataSource1_Selecting method I am checking the FilterExpression (with linq expressions set to false) and the expression is missing the UniqueName of the column that I am passing to the javascript filter() function.  It looks like: "([] = 'Critical')". when I select "Critical" from the radcombo.

I've looked over it a bunch and am having trouble finding something configured wrong, here is the relevant code:

<telerik:GridTemplateColumn  DataType="System.String"
                    FilterControlAltText="Filter Urgency column" HeaderText="Urgency"  AllowFiltering="true"
                    SortExpression="Urgency" UniqueName="Urgency" Visible="true">
                    <FilterTemplate>
                            <telerik:RadComboBox ID="comboUrgencyFilter" DataSourceID="UrgencyTypeDataSource" DataTextField="Name"
                                DataValueField="Name" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Urgency").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="UrgencyIndexChanged" Width="90px">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
                                <script type="text/javascript">
                                    function UrgencyIndexChanged(sender, args) {
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                        tableView.filter("Urgency", args.get_item().get_value(), 5);
                                    }
                                </script>
 
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    <ItemTemplate>
                            <%# Eval( "UrgencyType.Name") %>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

Thanks for any help
Brian
Top achievements
Rank 1
 answered on 08 Nov 2011
0 answers
74 views
Hello all!  

I have scanned the  Telerik forums and 'Net for an answer to this question, but have been so for unable.  So, please forgive me if this question has already been addressed.  :)

Our client is currently using an older version of the Telerik controls  (Telerik.Web.UI.dll : Runtime Version: 2.0.50727

Version: 2010.1.309.35).  

I am trying to do two things:

1) Configure the timeline in Day View so that there are more labels than just hourly.  Right now our timeline is showing 12am, 1am, 2am, etc - but we wish to, for instance, have labels every 15 minutes OR have tick-marks (if such a thing is possible) between labels.

2) Configure the Day View so Appointment do not snap to the nearest half-hour.  We are tracking events that occur pretty much anytime of day  - not just at the nearest half hour - and they have a need to have that level of granularity show.

So, once again, sorry if this is a repeat.  Any help would be great.  We certainly do enjoy using these controls and Telerik does a marvelous job of packing functionality into them - just not sure where to find this particular functionality.

Thanks!

-Greg D - Yahara Software, Ltd, Madison, WI

Gregory
Top achievements
Rank 1
 asked on 08 Nov 2011
4 answers
106 views
Hello-
We are implementing a media gallery and are using 2 Rad Rotators on the page, one of 4 images, small thumbnails, and one below of just 1 large image, which will show the details when the user clicks on the image on the top.

We are using the load on demand web service for both rotators, as some of the albums have 100's of images. Everything works fine on the top rotator, clicking next loads the next 10 images from the webservice, etc.

The problem is when the user pages through the small rotator to items 11-20, and clicks on one of the images. The large rotator at this point only has 10 items in it, so using javascript to call set_itemIndex does nothing. Is there a way we can programatically (through javascript ideally) call the webservice to load the next set of items in the bottom rotator?

Thanks

Eric
Eric
Top achievements
Rank 1
 answered on 08 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?