Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
152 views

Hello, 

please I need your help in client side code ,

I need  javascript code that explain how can RadComboBox in header affects on all RadComboBoxs in asp repeater rows,

how can set same value and same text .

 

thanks

AHMED
Top achievements
Rank 1
 answered on 01 Apr 2019
0 answers
125 views

I have created a dynamic wizard steps. I want to delete the wizardsteps based on index. How can do this.

Ascx Page:

<telerik:RadButton runat="server" RenderMode="Lightweight" ID="rbtnRemoveSteps" Text="Remove Steps" AutoPostBack="false" OnClientClicked="RemoveSteps" ></telerik:RadButton>

 

Ascx Script:

function RemoveSteps() {
   var ajaxmanager = null;
   ajaxmanager = $find('<%=RadAjaxManager.GetCurrent(this.Page).ClientID%>');
   ajaxmanager.ajaxRequest('DeleteSteps');
}

Parent Page:

case "DeleteSteps":
    if (UIControlsWizard.WizardSteps.Count >=0)
    {
         int activeIndex = UIControlsWizard.ActiveStepIndex;
         UIControlsWizard.WizardSteps.RemoveAt(activeIndex);
    }
    break;

 

Saif
Top achievements
Rank 1
 asked on 01 Apr 2019
1 answer
465 views

     Hi,I have a problem with RadDataForm and HiddenField. I have a scenario like this:

 

 <telerik:RadDataForm runat="server" ID="radDataForm" DataSourceID="myDataSource">

   <InsertItemTemplate>

        <asp:HiddenField ID="hiddenField" runat="server" Value='<%# Bind("MyProperty") %>' />

         <telerik:RadComboBox ID="myCombo" runat="server" SelectedValue='<%# Bind("MyProperty2") %>' />

   </InsertItemTemplate>

</telerik:RadDataForm>

I Just semplify my code. The problem is that radComboBox (as other telerik controls) works fine and i bind my object passed in data source, while the property bounded throught asp:HiddenField doesn't work, even the value is not null.

Any suggestions?

 

Thanks

 

 

Vessy
Telerik team
 answered on 01 Apr 2019
1 answer
253 views
Hi,
    In my RadGrid, I have a Custom RadToolbar for implement my actions. Inside this toolbar I have a RadButton
<telerik:RadToolBarButton   Text="<%$ Resources:AdminLoc, btnAddDailyEquipment %>"
ImageUrl="~/Web/Images/Icons/ress_equipement.gif"
Group="DailyEquipment" CommandName="AddDailyResource" CommandArgument="DailyEquipment"
Value="DailyEquipment" Visible="<%# KeyValueTools.GetActivitekRepentignyDev %>">


My  Toolbar implement the OnClientButtonClicked attribute who calling a JS function with this code
case "AddDailyResource":<br> $find('<%= RgPanelSummary.ClientID%>').get_masterTableView().fireCommand(args.get_item().get_commandName(), argument);<br>        break;


If I have more than one element in my grid. The server-side ItemCommand is fired

But my problem occuring when I have no data in my RadGrid. The server-side called the ItemDataBound (RadGrid), the PageLoad, PageRender, etc. But the ItemCommand is never called. I have this problem for each custom action "Print, DailyEquipement". But If I using a default Radgrid action (DeletedSelected, InitInsert) the ItemCommand is called.

Can I resolve my problem? And If Yes how ?
Thank you and have a good day



Eyup
Telerik team
 answered on 01 Apr 2019
7 answers
312 views
Hi,

Why isn't there a check/uncheck all event for the combo box?

If I need to have a second related form element I can't do it from this as there is no JS event for when items are checked.  Yes you can get individual checks but there is no event raised when all are done. 

From looking at the forums this is appears to have been going on for a while.  Please advise on a way to get notified on the client when the check all box is checked.  

Thanks,

Jon
Akun
Top achievements
Rank 1
 answered on 31 Mar 2019
3 answers
297 views

Hello

I am looking for a little assistance in developing Facebook like notification counts like the attached image.  I have the image displaying properly, just didn't know if there was any functionality built with the menu item to do something like the attached image.

Thanks in advance,

Tom

 

Rumen
Telerik team
 answered on 29 Mar 2019
1 answer
177 views

Hello,

