Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
212 views
I have Telerik Assemblies (old and new) registered in GAC.
i want that my RadImageEditorControll run with new assemby. How can i do it?

i want all my application and controlls to run with old assembly only radimageeditor to run with new assembly?
is there any way to do it in web.config?
Vessy
Telerik team
 answered on 02 Oct 2014
1 answer
322 views
How can I check or uncheck the button from server side?  I'm using the following code to set the checked state of the Radbutton control from the server side to no avail.

If (AutoFillState = 1) Then
 
    ' set the checked state of the control
    RadBtnAutoFill.Checked = True
 
Else
 
    '  set the checked state of the control
    RadBtnAutoFill.Checked = False
 
End If
 
'  Set the Subscription radio button that is that toggles their subscription list preferences
If (SubscriptionState = 1) Then
 
    ' set the checked state of the control
    RadBtnSubscriptions.Checked = True
 
Else
 
    ' set the checked state of the control
    RadBtnSubscriptions.Checked = False
 
End If


<telerik:RadButton id="RadBtnAutoFill" runat="server" CssClass="AutoFill" ToggleType="CheckBox" ButtonType="StandardButton" AutoPostBack="false"
                                        OnClientToggleStateChanged="OnAutoFillToggleStateChanged">
                                       <ToggleStates>
                                            <telerik:RadButtonToggleState Text="AutoFill Disabled" PrimaryIconCssClass="rbToggleCheckbox"></telerik:RadButtonToggleState>
                                            <telerik:RadButtonToggleState Text="AutoFill Enabled" PrimaryIconCssClass="rbToggleCheckboxChecked"></telerik:RadButtonToggleState>
                                       </ToggleStates>
                                    </telerik:RadButton>
 
                                    <telerik:RadButton id="RadBtnSubscriptions" runat="server" CssClass="Subscriptions" ToggleType="CheckBox" ButtonType="StandardButton" AutoPostBack="false"
                                        OnClientToggleStateChanged="OnSubsToggleStateChanged">
                                       <ToggleStates>
                                            <telerik:RadButtonToggleState Text="Subscriptions Disabled" PrimaryIconCssClass="rbToggleCheckbox"></telerik:RadButtonToggleState>
                                            <telerik:RadButtonToggleState Text="Subscriptions Enabled" PrimaryIconCssClass="rbToggleCheckboxChecked"></telerik:RadButtonToggleState>
                                       </ToggleStates>
                                    </telerik:RadButton>
Danail Vasilev
Telerik team
 answered on 02 Oct 2014
3 answers
75 views
When i click on insert image tool on RadImageEditor it asks for a url and when i give an image url in it and SET, image is placed on the RadImageEditor Canvas but i am unable to save that from RadImageEditor after insertion of image from url.
Even i have tried it from your demo but i am unable to save after insert image. is it a BUG?
http://demos.telerik.com/aspnet-ajax/imageeditor/examples/toolbarmodes/defaultcs.aspx  and   http://demos.telerik.com/aspnet-ajax/imageeditor/examples/canvassupport/defaultcs.aspx are the demos i have used and https://yt3.ggpht.com/--5R1fXG2ZC0/AAAAAAAAAAI/AAAAAAAAAAA/dxGi8Yriddc/s100-c-k-no/photo.jpg   is the image i have used.
Vessy
Telerik team
 answered on 02 Oct 2014
3 answers
184 views
Hi,

are you publishing somewhere the RadScheduler database schemas used in your sample applications?

Thanks,

-Gabriele
Boyan Dimitrov
Telerik team
 answered on 02 Oct 2014
1 answer
221 views
Hello,

I am working on a project with a RadWindow.
Controls are added dynamically to the RadWindow. (TextBox, radioButton CheckBox etc.)
The user can enter data into the dynamic controls. 

