Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
220 views
I'm having an issue with removing the padding to the tab name text in my RadTabStrip. I have limited width due to my customers current screen resolution. I have made multiple changes to the .css skin file and have found no resolution. Attached is a screen shot of the current tabstrip. I would like to remove all of the padding around the text.

Thanks in advance
Cori
Top achievements
Rank 2
 answered on 23 Dec 2010
2 answers
107 views
Hi,
  We are using RadRotator in our application .Its Working fine in IE.
But Mozila its not working . 

I am doubtful in the if stmt for the following line..
if (rotatorItem._element.all[16].defaultValue != null)

I am using the following code.Please give me any suggestions

<

 

 

telerik:RadRotator ID="RadRotator1" runat="server" Height="440px" Width="300px" RotatorType="SlideShowButtons" ItemHeight="100px" ItemWidth="300px" ScrollDuration="2000" ScrollDirection="Up, Down" OnItemDataBound="RadRotator1_ItemDataBound" FrameDuration="50" ClientIDMode="Static" OnClientItemClicked="showSelected" WrapFrames="False" EnableAjaxSkinRendering="False"

 

 

 

EnableTheming="False" OnClientLoad="Rotatorcss">

 

 

<ItemTemplate>

 

 

<div>

 

 

 

<table width="100%" border="0" cellspacing="0" cellpadding="5" style="padding: 5px 10px 0 10px">

 

 

<tr>

 

 

<td width="71%" nowrap="nowrap">

 

 

 

<asp:Label ID="lblplanname" class="plantitle" runat="server" Text='<%# Eval("plandesc2")%>'></asp:Label>

 

 

 

<br />

 

 

 

<span class="plandescription">

 

 

 

<asp:Label ID="lblplandesc" runat="server" Text='<%# Eval("plandesc1")%>'></asp:Label>

 

 

 <

/span>

 

 

 

</td>

 

 

<td width="29%">

 

 

<asp:HyperLink ID="lnkbtndeail" Text="View Detail" class="plandetailslinks" runat="server" />

 

 

</td>

 

</tr>

 

 

<tr>

 

 

 

<td class="plandescription">

 

 

<asp:Label ID="lblplanprice" runat="server" Text='<%# Eval("plandesc3")%>'></asp:Label>

 

 

</td>

 

 

 

<td>

 

 

</td>

 

</tr>

 

 

</table>

 

 

 

</div>

 

 

<asp:HiddenField ID="planID" runat="server" Value='<%# Eval("PlanId")%>' />

 

<asp:HiddenField ID="PlanType" runat="server" Value='<%# Eval("PlanType")%>' />

 

 

<asp:HiddenField ID="PlanStorage" runat="server" Value='<%# Eval("PlanStorageInMB")%>' />

 

 

 

<asp:HiddenField ID="planshortname" runat="server" Value='<%# Eval("PlanShortName")%>' />

 

 

<asp:HiddenField ID="PlanAmount" runat="server" Value='<%# Eval("PlanAmount")%>' />

 

</ItemTemplate>

 

<SlideShowAnimation Duration="500" Type="CrossFade" />

 

</

 

 

telerik:RadRotator>

Javascript
function SetSelectedPlanDisplay(rotatorItem, sender) {

 

 

 

if (flag != 1) {

 

if (rotatorItem._element.all[16].defaultValue != null) {

 

var PlanID = rotatorItem._element.all[16].defaultValue;

 

 

 

var PlanType = rotatorItem._element.all[17].defaultValue;

 

 

 

var PlanStorage = rotatorItem._element.all[18].defaultValue;

 

 

 

var Planname = rotatorItem._element.all[6].innerHTML;

 

 

 

 

var Planshortname = rotatorItem._element.all[19].defaultValue;

 

 

 

 

var Planshortamt;

 

 

 

 

if (rotatorItem._element.all[20].defaultValue != null) {

 

 

Planshortamt = rotatorItem._element.all[20].defaultValue;

}

 

else {

Planshortamt = 0;

}

 

var str = rotatorItem._element.innerText;

 

 

str = (str.replace(/View Detail/i,

 

""));

 

var selectedmsg = "You have selected " + str;

 

document.getElementById(

 

'lblselectedPlan').value = PlanID;

 

 

document.getElementById(

 

'lblplantxt').value = selectedmsg;

 

 

document.getElementById(

 

'lblPlanType').value = PlanType;

 

 

document.getElementById(

 

'lblPlanStorage').value = PlanStorage;

 

 

document.getElementById(

 

'HdnSelectedPlanStorage').value = PlanStorage;

 

 

 document.getElementById(

 

'HdnSelectedPlanId').value = PlanID;

 

 

document.getElementById(

 

'hdnname').value = Planname;

 

 

 document.getElementById(

 

'hdshortname').value = Planshortname;

 

 

 document.getElementById(

 

'hdnamt').value = Planshortamt;

 

 

 document.getElementById(

 

'HdnBindStorage').value = "true";

 

 

 

document.getElementById(

 

'trlblplan').style.display = "block";

 

 

document.getElementById(

 

'lblplanmsg').value = selectedmsg;

 

 

 

 document.getElementById('pnlRegisteration').style.display = "block";

 

}

flag = 0;

 

 

if (!canSubmit) {

 

sender.disabled = 

 

true;

 

$find(

 

'<%=RadAjaxManager.GetCurrent(Page).ClientID %>').ajaxRequest("OnClickSearch");

 

 

 r

 

eturn false;

 

 

}

}

}

 

 

