Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
126 views
If the popup window is adding the new record, the textbox in the popuped need to hide,
if the popup window is editing the record , the text box need to display.

how to control the visibility of the textbox control?
Thanks.
Princy
Top achievements
Rank 2
 answered on 06 May 2013
1 answer
66 views
Since last update of my control, If i insert intem in javascript, new item is selected. I don't want this. This is my code, in older version, this code work well

 

 

function AddCouncillorToProposedByCombobox(id, councillorName, row) {

 var rcbProposedBy = row.findControl('rcbProposedBy');

 if (rcbProposedBy != null) {
 

 var comboItems = rcbProposedBy.get_items();

 var idx = comboItems.get_count();

 for (var j = 0; j < comboItems.get_count(); j++) {

 var comboItem = comboItems.getItem(j);

 if (comboItem.get_text() > councillorName) {

idx = j;

 break;

}

}

var comboItem = new Telerik.Web.UI.RadComboBoxItem();

comboItem.set_text(councillorName);

comboItem.set_value(id);

comboItems.insert(idx, comboItem);

}

}

Plamen
Telerik team
 answered on 06 May 2013
1 answer
70 views
Hi,

I reproduce the example from http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx and added a new field which contains dateinput.

All my elements are created from server side. The only client code is the javascript. I have implemented IBindableTemplate for each kind of column so i would be able to extract the content on server event.

Right now everything works fine except in one case. When i do a sort on any column (the grid need to have no filter first) and then i apply the changes after updating the first row, all the textbox value are set to null. But if I try again after that postback there's no problem at all. Its only on the first sort/filter command.

The version we're using is the 2012.3.1308.35.

Thx for you help
Vasil
Telerik team
 answered on 06 May 2013
1 answer
125 views
Here's my code:

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
            If Not IsPostBack Then
                Load_ddlGroupName()
            End If
        End Sub
 
Private Sub Load_ddlGroupName()
            ddlGroupName.DataTextField = "FinanceNumberName"
            ddlGroupName.DataValueField = "FinanceNumberName"
            ddlGroupName.DataFieldParentID = "VP"
            ddlGroupName.DataFieldID = "FinanceNumberName"
            ddlGroupName.DataSource = (From d In DbContext.FPRDropDownLists Select d).ToList() 'verified datasource is populated.
            ddlGroupName.DataBind()
        End Sub


What am I missing?

Plamen
Telerik team
 answered on 06 May 2013
1 answer
233 views
I have a combobox that placed inside a radwindow. Item request event of the combobox not working.
Princy
Top achievements
Rank 2
 answered on 06 May 2013
1 answer
264 views
Hi All,

How to set radcombox item to enable false in one another radcombobox item selected index changed .

I have implemented code is below. Kindly correct me what i have missed from code.

        protected void radcombo1_OnSelectedIndexChanged(object sender, EventArgs e)
        {
               string a = radcombo1.SelectedValue.Trim();
                 
                for (int i = 0; i < radcombo2.Items.Count; i++)
                {
                    string b = radcombo2.Items[i].Value;
                    string c = radcombo2.Items[i].Text;
 
                   if ((a == "TGROSS") && (b.Substring(0, 2) == "16"))
                   {
                       RadComboBoxItem item = radcombo2.FindItemByText(c);
                       item.Enabled = false;
                      
                   }
                 
                    
                }
                radcombo2.SelectedIndex = 0;
}


Thanks in Advance..!
Princy
Top achievements
Rank 2
 answered on 06 May 2013
4 answers
246 views
Hi all,
I have a scheduler, whenever i mouse hover to an appointment subject is visible in tooltip, even i have not written any code for tooltip. I just want to remove that tooltip. Please help............ 
Princy
Top achievements
Rank 2
 answered on 06 May 2013