My ASPX code::
<telerik:RadWindow runat="server" ID="RadWindow2">
                        <ContentTemplate>
                            <telerik:RadAjaxPanel ID="MyPopUp_RadAjaxPanel1" runat="server" Width="90%"></telerik:RadAjaxPanel>
                            <asp:UpdatePanel ID="Updatepanel1" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:Button ID="Button_Ajax" Text="Click for AJAX" runat="server" OnClick="Button_Ajax_Click" />
                                    <br />
                                    <asp:Label ID="Label1" Text="I will be updated" runat="server" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </ContentTemplate>
                    </telerik:RadWindow>
 
  <telerik:RadButton ID="btn_win2" runat="server" Text="win 2">
                    </telerik:RadButton>

VB.NET:
   Protected Sub btn_win2_Click(sender As Object, e As EventArgs) Handles btn_win2.Click
       Dim lbl As Label = New Label()
       Dim txt As TextBox = New TextBox()
       txt.ID = "txb_win2"
       lbl.ID = "lbl_win2"
       lbl.Text = "new lbl"
       
       MyPopUp_RadAjaxPanel1.Controls.Add(lbl)
       MyPopUp_RadAjaxPanel1.Controls.Add(txt)
       RadWindow2.VisibleOnPageLoad = True
       'RadWindow2.Width = 500
       'RadWindow2.Height = 300
       RadWindow2.Modal = True
       RadWindow2.CenterIfModal = True
   End Sub
 
Protected Sub Button_Ajax_Click(sender As Object, e As EventArgs)
       RadWindow2.VisibleOnPageLoad = False
       lbl_NewUserData.Text = ""
       'Dim panel As RadAjaxPanel = TryCast(RadWindow2.ContentContainer.FindControl("MyPopUp_RadAjaxPanel1"), RadAjaxPanel)
       For Each ct In RadAjaxPanel1.Controls
           lbl_NewUserData.Text += ct.ToString() + vbCrLf
       Next
 
   End Sub


How can I access the controls and the data which the user entered?
I want to retrieve this information when the user clicks a button.

Thanks,

Daniel.
Marin Bratanov
Telerik team
 answered on 02 Oct 2014
1 answer
65 views
Hi am able to select value on server side but I am not able to add the same selected node text on client are. My code is mention below.
RadTreeNode node = rdTreeView.FindNodeByValue(nodeValue);
if (node != null)
{
    node.Checked = true;
}

Means When we select node using "OnClientEntryAdded" then node is checked and text belong to node will available to client area. But the same is not working when we do it programmatically
Boyan Dimitrov
Telerik team
 answered on 02 Oct 2014
7 answers
365 views
Hi,

Can you help me with the following.

I'am using the RadGrid inside the RadComboBox itemtemplate and I have problems with setting the combobox selected text/value on grid's OnRowSelected client side event. When I select a row from grid after the page has been loaded then the combobox selected text will be every grid row's values concatenated but when I select a new row after that then the selected text will be displayed correctly. Can you tell me why this happens?

I also want to access the combobox selected text/value on server side after postback. I added trackChanges() and commitChanges() methods like below but still the combo.ClientChanges count property is 0 e.g. after asp:button click.

Grid is grouped by two columns, so is it possible to configure combobox so that if user clicks the category row then combobox should not be closed?


<rad:RadCodeBlock ID="codeBlock" runat="server">  
    <script type="text/javascript">  
 
        function onRowSelected(sender, args)   
        {  
            var selectedText = args.getDataKeyValue("TypeName");  
            var selectedValue = args.getDataKeyValue("ID");  
 
            var combo = $find("rcb");  
 
            if (selectedValue.length > 0)   
            {  
                combo.trackChanges();  
                combo.set_text(selectedText);  
                combo.set_value(selectedValue);  
                combo.commitChanges();  
                combo.hideDropDown();  
            }  
        }  
          
    </script> 
</rad:RadCodeBlock> 
 