catch (err) {

 

 

 

return false;

 

 

}

}

 

 

function showSelected(sender, args) {

 

 

 

var showbj = sender.get_items();

 

 

 

SetSelectedPlanDisplay(args._item, showbj);

 

return true;

 

}

 


Fiko
Telerik team
 answered on 23 Dec 2010
9 answers
252 views
Hi! I'm using latest controls. I have user control loaded dynamically, it has RadGrid, which has DataSourceID set to LLBLGen datasources, automatic operations are enabled. For editing purposes I use:

<EditFormSettings InsertCaption="Add new item" CaptionFormatString="Edit Order: {0}" CaptionDataField="CustomerIdPk" PopUpSettings-Modal="true" EditFormType="Template">
            <EditColumn UniqueName="EditCommandColumn1"></EditColumn>
             <FormTemplate>
...
.....
<asp:TextBox ID="txtDescription" runat="server" Width="210px" Text='<%# Bind("Description") %>'></asp:TextBox>
<asp:DropDownList ID="ddlPaymentMethod" DataSourceID="odsPaymentMethod" SelectedValue='<%# Bind("PaymentMethod") %>' runat="server">
</asp:DropDownList>

Problem starts with this:
    <asp:CheckBox ID="chkVATApplied" Checked='<%# Bind("VATApplied") %>' runat="server" />
<telerik:RadNumericTextBox ID="txtFinalOrderPrice" runat="server"
                                     DbValue='<%# Bind("FinalOrderPrice") %>' EnabledStyle-HorizontalAlign="Center"
                                     EmptyMessage="Required" MaxValue="100000" MinValue="0"
                                     Width="80px"
                                     Type="Currency">
                                     <NumberFormat AllowRounding="false" />
                                 </telerik:RadNumericTextBox>
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                                     ControlToValidate="txtFinalOrderPrice" Display="None"
                                     ErrorMessage="Total order price must be defined"> </asp:RequiredFieldValidator>
-------------
When I click update data is saved only from TextBoxes, DropDownList, but not from CheckBox and RadNumericTextBox. I can see that all data was loaded, but not everything is saved. Could you please hint what am I doing wrong, thank you!
Mira
Telerik team
 answered on 23 Dec 2010
1 answer
483 views
Hi there,
is it possible to use the RadUpload like the ASP.NET FileUpload here (where fuDocument is the FileUpload):
byte[] file = this.fuDocument.FileBytes;

Best regards
Ferdinand
Cori
Top achievements
Rank 2
 answered on 23 Dec 2010
2 answers
35 views
Hello,

I need to know if it is possible to rebind an EditForms dropdown based on the changed selection of another EditForms dropdown.

Thanks,
Rick
Rick
Top achievements
Rank 1
 answered on 23 Dec 2010
5 answers
148 views
Hello,

I'm looking for an example, how to use the load on demand mechanisem when my data source is a static xml,
and not  sql/mdb/datatable sources.

Is it possible to do it? or i must use the other sources only?
Can i get an example of that?


Thanks,

Oren
Nikolay Tsenkov
Telerik team
 answered on 23 Dec 2010
3 answers
143 views
Hello guys.

I have a doubt about combobox in radgrid.

My grid have two comboboxes (in two GridTemplateColumns) when in editmode: one for State and other for city. In the State combobox SelectedIndexChanged event, I want to populate my City combobox, but I don't know how to get the city combobox in the SelectedIndexChanged event of State combobox. I have tryed some like this:

RadComboBox ddlCity = (RadComboBox)RadGrid1.FindControl("ddlCity "); but it doesn't work.

How can I do?

Thanks in advance.

Regards.
Rick
Top achievements
Rank 1
 answered on 23 Dec 2010
1 answer
108 views
<telerik:TreeListTemplateColumn>
                       <ItemTemplate>
                           <asp:LinkButton ID="deleteButton" runat="server" Text="delete" CommandArgument='<%# Eval("pdrID") %>' CommandName="Delete" />
                       </ItemTemplate>
                       <ItemStyle HorizontalAlign="Right" Width="50px" />
                   </telerik:TreeListTemplateColumn>

This doesn't seem to work for me...
Tsvetina
Telerik team
 answered on 23 Dec 2010
6 answers
85 views
Hi,

I'm using a webservice to populate my tooltip, which means I'm having to call it via javascript.  The show delay is not honoured when I do this.  How do the rad controls implement this, as they must fire the even client side, what event is used to perform this action please?  Using showtootip means I would have to write some horrible code to perform a show delay, and I would rather not do that if possible.

Cheers,

Davoc
Davoc Bradley
Top achievements
Rank 1
 answered on 23 Dec 2010
0 answers
73 views
hi
the size of my page is 200kb
how to reduce size?
please hep to me
thanks
niloofar
Top achievements
Rank 1
 asked on 23 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?