I am using a template form on which I have a dropdown list. Depending on the selection, I need to hide or show a couple of different labels/date pickers. While I can access the dropdown list using the SelectedIndexChanged as follows, can you please help me figure out how I can show/hide the controls? I have found similar questions asked before but have yet to found a clear response. Really appreciate your help as I've put in quite a bit of time figuring this out.

 protected void ddDuration_SelectedIndexChanged(object sender, DropDownListEventArgs e)
        {
            RadDropDownList ddDuration = (RadDropDownList)sender;
            sDuration = (string)ddDuration.SelectedValue;
            if (sDuration == "0")
            {
                //Need to show lblStartTime and timeStart, and Hide lblFullDate. dateFull 
            } 

           else

           {

              //Need to show lblFullDate, dateFull and Hide lblStartTime and timeStart.

           }
        }

 <telerik:RadDropDownList Width="16.8em" ID="ddDuration" runat="server" OnSelectedIndexChanged="ddDuration_SelectedIndexChanged"
                                        AutoPostBack="true">
                                        <Items>
                                            <telerik:DropDownListItem Text="Please Select" Value="">
                                            </telerik:DropDownListItem>
                                            <telerik:DropDownListItem Text="Partial" Value="0">
                                            </telerik:DropDownListItem>
                                            <telerik:DropDownListItem Text="Full Day" Value="1">
                                            </telerik:DropDownListItem>
                                        </Items>
                                    </telerik:RadDropDownList>                                   
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label Font-Bold="true" ID="lblFullDate" runat="server"
                                        Text="FullDay Closure Date: "></asp:Label>
                                </td>
                                <td>
                                    <telerik:RadDatePicker ID="dateFull" runat="server" RenderMode="Classic"></telerik:RadDatePicker>
                                </td>
                            </tr>
                            <tr>
                                <td> 
                                    <asp:Label Font-Bold="true" ID="lblStartTime" runat="server"
                                        Text="Partial Closure Start Time: "></asp:Label></td>
                                <td>                                    
                                    <telerik:RadDateTimePicker Width="21.2em" RenderMode="Classic"
                                        runat="server" ID="timeStart"></telerik:RadDateTimePicker>                                        
                                </td>
                            </tr>

 

 

 

 

 

 

Attila Antal
Telerik team
 answered on 29 Mar 2019
1 answer
136 views

Hi all

I have a this problem: I don't find RadToolTip in Telerik.Web.UI client side. I find all other controls but not RadToolTip.

I recivede this error: Telerik.Web.UI.RadToolTip is undefined

Why?

Thank you

Rumen
Telerik team
 answered on 29 Mar 2019
2 answers
297 views
I want to export 2 RadGrids to PDF the RadGrid's inbuilt exporting feature. I have a wrapper Grid. The Grids that I want to export are located at different of my UI, so I don't want to add the grids directly in the wrapper grid. On the Export button click, I want to add the the Wrapper grid and export to PDF.  I just want both grids to be on a single PDF file. it's okay for me convert the first child grid(data filter details) to a string of text, with new lines, and place on the top of the PDF export of the second (bigger data grid), for this also I couldn't find a way. I have a sample code, but since I am new to the forum, I couldn't find an easy way to copy it here. I will do it as soon as I can. Thanks in advance.
Attila Antal
Telerik team
 answered on 29 Mar 2019
1 answer
398 views
Hi,

I have RadGrid in batch edit mode which includes 2 different comboboxes. Both of them has your own template. One of the combobox is the same for all rows, but values in second combobox depends on value in another column, the value works like a filter. I check several discussions how to do it and I implement combobox with client functions on DropDownOpening (get value from row column) and ItemsRequesting (cancel event for second event) events. Everything works fine and data are loaded correctly in combobox. But I cannot select any value. If I open drop down list, I can scroll it and see everything, but it doesn't respond to any click. Also hover style is not applied for items. It looks like combobox is not fully loaded, but I don't see any error in JS or any other else.

Did you see this kind of problem anytime?

Maybe there is a problem that I have 2 different comboboxes in grid. But one of them works without problems and second shows correct data and reload it correctly for each row. Maybe there is some problem with template, but I cannot find it and the same template works in all other comboboxes in my application.

Do you have idea what I can check?


Thanks a lot for any advice,
Petr
Eyup
Telerik team
 answered on 29 Mar 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?