0 answers
126 views
hello guys

                i' ve been googling days for search for the solution but no luck to find one so i gonna try to ask from you who are expert on this control..ok..the scenario is i have a master page with a radtreeview bind to a sql database now i have 5 web user control which initiate to fill up the radtreeview during insert execution the problem is i cannot reload the radtreeview because it was on the master page..the question how am i going to rebind or reload the radtreeview in the master page during insert on my user control? is there a way to do it on server side coz i'm not so much familiar using javascript? your support is greatly appreciated..

thanks
Jols
Top achievements
Rank 2
 asked on 06 May 2013
2 answers
151 views
Hello ,

i need to create a column in the grid , contain button this button " confirm "  when i press on it i want to add value " Confirmed "
in specific cell

 
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 May 2013
4 answers
100 views
Hi, I have a problem with a hierarchical RadMenu generated with a datatable when using custom images for each menu option and that requires some extra radmenuitems manually defined.

The problem is that when I set the images, the "text" defined is shown to the right of the png file representing the menu option. If I don't set the text value or even if I set string.empty to it, then the name of a class "System.data.datarowview" is shown to the right of each menu item image.


I defined a RadMenu in the following way in the aspx file:

<telerik:RadMenu ID="TelerikRadMenu" runat="server" Skin="WebBlue" AppendDataBoundItems="True" />

I have a sql server table with the following structure:

IdMenu int
IdMenuParent int
Description varchar(100)
Tooltip varchar(200)
ImageBaseName varchar(50)
TargetUrl varchar(max)
OpenInTopFrame boolean

Then I generate the menu in the vb like this:

private useimagesinradmenu as boolean = false
private basethemepath as string = "~/App_Themes/Default/Images/Menu/"

Private Sub GeneraMenuTelerik()
'Get the menu for this particular logged user from a user object defined outside. 
'It works fine.
Dim dt As DataTable = CurentUser.Menu.GetFullMenuAsDataTable()

basethemepath = String.Format("~/App_Themes/{0}/Images/Menu/", CurrentUser.Theme)
useimagesmenu as boolean = ValidateAllImgExist(basethemepath, dt)

useimagesinradmenu = useimagesmenu

Dim btninit As New RadMenuItem()

'for simplicity I only show how I generate a single databounditem, but there are more depending
'certain conditions.
With btninit
.EnableImageSprite = useimagesmenu
.HoveredImageUrl = String.Format(basethemepath + "/{0}_hover.png", "init")
.ImageUrl = String.Format(basethemepath + "/{0}_normal.png", "init")
.Target = "_Top"
.NavigateUrl = "~/Home.aspx"
.Text = "Home"
.ToolTip = "Go to system's home page"
End With
 
With TelerikRadMenu
With .Items
.Add(btninit)
End With

.DataSource = dt
.DataFieldID = "IdMenu"
.DataFieldParentID = "IdMenuParent"
.DataTextField = "Description" 'If I comment this line or set string.empty as value I get the text  "System.data.datarowview" else 
.DataNavigateUrlField = "TargetUrl"
.EnableEmbeddedSkins = Not useimagesmenu
.EnableImageSprites = useimagesmenu
.DataBind()
End With
End Sub

Protected Sub TelerikRadMenu_ItemDataBound(sender As Object, e As RadMenuEventArgs) Handles TelerikRadMenu.ItemDataBound
e.Item.ToolTip = CStr(DataBinder.Eval(e.Item.DataItem, "Tooltip"))
If CBool(DataBinder.Eval(e.Item.DataItem, "OpenInTopFrame")) Then
e.Item.Target = "_top"
Else
e.Item.Target = "mainFrame"
End If

if useimagesinradmenu Then
Dim imgbasename As String = DataBinder.Eval(e.Item.DataItem, "ImageBaseName ").ToString()
Dim imgnormal As String = String.Format("{0}{1}_normal.png", basethemepath, imgbasename)
Dim imghover As String = String.Format("{0}{1}_hover.png", basethemepath, imgbasename)

e.Item.ImageUrl = imgnormal
e.Item.HoveredImageUrl = imghover
End If
End Sub

How can I hide the right text?

Thanks
Sergio E.
Cdc DevTeam
Ivan Zhekov
Telerik team
 answered on 05 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?