Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
150 views
Hello,

This line work for a single DataKeyNames

RadToolTipManager1.TargetControls.Add(gridItem(column.UniqueName).ClientID, (TryCast(e.Item, GridDataItem)).GetDataKeyValue("MasterNum").ToString(), True)

Is there away to code this for multiple DataKeyNames eg.

 

DataKeyNames("MasterNum,LodgeNum")

 

 

 

 

 

SoniTek
Top achievements
Rank 1
 answered on 15 Nov 2012
3 answers
249 views
Hi,

I want to assign individual colors to my barserie items depending on some conditions. Like this example for the RadChart control:
http://www.telerik.com/help/aspnet-ajax/chart-how-to-assign-individual-colors-to-bars.html 

Is this possible?

Best regards,
Karl
Marin Bratanov
Telerik team
 answered on 15 Nov 2012
1 answer
104 views


I've got the line chart below on my page and am binding this to a dataset on click of a search button once the user has selected their criteria.

This dataset contains columns Country, Product & Price.  I would like Country displayed along the bottom (x-axis), and then have Price plotted on the graph for each product.

I believe I've got this defined correctly however when I run the report I get a js error "'t.options' is null or not an object".  Please can you advise on this?

In the code behind I'm simply retrieving my dataset and then:

chartPriceCorridor1.DataSource = Prices;

chartPriceCorridor1.DataBind();




<telerik:RadHtmlChart ID="chartPriceCorridor1" runat="server" Width="600px" Height="400px" Skin="Metro">
        <ChartTitle Text="Price Corridor" >
            <Appearance Align="Left" />
        </ChartTitle>
        <Legend>
            <Appearance Position="Bottom" />
        </Legend>
        <PlotArea>
            <Series>
                <telerik:LineSeries AxisName="Country" Name="Product" DataFieldY="Price"></telerik:LineSeries>
            </Series>
        </PlotArea>
    </telerik:RadHtmlChart>
Marin Bratanov
Telerik team
 answered on 15 Nov 2012
3 answers
112 views
It says in the documentation that you can only have 1 RadAjaxManager on a page... I am thinking that I could really use the RadAjaxManager to be multi-purpose! I am currently triggering the ajaxrequest from closing a spawned radwindow) see code below...
//OnClientClose function
function runthisOnWindowClose() {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}

I was thinking that if I wanted to refresh my parent page from a second spawned radwindow ( on it's onclose event)....I would need to call a different code-behind function from the same RadAjaxManager's onajaxrequest property. So wouldn't it be nice if I could dynamically set the onajaxrequest from the codebehind when using a different popup.

Dana


Maria Ilieva
Telerik team
 answered on 15 Nov 2012
4 answers
151 views
In the attached image there is a RadGrid with a GridClientSelectColumn with some of the checkboxes disabled.

I would like the 'select all' checkbox at the top, to only select the rows that are enabled, just two rows in this case. I would like the 'select all' checkbox to function as it would normally, but only take into account the two rows that are enabled.

 e.g.

    . tick the 'select all' checkbox and both enabled rows are selected.

    . untick the 'select all' checkbox and both enabled rows are deselected.

    . tick the first enabled checkbox and then tick the second enabled checkbox and the 'select all' checkbox at the top becomes ticked and vice versa.

I've tried several different methods but each one has not quite worked, including various server side code and jQuery.

The problem with the most obvious approach is that the 'select all' checkbox at the top will end up ticking all the checkboxes regardless of whether they are enabled or not.

Many thanks in advance

Mike

Angel Petrov
Telerik team
 answered on 15 Nov 2012
2 answers
170 views
Is it possible to access the GridGroupHeaderItems client-side? Assuming I have something like this in my grid:
<GroupHeaderTemplate>
    <asp:CheckBox runat="server" ID="cbGroupHeader"/>
</GroupHeaderTemplate>

I can do something like this server-side:
foreach(GridGroupHeaderItem item in RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader))
{
    var cb = (CheckBox)(item.FindControl("cbGroupHeader"));
    cb.Checked = true;
}

Can I do something like this client-side (i.e., with JavaScript)? All I can seem to get is the data items.

Thanks,

J
J
Top achievements
Rank 1
 answered on 15 Nov 2012
0 answers
203 views

To provide better File Upload experience and usability, starting from Q3 2012, RadAsyncUpload is enabled out-of-the box in RadEditor's File Browser dialogs. Therefore the handler for the AsyncUpload should be registered in the web.config explicitly:

<httpHandlers>
    <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>
 ...
<handlers>
    <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
    <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
</handlers>

If the Telerik.Web.UI.WebResource.axd handler is not registered AsyncUpload will not function correctly and the File Browser (ImageManager, DocumentManager, MediaManager, etc) dialogs will look in a similar way:

Both Telerik.Web.UI.DialogHandler.aspx and Telerik.Web.UI.WebResource.axd handlers can be registered in the web.config file via the RadEditor's smart tag.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 15 Nov 2012
3 answers
272 views
Hello,
I am trying to do reports using HtmlCharts. When i tried to do sample one i  got this Build Error like

"Unknown server tag 'telerik:RadHtmlChart'."
I using "2011.2.915.40" version Telerik dll. If i need to use Update dll,can u please help me,how i can find that.

Thanking You,
N.Vishnu Vardhan Reddy
Marin Bratanov
Telerik team
 answered on 15 Nov 2012
4 answers
270 views
Hi,

       In my page I have to popup the radconfirm on a button click.  Depends upon the value return by radconfirm I have to perform some actions that is if it is false or null  then cancel the click event action. If it is true then I donot perform no operation because  i have written the server side button click event handling function so it will call. My problem is if i click button radconfirm is popuped and it doesnt wait for  the value return by the radconfirm it postbacks and perform the server side action.

I checked the documentation in  following tutorial
http://demos.telerik.com/aspnet-ajax/window/examples/confirmserverclicks/defaultcs.aspx,

In this they are using ASP button  but I have to use radbutton. Please give a solution for this.

Thanks
Velkumar.
Marin Bratanov
Telerik team
 answered on 15 Nov 2012
1 answer
358 views
Trying to update RadGrid with the following SQL update command along with this sql select statement.  The table I am updating to has 1 column named "Contactnum" which contains contact #'s and a column "Priority" which lists the Priority as 1,2, or 3.  In my update statement, I need to know how to add the Contactnum2 & Contactnum3 and the Priority 2 and 3 to the update statement.
DECLARE @ContactNum  NVARCHAR(50)
SET @ContactNum = '555-5555 Office'
DECLARE @Priority int
SET @Priority = 1
UPDATE Physician_Contacts
SET ContactNum = @ContactNum
From Physician_Contacts
WHERE Priority = @Priority
SELECT A.Phys_Name, E.Specialty, A.Clinic, A.Office_No, A.Residence_No, A.Fax_no, A.Beeper_note,
                    b.ContactNum, c.ContactNum as Contactnum2,  d.ContactNum as Contactnum3
                    FROM PhysicianMainList as A
                    left join Physician_Contacts as B on A.Phys_Staff_ID = B.Phys_Staff_ID and b.priority = 1
                    left join Physician_Contacts as C on A.Phys_Staff_ID = C.Phys_Staff_ID and c.priority = 2
                    left join Physician_Contacts as D on A.Phys_Staff_ID = D.Phys_Staff_ID and d.priority = 3
                    left join WTH_Specialties as E on E.abbr = A.Specialty                   
                    ORDER BY A.Phys_Name
Eyup
Telerik team
 answered on 15 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?