Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
67 views
Good day,
Please can someone help me with this:

I have a following code in my aspx page:

<

 

telerik:GridTemplateColumn HeaderText ="Eis-Id" UniqueName ="PRICol" Groupable="true" DataField="FILENO" SortExpression="FILENO" ReadOnly="true" HeaderButtonType="TextButton">

 

 

<HeaderStyle Width="70px" />

 

 

<ItemStyle Width="70px" />

 

 

<ItemTemplate>

 

 

<asp:Label ID="PRI" runat="server" ></asp:Label>

 

 

<asp:Image ID="Image1" runat="server" AlternateText="EIS CHARGES" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

When I exporting to PDF Alternate text appear on my pdf report.I need only PRI to be on the report.

Thanks so much..

 

Daniel
Telerik team
 answered on 10 Dec 2010
7 answers
200 views
Hi,

I have a RadGrid and a RadComboBox. For one Command Item click I am using AJAX to update RadComboBox. So I have linked RadGrid and RadCombobox using AJAX Manager from Design view(Configure AJAX Manager).

My RadGrid has Edit , Delete Reset function which has no connection to RadCombobox. Whenever I click anyone it updated RadComcbox too. How can I solve this problem ?

Please Help...
Smiely
Top achievements
Rank 1
 answered on 10 Dec 2010
4 answers
341 views
Hello Team,

I have searched over the forum to get a solution but I am finding my issue is quite different than what I have found so far.

I have grid of users that will be selected with a clientselectcolumn and I have a separate template column of checkboxs that I want to set only one of the selected users as the main user or admin user. I need help to achieve the following:

1. Client side validation to allow only one checkbox to be selected at a time for the admin user when a checkbox is selected.

2.  Persist the checked state of checked box upon paging or sorting.

Could you please point me in to some sources or provide me with pointers.

Thank you.
-G-
Rafaga2k
Top achievements
Rank 1
 answered on 10 Dec 2010
6 answers
157 views
Hi,

Is there a way, I can reduce the height for the spell dialog? I have to open that inside a RadPane (height is around 300) in a RadSplitter, so I need to reduce the size.

Thanks
kachy
Top achievements
Rank 1
 answered on 10 Dec 2010
2 answers
80 views
I was recently working with adding menu items in a vb.net code behind based on a user's role.  The item was added to the menu, but the code gave birth to a weird error that I have no idea what it means, where it is, or how to address.  Any help is appreciated.

Here's the code behind;
'Determine user access, and load controls accordingly
If Roles.IsUserInRole(UserID, "Loss Prevention") = True Then
 
    'Create menu items
    Dim item As RadMenuItem = New RadMenuItem("Loss Prevention")
    Dim ChildItem As RadMenuItem = New RadMenuItem("I.P. Search")
 
    'assign all necessary menu item properties
    ChildItem.NavigateUrl = "~/LossPrevention/IPSearch.aspx"
    ChildItem.ImageUrl = "~/App_Themes/PanBlue/icons/SearchIcon1.png"
 
    'add menu items
    RadMenu1.Items.Add(item)
    item.Items.Add(ChildItem)
End If

When I run this app, I get a error that says; Microsoft JScript runtime error: 'undefined' is null or not an object (screen shot attached)

The best I can tell, this is a generated telerik code file that is screwing up somehow.  Any ideas on how to fix this?  I can't deploy the app with this issue.
TSCGlobal
Top achievements
Rank 1
 answered on 10 Dec 2010
2 answers
117 views
Hi all,
could please somebody help me with this problem?
I have RadNumericTextBox in GridTemplateColumn of RadGrid. I want two things:
- OnKeyPress it will compute differnce between its value and some start value
- OnValueChanged it will update value in database (through AJAX call)

ASPX page snippet:
<telerik:GridTemplateColumn UniqueName="colValue" HeaderText="Stav" ItemStyle-Width="35px">
    <ItemTemplate>
    <telerik:RadNumericTextBox
        ID="txtCounterValue" runat="server"  Width="80"
        MinValue="0" NumberFormat-AllowRounding="false" NumberFormat-DecimalDigits="0"
        EnabledStyle-HorizontalAlign="Right" EnabledStyle-Font-Bold="true"
        >
        <ClientEvents  OnKeyPress="CounterKeyPress"OnValueChanged="CounterValueChanged"  />
    </telerik:RadNumericTextBox>
  <div id="txtStartValue" runat="server" ></div>
    <div id="txtDifference" runat="server" ></div>
                                         
 
    </ItemTemplate>
</telerik:GridTemplateColumn>