<rad:RadComboBox ID="rcb" runat="server" Width="400px">  
    <Items> 
        <rad:RadComboBoxItem Selected="true" /> 
    </Items> 
    <ItemTemplate> 
        <rad:RadGrid    ID="rgRiskClasses"   
                        runat="server"   
                        Skin="Web20" 
                        OnItemCommand="rgRiskClasses_ItemCommand">  
 
            <MasterTableView    AutoGenerateColumns="false"   
                                GroupLoadMode="Client"   
                                GroupsDefaultExpanded="true" 
                                ClientDataKeyNames="ID,TypeName">  
                <Columns> 
                    <rad:GridBoundColumn DataField="id"></rad:GridBoundColumn> 
                    <rad:GridBoundColumn DataField="TypeName"></rad:GridBoundColumn> 
                </Columns> 
                  
                <GroupByExpressions> 
                    <rad:GridGroupByExpression> 
                        <GroupByFields> 
                            <rad:GridGroupByField FieldName="CategoryName" /> 
                        </GroupByFields> 
                        <SelectFields> 
                            <rad:GridGroupByField FieldName="CategoryName" /> 
                        </SelectFields> 
                    </rad:GridGroupByExpression> 
                    <rad:GridGroupByExpression> 
                        <GroupByFields> 
                            <rad:GridGroupByField FieldName="ClassName" /> 
                        </GroupByFields> 
                        <SelectFields> 
                            <rad:GridGroupByField FieldName="ClassName" /> 
                        </SelectFields> 
                    </rad:GridGroupByExpression> 
                </GroupByExpressions> 
            </MasterTableView> 
            <ClientSettings AllowGroupExpandCollapse="false">  
                <Selecting AllowRowSelect="True" /> 
                <ClientEvents OnRowSelected="onRowSelected" /> 
            </ClientSettings> 
        </rad:RadGrid> 
    </ItemTemplate> 
 
</rad:RadComboBox> 

Thanks,
Pete
Hristo Valyavicharski
Telerik team
 answered on 02 Oct 2014
1 answer
102 views
Frankly I'm asking this one only because I'm curious.  

I have a fairly conventional RadGrid set up with edit links on each row.  Each link calls a JavaScript function which in turn causes an editing screen popup.  

The link elements look like this:  
<a id="ctl00_MainContent_RadGrid1_ctl00_ctl04_EditLink" href="#" onclick="return EditForm('14001','0');">Edit</a>

I also have a span at the top of the page that displays "Welcome" logged in person.  Somehow someone messed up the users table and the name field included characters within double quotes.  As such, for example, the field would be rendered like this:
  <span id="lblFullName" style="color:Blue;">Welcome Joe "***" Smith</span>

When this happened, the JavaScript function started crashing. The function got the correct parameters but this line started crashing.
 var oWnd = window.radopen("EditForm.aspx?Id=" + Id, "Edit Item " + Id); 

When I put a catch in there, the error was Cannot read property 'open' of undefined.

Naturally the practical solution to this problem was to purge the database of bad data but I'd still like to know what happened.

 
Kostadin
Telerik team
 answered on 02 Oct 2014
1 answer
74 views
When I use the advanced form (adapted from the demo on this site) to add extra fields to the admin form I have a problem.  With this in place I find that if I try and access a RadWindow on the form load it only works on rare occasions.

When I remove the <telerik:RadScriptReference Path="AdvancedForm.js" /> line from the script manager the radwindow works - although obviously the advanced form functionality then fails.

Any suggestions on what maybe happening here.  My code for finding the radwindow is shown below 

var oWnd = $find("<%=uxFilterRadWindow.ClientId %>");
oWnd.show();

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 02 Oct 2014
1 answer
96 views
we are using rad grid in one of our project. I have a small issue. In the rad grid  . I use jquery to select and deselect all check boxes in Rad Grid. This works fine. My problem is with paging. I am using default paging behaviour of RadGrid. The problem is that on when i select page index 2 or any other index then  select and deselect all check boxes in Rad Grid.  is not working     i want to do this  through jquery  or javascript    i do want use code behind like toggle 

Pavlina
Telerik team
 answered on 02 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?