Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
175 views

Hi, We are using Telerik 2017.1.228.45 RadTree controls. We have implemented RadTree contract inside a usercontrol and it's getting called through a master page. all Radtree nodes has a customUrl field populated,so when they are clicked on the same page, a user control appears and when some changes are made to that user control and is closed, RadTree loses its expanded state.

 

Is there a way to persist RadTree in that expanded state please? if yes, then how?

 

Thank you

Eyup
Telerik team
 answered on 13 Jun 2017
1 answer
176 views

Would it be possible to take the following recordset example and divide into multiple columns and then rows?  Currently we use a repeater to accomplish the goal but like the styling of the grid.  The RadGrid would give us more control of styling and exporting of the data much easier.

state   TotalCUs    TotalExcess TotalQualified
AL  4   3   0
CA  18  10  1
CO  1   1   0
DC  2   2   0
FL  6   6   0
GA  1   1   0

 

What we would like is to have 3 columns and then however many rows to complete the recordset.

state   TotalCUs    TotalExcess TotalQualified
AL  4   3   0   CA  18  10  1   CO  1   1   0
DC  2   2   0   FL  6   6   0   GA  1   1   0
ID  8   3   0   IL  26  9   0   IN  18  4   0
KS  1   1   0   KY  2   2   0   MD  2   0   0
ME  4   4   0   MI  4   3   0   MN  5   4   1
MO  5   5   0   NH  2   2   0   NJ  3   3   0
NV  7   4   0   OH  61  19  0   OK  2   2   0
OR  1   1   0   PA  6   6   0   TX  9   5   0
WA  2   2   0

Thanks for your help in advance.

Eyup
Telerik team
 answered on 13 Jun 2017
0 answers
62 views

Hi guys,

I need to create entirely RadWindow pop up screen from C# class library.

How can I do that?

thanks.

Vitaly.

Vitaly
Top achievements
Rank 1
Iron
Iron
 asked on 12 Jun 2017
0 answers
133 views

I want to implement this on our admin sites & been looking at the demos, particularly the default save options. The issue is we save images in various locations. I am presuming that the 'Save on Server' option uses the path in ImageUrl, so saving it just in one place will not be applicable in this case. So I was thinking of hiding or disabling that option, and hide the overwrite check box, to only have 'Download Image' as the only option?

Now, what I might end up doing is implementing the custom save option and have a dropdown of all the various image paths on the site to save to when the user is saving. However, can you look into my query above and see if that is an option?

Also, is there a way to add a custom aspect ratio to the dropdown in the crop function?

Paul
Top achievements
Rank 1
Iron
 asked on 12 Jun 2017
0 answers
128 views

 

I use a combination of different controls in an ASP.Net Repeater. Included are now already 2 RadComboBoxes. I add the SelectedIndexChanged to them in this way:

for (var i = 0; i < aClientIds.length; i++) {<br>     var comboBox = $find(aClientIds[i]);<br>     var id = comboBox.get_id();<br>     comboBox.add_selectedIndexChanged(ddlList_SelectedIndexChanged);<br>}

The list of ClientIds are saved to a hidden field from Codebehind and retrieved to a JavaScript array in the js.file associated with the usercontrol where the Repeater is shown. Works nicely. I also must include a RadDatePicker and attach ClientEvents-OnDateSelected in the same way. Already have this working and get the correct id:

for (var i = 0; i < aDateClientIds.length; i++) {<br>     var calendar = $find(aDateClientIds[i]);<br>     var id = calendar.get_id();<br>     alert('id:' + id);<br>}

But how do I attach ClientEvents-OnDateSelected from JavaScript? I can't find this in the Telerik documentation or on Google.

My Company uses Telerik.Web.UI  version 2015.3.1111.45
 

Jorgen Vester
Top achievements
Rank 1
 asked on 12 Jun 2017
1 answer
69 views

Hey, 

So I'm using the RadScheduler and I have Agenda View enabled, but I've noticed that anytime I click on it, the scheduler displays the agenda for the next week, not the current week. Any ideas why this could be? 

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataKeyField="ID" AllowInsert="False" DataSubjectField="Subject"
                    DataStartField="StartDate" DataEndField="EndDate" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" ReadOnly="True" SelectedView="WeekView" Height="650px" WorkDayEndTime="18:00:00">

                    <ExportSettings>
                        <Pdf PageTopMargin="1in" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in"></Pdf>
                    </ExportSettings>
                    <TimelineView UserSelectable="False" />
                    <AgendaView ReadOnly="True" UserSelectable="True" ResourceMarkerType="Bar" NumberOfDays="5" />

 </telerik:RadScheduler>

TanChen
Top achievements
Rank 1
 answered on 09 Jun 2017
1 answer
475 views

Hi Guys,

I have a site that is fixed width and fits perfectly on desktop and tablets.

I want the RadDeviceDeection Framework to discern if the device is a mobile phone and then redirect to a different set of web pages.(not responsive).

When testing on a desktop I get an output such as 

ScreenSize By Range : 3 : ScreenSize By UserAgent : 3
 
ScreenSize By Range TS : ExtraLarge : ScreenSize By UserAgent TS : ExtraLarge
 
Height : 0 Width : 0
 
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 OPR/45.0.2552.888

On a mobile phone, it detects the height & width and a small screen size.

The problem is,it also detects tablets with a small screen size - but no height & width.
No matter how small I make the custom range for screen size it always returns small for both mobile & tablet.

What would be the best way for me to detect a mobile phone only please?
I could do it if a height & width was found; but not sure if this would cover all.