Snippet of code-behind:
Protected Sub rgDeviceCountersDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs)
            Dim myCounter = DirectCast(e.Item.DataItem, Data.DeviceCounter)
            Dim txtCounterValue As RadNumericTextBox = DirectCast(e.Item.FindControl("txtCounterValue"), RadNumericTextBox)
txtCounterValue =myCounter.StartValue
            Dim txtStartValue As HtmlGenericControl = DirectCast(e.Item.FindControl("txtStartValue"), HtmlGenericControl)
txtDtartValue.InnerText=myCounter.StartValue
            Dim txtDifference As HtmlGenericControl = DirectCast(e.Item.FindControl("txtDifference"), HtmlGenericControl)
        End Sub

Snippet of javascript:
var ajaxManager;
 
function pageLoad() {
ajaxManager = $find("<%=RadAjaxManager.GetCurrent(Page).ClientID %>");
            }

function CounterKeyPress(sender, eventArgs) {
                /* update InnerText of txtDifference with difference between RadNumericTextBox andtxtStartValue */
/* HOW TO ACHIEVE THIS? :-) */
            }

function
CounterValueChanged(sender, eventArgs) {
                /* Count difference betweentxtStartValue and txtCounterValue and call AJAX update of record (how to get Primary Id from ClientDataKeyNames?) */
ajaxManager.ajaxRequest(... AND WHAT HERE ...?);
            }





Thank you very much for your help!
Zdeněk
Top achievements
Rank 1
 answered on 10 Dec 2010
1 answer
70 views
I'm trying to export my grid to excel using the CommandItem. I'm confused because most of the examplesshow the commandItem as well as a sperate button which acutally does the Excel Export. If that is the case what good is the commandItem. I cant seem to find a C# example of how to exort to excel just using the commandItem. Can someone please point me in the right direction?

Daniel
Telerik team
 answered on 10 Dec 2010
9 answers
108 views
I have a menu that width cannot exceed 175px, I have text that need to wrap, which it cannot do in a <span>.  Is it possible to override the render method to change the <span> elements with <div> or <p> in the RadMenu?  This is possible with .NET server controls, using Control Adapters.  How would one do the same with Telerik Control.
Kevon Hayes
Top achievements
Rank 1
 answered on 10 Dec 2010
3 answers
166 views
First, let me point out that the code works perfectly on the first load. However, on the postback, the Telerik controls are not ready yet.

So I'm doing a simple loop through the grid:

var tempValue = new Array(0, 0, 0, 0, 0, 0, 0, 0);
var senderId = sender.get_id();
var telerikControl;
var grid = $find("<%= uxGrid.ClientID %>");
var rows = grid.get_masterTableView().get_dataItems();
var rowCount = rows.length; // make loop run faster
for (i = 0; i < rowCount; i++) { // foreach row
    for (j = 1; j <= 7; j++) {
        console.log(rows[i].get_element());
        telerikControl = rows[i].findControl('uxHours' + j);
        if (telerikControl == null) {
            console.log('could not find control "uxHours' + j + '" in row ' + i
                + '; updateDaySummaries initiated by ' + senderId);
        }
        if (telerikControl.get_value().length != 0) { // do NOT use greater than
            //console.log('adding ' + telerikControl.get_value() + ' from ' + telerikControl.get_id() + ' to tempValue[' + (j - 1) + ']:' + tempValue[j - 1]);
            tempValue[j - 1] += telerikControl.get_value();
        }
    }
}

See the line where I call console.log(rows[i].get_element()); ?

Here is a sample of the difference between the first page load (which works) and the postback.

broken code (line 83):
<div style="z-index: 6000;" class="rcbSlide"><div style="display: none; width: 175px;" class="RadComboBoxDropDown RadComboBoxDropDown_Default " id="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_DropDown"><div style="height: 150px; width: 100%;" class="rcbScroll rcbWidth"><ul style="list-style: none outside none; margin: 0pt; padding: 0pt;" class="rcbList"><li class="rcbItem ">Business Development</li></ul></div></div></div><input type="hidden" name="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" id="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" autocomplete="off" value="{"logEntries":[],"value":"16","text":"Business Development","enabled":true}">

working code (line 83):
<input type="hidden" name="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" id="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" autocomplete="off" value="{"logEntries":[],"value":"16","text":"Business Development","enabled":true}">

Any ideas?




Iana Tsolova
Telerik team
 answered on 10 Dec 2010
1 answer
47 views
See attached screenshot.

I've been asked to duplicate this functionality and I am trying to figure out how they did it and if it's possible with either Grid or TreeList.
Iana Tsolova
Telerik team
 answered on 10 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?