Cheers,

Jon

 

Rumen
Telerik team
 answered on 09 Jun 2017
4 answers
182 views
Hi,
I have RadGrid Hierarchy at 3 level i want to apply Check/Uncheck all checkboxes Client Side and Server Side how can do it.
Please provide solutions
Please find Attachment.
Eyup
Telerik team
 answered on 09 Jun 2017
2 answers
188 views

Hi all,

I have simple RadWindow container one lable and one RadTabStrip, when i update Chrome to lastest version 58.0.3029.110 (64-bit), 

RadRabStrip show incorrect possition in RadWindow (before update is correct).

I have use IE to open RadWindow, it is OK.

Please help me.

 

 

The
Top achievements
Rank 1
 answered on 09 Jun 2017
2 answers
97 views

Hi,

My radgrid using auto ops with template. The update failed due to dropdownlist selectedvalue. If a record's field is null then a update with value will yield error for cannot convert DbNull to Int32. If a record's field has value then a update do nothing but no error.

Please help.

Thanks.

extracted codes from aspx:

    <telerik:RadGrid ID="rgInst" runat="server" CellSpacing="0" GridLines="None" RenderMode="Lightweight" AllowPaging="True" PageSize="10" AllowSorting="true"
      AllowAutomaticUpdates="True" AllowAutomaticInserts="True" AllowAutomaticDeletes="true" AutoGenerateColumns="false" DataSourceID="sdsInstitution"
      OnItemCreated="rgInst_ItemCreated" OnItemInserted="rgInst_ItemInserted" OnItemUpdated="rgInst_ItemUpdated" OnItemDeleted="rgInst_ItemDeleted" OnItemCommand="rgInst_ItemCommand">
      <PagerStyle Mode="NextPrevNumericAndAdvanced" />
      <MasterTableView AutoGenerateColumns="false" DataSourceID="sdsInstitution" DataKeyNames="InstID, InstTypeId" CommandItemDisplay="Top" EditMode="EditForms">       
        <Columns>
          <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
          <telerik:GridBoundColumn UniqueName="InstName" DataField="InstName" HeaderText="Institution" />
          <telerik:GridBoundColumn UniqueName="CampusType" DataField="InstTypeDesc" HeaderText="Campus Type" />
          <telerik:GridButtonColumn Text="Deactivate" CommandName="Delete" />
        </Columns>
  
  <EditFormSettings EditFormType="Template">
          <FormTemplate>
            <br />
                  <table class="tableW100">
                    <tr>
                      <td class="td30R">Institution name:</td>
                      <td class="td70L">
                        <asp:TextBox ID="tbInstName" runat="server" CssClass="tbW100" Text='<%# Bind("InstName") %>' />
                      </td>
                    </tr>
                    <tr>
                      <td class="td30R">School/Department:</td>
                      <td class="td70L">
                        <asp:TextBox ID="tbInstOffice" runat="server" CssClass="tbW100" TextMode="MultiLine" Text='<%# Bind("InstOffice") %>' />
                      </td>
                    </tr>
                    <tr>
                      <td class="td30R">Campus Type:</td>
                      <td class="td70L">
                        <asp:DropDownList ID="ddlInstType" CssClass="tbW100" runat="server" DataSourceID="sdsInstType" DataTextField="InstTypeDesc" DataValueField="InstTypeID" SelectedValue='<%# Bind("InstTypeID") %>'
                          AppendDataBoundItems="True">
                          <asp:ListItem Selected="True" Text="Select..." Value="" />
                        </asp:DropDownList>
                      </td>
                    </tr>
              <tr>
                <td colspan="2" class="tr4Btn">
                  <asp:Button ID="btnUpdate" CssClass="flatbtnFlexSmall" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' />&nbsp;
                  <asp:Button ID="btnCancel" CssClass="flatbtnFlexSmall" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" />
                </td>
              </tr>
            </table>
          </FormTemplate>
        </EditFormSettings>
      </MasterTableView>
    </telerik:RadGrid>

 

<asp:SqlDataSource ID="sdsInstitution" runat="server" ConnectionString="<%$ ConnectionStrings:MainDB %>"
    SelectCommand="sprInstitutionGet" SelectCommandType="StoredProcedure"
    UpdateCommand="sprInstitutionUpdate" UpdateCommandType="StoredProcedure"
    InsertCommand="sprInstitutionAdd" InsertCommandType="StoredProcedure"
    <InsertParameters>
      <asp:Parameter Name="InstName" Type="String" />
      <asp:Parameter Name="InstOffice" Type="String" />
      <asp:Parameter Name="InstTypeID" Type="Int32" />
      <asp:SessionParameter Name="ModBy" SessionField="AdmNetID" Type="String" />
    </InsertParameters>
    <UpdateParameters>
      <asp:Parameter Name="InstID" Type="Int32" />
      <asp:Parameter Name="InstName" Type="String" />
      <asp:Parameter Name="InstOffice" Type="String" />
      <asp:Parameter Name="InstTypeID" Type="Int32" />
      <asp:SessionParameter Name="ModBy" SessionField="AdmNetID" Type="String" />
    </UpdateParameters>
</asp:SqlDataSource>

 

<asp:SqlDataSource ID="sdsInstType" runat="server" ConnectionString="<%$ ConnectionStrings:MainDB %>" SelectCommand="sprInstitutionTypeGet" SelectCommandType="StoredProcedure" />

 

 

 

 

 

 

 

 

 

 

Eyup
Telerik team
 answered on 09 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
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
Bronze
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?